aboutsummaryrefslogtreecommitdiff
path: root/emulators/advancemenu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/advancemenu/Makefile')
-rw-r--r--emulators/advancemenu/Makefile34
1 files changed, 18 insertions, 16 deletions
diff --git a/emulators/advancemenu/Makefile b/emulators/advancemenu/Makefile
index 91f16b434556..2092af4c7dc0 100644
--- a/emulators/advancemenu/Makefile
+++ b/emulators/advancemenu/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= advancemenu
-PORTVERSION= 2.6
-PORTREVISION= 1
+PORTVERSION= 2.7
CATEGORIES= emulators
MASTER_SITES= SF/advancemame/${PORTNAME}/${PORTVERSION}
@@ -14,12 +13,11 @@ LICENSE= GPLv2
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
-USE_SDL= sdl
USES= gmake
+USE_SDL= sdl
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
- --disable-alsa --enable-oss --disable-slang \
- --disable-ncurses --disable-kevent
+CONFIGURE_ARGS= --disable-svgalib --disable-fb --disable-alsa --enable-oss \
+ --disable-slang --disable-ncurses --disable-kevent
CFLAGS+= -idirafter ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
@@ -27,29 +25,33 @@ LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= *
PLIST_FILES= bin/advmenu man/man1/advmenu.1.gz
-OPTIONS_DEFINE= FREETYPE DOCS
-OPTIONS_DEFAULT=FREETYPE
+OPTIONS_DEFINE= DOCS FREETYPE
+OPTIONS_DEFINE_i386= ASM
+OPTIONS_DEFAULT= FREETYPE
+OPTIONS_DEFAULT_i386= ASM
+ASM_BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+ASM_CONFIGURE_ENABLE= asm
+FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype
-FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
post-patch:
@${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 ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu \
+ ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
+.for i in HISTORY README RELEASE
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
+ ${STAGEDIR}${DOCSDIR})
+.endfor
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* \
${STAGEDIR}${DOCSDIR})
- (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>