aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-03-01 17:01:42 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-03-01 17:01:42 +0800
commitf66d95ae6083bf2722a5e9cffb33474a490b29f9 (patch)
tree58f29c622c256734012a7f02dc385a0f46aaaddf /emulators
parentb3b88fe191095e54c2b8def6d21a4744d604c523 (diff)
downloadfreebsd-ports-gnome-f66d95ae6083bf2722a5e9cffb33474a490b29f9.tar.gz
freebsd-ports-gnome-f66d95ae6083bf2722a5e9cffb33474a490b29f9.tar.zst
freebsd-ports-gnome-f66d95ae6083bf2722a5e9cffb33474a490b29f9.zip
- Fix LICENSE
- Add LICENSE_FILE - Switch to USES=localbase - Switch to options helpers
Diffstat (limited to 'emulators')
-rw-r--r--emulators/advancemenu/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/emulators/advancemenu/Makefile b/emulators/advancemenu/Makefile
index 32b1503fd039..23354f09a14c 100644
--- a/emulators/advancemenu/Makefile
+++ b/emulators/advancemenu/Makefile
@@ -9,18 +9,18 @@ MASTER_SITES= https://github.com/amadvance/advancemame/releases/download/${DISTN
MAINTAINER= ports@FreeBSD.org
COMMENT= Frontend for AdvanceMAME, MAME, MESS, RAINE
-LICENSE= GPLv2
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2
-USES= gmake
+USES= gmake localbase:ldflags
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-svgalib --disable-fb --disable-alsa --enable-oss \
--disable-slang --disable-ncurses --disable-kevent
-CFLAGS+= -idirafter ${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+MAKE_JOBS_UNSAFE= yes
PORTDOCS= *
PLIST_FILES= bin/advmenu man/man1/advmenu.1.gz
@@ -36,8 +36,6 @@ ASM_CONFIGURE_ENABLE= asm
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype
-MAKE_JOBS_UNSAFE= yes
-
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread|' ${WRKSRC}/configure
@@ -45,14 +43,13 @@ post-patch:
's|@@|@|' ${WRKSRC}/Makefile.in
do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu \
- ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 \
- ${STAGEDIR}${MANPREFIX}/man/man1)
+ ${INSTALL_PROGRAM} ${WRKSRC}/advmenu ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/advmenu.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
${STAGEDIR}${DOCSDIR})
- (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* \
- ${STAGEDIR}${DOCSDIR})
+ ${INSTALL_DATA} ${WRKSRC}/doc/advmenu.[ht]* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>