Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2015 06:29:41 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397796 - head/games/alephone
Message-ID:  <201509250629.t8P6TfDP073996@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Sep 25 06:29:40 2015
New Revision: 397796
URL: https://svnweb.freebsd.org/changeset/ports/397796

Log:
  Remove dirrm from plist
  Convert to options helpers
  Fix typos in dependency marcros

Modified:
  head/games/alephone/Makefile
  head/games/alephone/pkg-plist

Modified: head/games/alephone/Makefile
==============================================================================
--- head/games/alephone/Makefile	Fri Sep 25 06:21:21 2015	(r397795)
+++ head/games/alephone/Makefile	Fri Sep 25 06:29:40 2015	(r397796)
@@ -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
-
-.if ${PORT_OPTIONS:MOGG}
-LIB_DEPEND+=	libvorbisfile.so:${PORTSDIR}/audio/libvorbis
-.else
-CONFIGURE_ARGS+=--disable-vorbis
-.endif
-
-.if ${PORT_OPTIONS:MSPEEX}
-LIB_DEPENDS+=	libspeex.so:${PORTSDIR}/audio/speex
-.else
-CONFIGURE_ARGS+=--disable-speex
-.endif
-
-.if ${PORT_OPTIONS:MSMPEG}
-LIB_DEPENDS+=	libsmpeg.so:${PORTSDIR}/multimedia/smpeg
-.else
-CONFIGURE_ARGS+=--disable-smpeg
-.endif
-
-.if ${PORT_OPTIONS:MTTF}
-USE_SDL+=	ttf
-.else
-CONFIGURE_ARGS+=--disable-ttf
-.endif
-
-.if ${PORT_OPTIONS:MZZIP}
-LIB_DEPENDS+=	libzzip.so:${PORTSDIR}/devel/zziplib
-.else
-CONFIGURE_ARGS+=--disable-zzip
-.endif
+OGG_LIB_DEPENDS=	libvorbisfile.so:${PORTSDIR}/audio/libvorbis
+OGG_CONFIGURE_ENABLE=	vorbis
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+SPEEX_LIB_DEPENDS=	libspeex.so:${PORTSDIR}/audio/speex
+SPEEX_CONFIGURE_ENABLE=	speex
+
+SMPEG_LIB_DEPENDS=	libsmpeg.so:${PORTSDIR}/multimedia/smpeg
+SMPEG_CONFIGURE_ENABLE=	smpeg
+
+TTF_USE=	SDL=ttf
+TTF_CONFIGURE_ENABLE=	ttf
+
+ZZIP_LIB_DEPENDS=	libzzip.so:${PORTSDIR}/devel/zziplib
+ZZIP_CONFIGURE_ENABLE=	zzip
+
+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>

Modified: head/games/alephone/pkg-plist
==============================================================================
--- head/games/alephone/pkg-plist	Fri Sep 25 06:21:21 2015	(r397795)
+++ head/games/alephone/pkg-plist	Fri Sep 25 06:29:40 2015	(r397796)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509250629.t8P6TfDP073996>