From 0eccc9aa8915e1e05ef2d65725dbf4b03bd9c28f Mon Sep 17 00:00:00 2001 From: bapt Date: Fri, 25 Sep 2015 06:29:40 +0000 Subject: Remove dirrm from plist Convert to options helpers Fix typos in dependency marcros --- games/alephone/Makefile | 50 ++++++++++++++---------------------------------- games/alephone/pkg-plist | 5 ----- 2 files changed, 14 insertions(+), 41 deletions(-) (limited to 'games') 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 +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 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%% -- cgit