svn commit: r344592 - head/emulators/fuse-utils

Rene Ladan rene at FreeBSD.org
Sun Feb 16 16:11:45 UTC 2014


Author: rene
Date: Sun Feb 16 16:11:44 2014
New Revision: 344592
URL: http://svnweb.freebsd.org/changeset/ports/344592
QAT: https://qat.redports.org/buildarchive/r344592/

Log:
  emulators/fuse-utils: Use option helpers to reduce makefile inclusions.

Modified:
  head/emulators/fuse-utils/Makefile

Modified: head/emulators/fuse-utils/Makefile
==============================================================================
--- head/emulators/fuse-utils/Makefile	Sun Feb 16 16:07:48 2014	(r344591)
+++ head/emulators/fuse-utils/Makefile	Sun Feb 16 16:11:44 2014	(r344592)
@@ -25,29 +25,17 @@ OPTIONS_DEFAULT=	AUDIOTOOLS
 
 AUDIOTOOLS_DESC=	Build audio <-> tape utilities
 
-.include <bsd.port.options.mk>
+OPTIONS_SUB=	yes
 
-.if ${PORT_OPTIONS:MAUDIOTOOLS}
-CONFIGURE_ARGS+=--with-audiofile
-LIB_DEPENDS+=	libaudiofile.so:${PORTSDIR}/audio/libaudiofile
-PLIST_SUB=	AUDIOTOOLS=""
-.else
-CONFIGURE_ARGS+=--without-audiofile
-PLIST_SUB=	AUDIOTOOLS="@comment "
-.endif
+AUDIOTOOLS_CONFIGURE_WITH=	audiofile
+AUDIOTOOLS_LIB_DEPENDS=		libaudiofile.so:${PORTSDIR}/audio/libaudiofile
 
 # FIXME no way to specify ffmpeg1 paths to configure script
-#.if ${PORT_OPTIONS:MFFMPEG}
-#LIB_DEPENDS+=	libavformat1.so:${PORTSDIR}/multimedia/ffmpeg1
-#CONFIGURE_ARGS+=--with-ffmpeg
-#.else
-CONFIGURE_ARGS+=--without-ffmpeg
-#.endif
+#FFMPEG_LIB_DEPENDS=	libavformat1.so:${PORTSDIR}/multimedia/ffmpeg1
+#FFMPEG_CONFIGURE_WITH=	ffmpeg
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list