summaryrefslogtreecommitdiffstats
path: root/emulators/advancemame/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/advancemame/Makefile')
-rw-r--r--emulators/advancemame/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/emulators/advancemame/Makefile b/emulators/advancemame/Makefile
new file mode 100644
index 0000000..3f9db06
--- /dev/null
+++ b/emulators/advancemame/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: advancemame
+# Date created: 2007-01-10
+# Whom: alepulver
+#
+# $FreeBSD$
+#
+
+PORTNAME= advancemame
+PORTVERSION= 0.106.0
+CATEGORIES= emulators
+MASTER_SITES= SF
+
+MAINTAINER= alepulver@FreeBSD.org
+COMMENT= SDL MAME port with advanced TV and monitor video support
+
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+
+USE_GL= yes
+USE_GMAKE= yes
+USE_SDL= sdl
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -idirafter ${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+OPTIONS= FREETYPE "Enable FreeType2 support" off \
+ SLANG "Enable sLang support (for video driver)" off
+
+MAN1= advdev.1 advj.1 advk.1 advm.1 advmame.1 advs.1
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+.endif
+
+.if defined(WITH_FREETYPE)
+LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
+.else
+CONFIGURE_ARGS+=--disable-freetype
+.endif
+
+.if defined(WITH_SLANG)
+LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
+.else
+CONFIGURE_ARGS+=--disable-slang
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -Ee 's|^(pkg.*)/advance|\1/${PORTNAME}|' \
+ ${WRKSRC}/advance/advance.mak
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e '/pkgdocdir/d' ${WRKSRC}/advance/advance.mak
+.endif
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud