aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-04-09 11:33:23 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-04-09 11:33:23 +0000
commit593af10bab593427abd00dfdfffa846b000453f2 (patch)
treeba7e30d4eb57ea7f1bfb202bb85f97b1d67dccec /emulators
parent67a015afbcff48cb22a287a9e346bc70d8752ac5 (diff)
downloadports-593af10bab593427abd00dfdfffa846b000453f2.tar.gz
ports-593af10bab593427abd00dfdfffa846b000453f2.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/advancemame/Makefile78
-rw-r--r--emulators/advancemame/pkg-plist27
2 files changed, 48 insertions, 57 deletions
diff --git a/emulators/advancemame/Makefile b/emulators/advancemame/Makefile
index 0c5464f4ed79..e6fa3e4db6be 100644
--- a/emulators/advancemame/Makefile
+++ b/emulators/advancemame/Makefile
@@ -11,13 +11,10 @@ COMMENT= SDL MAME port with advanced TV and monitor video support
LICENSE= GPLv2
-LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
-
-OPTIONS_DEFINE= FREETYPE DOCS
-OPTIONS_DEFAULT=FREETYPE
+LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
USE_SDL= sdl
-USE_GMAKE= yes
+USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \
--disable-alsa --enable-oss --disable-slang \
@@ -28,44 +25,16 @@ DATADIR= ${PREFIX}/share/advance
CFLAGS+= -idirafter ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-MAN1= advdev.1 advj.1 advk.1 advm.1 advmame.1 advs.1
+MAN_FILES= advdev.1 advj.1 advk.1 advm.1 advmame.1 advs.1
PORTDOCS= *
-PLIST_FILES= bin/advj \
- bin/advk \
- bin/advm \
- bin/advmame \
- bin/advs \
- %%DATADIR%%/artwork/.keep_me \
- %%DATADIR%%/diff/.keep_me \
- %%DATADIR%%/event.dat \
- %%DATADIR%%/history.dat \
- %%DATADIR%%/hiscore.dat \
- %%DATADIR%%/image/.keep_me \
- %%DATADIR%%/rom/.keep_me \
- %%DATADIR%%/sample/.keep_me \
- %%DATADIR%%/snap/.keep_me
-PLIST_DIRS= %%DATADIR%%/snap \
- %%DATADIR%%/sample \
- %%DATADIR%%/rom \
- %%DATADIR%%/image \
- %%DATADIR%%/diff \
- %%DATADIR%%/artwork \
- %%DATADIR%%
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2
-.else
-CONFIGURE_ARGS+=--disable-freetype
-.endif
+OPTIONS_DEFINE= FREETYPE DOCS
+OPTIONS_DEFAULT=FREETYPE
-.include <bsd.port.pre.mk>
+FREETYPE_CONFIGURE_ENABLE= freetype
+FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
-.if ${ARCH} == "powerpc"
-BROKEN= Does not compile on powerpc
-.endif
+BROKEN_powerpc= Does not compile on powerpc
post-patch:
@${REINPLACE_CMD} -e \
@@ -80,24 +49,19 @@ post-patch:
's|-lpthread|-pthread|' ${WRKSRC}/advance/emu.mak
do-install:
-.for i in advj advk advm advmame advs
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin)
-.endfor
-.for i in ${MAN1}
- (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${i} ${MANPREFIX}/man/man1)
-.endfor
- @${MKDIR} ${DATADIR}
- (cd ${WRKSRC}/support && ${INSTALL_DATA} *.dat ${DATADIR})
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} advj advk advm advmame advs \
+ ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN_FILES} \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/support && ${INSTALL_DATA} *.dat ${STAGEDIR}${DATADIR})
.for i in artwork diff image rom sample snap
- @${MKDIR} ${DATADIR}/${i}
- @${ECHO_CMD} -n > ${DATADIR}/${i}/.keep_me
-.endfor
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-.for i in HISTORY README RELEASE
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${DATADIR}/${i}
+ @${ECHO_CMD} -n > ${STAGEDIR}${DATADIR}/${i}/.keep_me
.endfor
- (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.[ht]* ${DOCSDIR})
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
+ ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.[ht]* ${STAGEDIR}${DOCSDIR})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/emulators/advancemame/pkg-plist b/emulators/advancemame/pkg-plist
new file mode 100644
index 000000000000..edc1fd65fab8
--- /dev/null
+++ b/emulators/advancemame/pkg-plist
@@ -0,0 +1,27 @@
+bin/advj
+bin/advk
+bin/advm
+bin/advmame
+bin/advs
+man/man1/advdev.1.gz
+man/man1/advj.1.gz
+man/man1/advk.1.gz
+man/man1/advm.1.gz
+man/man1/advmame.1.gz
+man/man1/advs.1.gz
+%%DATADIR%%/artwork/.keep_me
+%%DATADIR%%/diff/.keep_me
+%%DATADIR%%/event.dat
+%%DATADIR%%/history.dat
+%%DATADIR%%/hiscore.dat
+%%DATADIR%%/image/.keep_me
+%%DATADIR%%/rom/.keep_me
+%%DATADIR%%/sample/.keep_me
+%%DATADIR%%/snap/.keep_me
+@dirrm %%DATADIR%%/snap
+@dirrm %%DATADIR%%/sample
+@dirrm %%DATADIR%%/rom
+@dirrm %%DATADIR%%/image
+@dirrm %%DATADIR%%/diff
+@dirrm %%DATADIR%%/artwork
+@dirrm %%DATADIR%%