aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-09-25 14:29:40 +0800
committerbapt <bapt@FreeBSD.org>2015-09-25 14:29:40 +0800
commit0eccc9aa8915e1e05ef2d65725dbf4b03bd9c28f (patch)
tree5c614f1eb98a50fe19145d8647ed3963b4dcc7c0 /games
parente2431e0e845991dcd5d67eef12658f16375c3ea3 (diff)
downloadfreebsd-ports-gnome-0eccc9aa8915e1e05ef2d65725dbf4b03bd9c28f.tar.gz
freebsd-ports-gnome-0eccc9aa8915e1e05ef2d65725dbf4b03bd9c28f.tar.zst
freebsd-ports-gnome-0eccc9aa8915e1e05ef2d65725dbf4b03bd9c28f.zip
Remove dirrm from plist
Convert to options helpers Fix typos in dependency marcros
Diffstat (limited to 'games')
-rw-r--r--games/alephone/Makefile50
-rw-r--r--games/alephone/pkg-plist5
2 files changed, 14 insertions, 41 deletions
diff --git a/games/alephone/Makefile b/games/alephone/Makefile
index 821d449ab510..dab6a495c592 100644
--- a/games/alephone/Makefile
+++ b/games/alephone/Makefile
@@ -3,7 +3,7 @@
PORTNAME= alephone
PORTVERSION= 20120514
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/marathon/Aleph%20One/2012-05-14
DISTNAME= AlephOne-${PORTVERSION}
@@ -28,49 +28,27 @@ ZZIP_DESC= Enable zziplib support
OPTIONS_DEFAULT= MAD OGG SPEEX SMPEG TTF ZZIP
-.include <bsd.port.options.mk>
+MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
+MAD_CONFIGURE_ENABLE= mad
-.if ${PORT_OPTIONS:MMAD}
-LIB_DEPEND+= libmad.so:${PORTSDIR}/audio/libmad
-.else
-CONFIGURE_ARGS+=--disable-mad
-.endif
+OGG_LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
+OGG_CONFIGURE_ENABLE= vorbis
-.if ${PORT_OPTIONS:MOGG}
-LIB_DEPEND+= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
-.else
-CONFIGURE_ARGS+=--disable-vorbis
-.endif
+SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex
+SPEEX_CONFIGURE_ENABLE= speex
-.if ${PORT_OPTIONS:MSPEEX}
-LIB_DEPENDS+= libspeex.so:${PORTSDIR}/audio/speex
-.else
-CONFIGURE_ARGS+=--disable-speex
-.endif
+SMPEG_LIB_DEPENDS= libsmpeg.so:${PORTSDIR}/multimedia/smpeg
+SMPEG_CONFIGURE_ENABLE= smpeg
-.if ${PORT_OPTIONS:MSMPEG}
-LIB_DEPENDS+= libsmpeg.so:${PORTSDIR}/multimedia/smpeg
-.else
-CONFIGURE_ARGS+=--disable-smpeg
-.endif
+TTF_USE= SDL=ttf
+TTF_CONFIGURE_ENABLE= ttf
-.if ${PORT_OPTIONS:MTTF}
-USE_SDL+= ttf
-.else
-CONFIGURE_ARGS+=--disable-ttf
-.endif
+ZZIP_LIB_DEPENDS= libzzip.so:${PORTSDIR}/devel/zziplib
+ZZIP_CONFIGURE_ENABLE= zzip
-.if ${PORT_OPTIONS:MZZIP}
-LIB_DEPENDS+= libzzip.so:${PORTSDIR}/devel/zziplib
-.else
-CONFIGURE_ARGS+=--disable-zzip
-.endif
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/games/alephone/pkg-plist b/games/alephone/pkg-plist
index cf857b79a57f..e8d200078314 100644
--- a/games/alephone/pkg-plist
+++ b/games/alephone/pkg-plist
@@ -50,8 +50,3 @@ man/man6/alephone.6.gz
%%PORTDOCS%%%%DOCSDIR%%/Lua_HUD.html
%%PORTDOCS%%%%DOCSDIR%%/MML.html
%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/Themes/Default
-@dirrm %%DATADIR%%/Themes
-@dirrm %%DATADIR%%/MML
-@dirrmtry %%DATADIR%%