aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/advancemenu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/advancemenu/Makefile')
-rw-r--r--emulators/advancemenu/Makefile71
1 files changed, 39 insertions, 32 deletions
diff --git a/emulators/advancemenu/Makefile b/emulators/advancemenu/Makefile
index 59473831c792..c0e537d4c6e7 100644
--- a/emulators/advancemenu/Makefile
+++ b/emulators/advancemenu/Makefile
@@ -1,56 +1,63 @@
-# New ports collection makefile for: advancemenu
-# Date created: 2007-01-10
-# Whom: alepulver
-#
+# Created by: alepulver
# $FreeBSD$
-#
PORTNAME= advancemenu
-PORTVERSION= 2.5.0
-PORTREVISION= 1
+PORTVERSION= 2.6
CATEGORIES= emulators
MASTER_SITES= SF/advancemame/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A frontend for AdvanceMAME, MAME, MESS, RAINE
+COMMENT= Frontend for AdvanceMAME, MAME, MESS, RAINE
-LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+LICENSE= GPLv2
+
+LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
+
+OPTIONS_DEFINE= FREETYPE DOCS
+OPTIONS_DEFAULT=FREETYPE
-USE_GL= yes
-USE_GMAKE= yes
USE_SDL= sdl
+USE_GMAKE= yes
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
+ --disable-alsa --enable-oss --disable-slang \
+ --disable-ncurses --disable-kevent
+MAKE_JOBS_SAFE= yes
-OPTIONS_DEFINE= FREETYPE SLANG DOCS
-SLANG_DESC= Enable sLang support (for video driver)
+CFLAGS+= -idirafter ${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
MAN1= advmenu.1
+PORTDOCS= *
+PLIST_FILES= bin/advmenu
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "i386"
-BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
+LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2
.else
CONFIGURE_ARGS+=--disable-freetype
.endif
-.if ${PORT_OPTIONS:MSLANG}
-LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
-.else
-CONFIGURE_ARGS+=--disable-slang
-.endif
-
post-patch:
- @${REINPLACE_CMD} -Ee 's|^(pkg.*)/advance|\1/${PORTNAME}|; /pkgdir/d' \
- ${WRKSRC}/advance/advance.mak
-.if empty(PORT_OPTIONS:MDOCS)
- @${REINPLACE_CMD} -e '/pkgdocdir/d' ${WRKSRC}/advance/advance.mak
+ @${REINPLACE_CMD} -e \
+ 's|-lpthread|-pthread|' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|@@|@|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/\(pkgdocdir\)/s|^|#| ; \
+ /WHOLE_CFLAGS_OPT/s|-O2|| ; \
+ /WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
+
+do-install:
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu ${PREFIX}/bin)
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 ${MANPREFIX}/man/man1)
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+.for i in HISTORY README RELEASE
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${DOCSDIR})
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>