svn commit: r303376 - in head: Mk sysutils/graveman
Bryan Drewery
bdrewery at FreeBSD.org
Thu Aug 30 14:38:12 UTC 2012
Author: bdrewery
Date: Thu Aug 30 14:38:11 2012
New Revision: 303376
URL: http://svn.freebsd.org/changeset/ports/303376
Log:
- Convert to new options framework
- Remove ABI version from LIB_DEPENDS
- Use bsd.port.options.mk
Approved by: eadler, bapt (mentors, implicit)
Modified:
head/Mk/bsd.options.desc.mk
head/sysutils/graveman/Makefile
Modified: head/Mk/bsd.options.desc.mk
==============================================================================
--- head/Mk/bsd.options.desc.mk Thu Aug 30 14:19:30 2012 (r303375)
+++ head/Mk/bsd.options.desc.mk Thu Aug 30 14:38:11 2012 (r303376)
@@ -198,6 +198,7 @@ NTLM_DESC?= NTLM authentication support
NUMPY_DESC?= NumPy mathematical computing support
ODBC_DESC?= ODBC backend
ODF_DESC?= ODF file support
+OGG_DESC?= OGG support
OPENAL_DESC?= OpenAL support
OPENCV_DESC?= OpenCV support
OPENEXR_DESC?= HDR support via OpenEXR
Modified: head/sysutils/graveman/Makefile
==============================================================================
--- head/sysutils/graveman/Makefile Thu Aug 30 14:19:30 2012 (r303375)
+++ head/sysutils/graveman/Makefile Thu Aug 30 14:38:11 2012 (r303376)
@@ -15,7 +15,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.
MAINTAINER= ports at FreeBSD.org
COMMENT= Another GTK2 frontend for cdrecord, mkisofs, readcd, and sox
-LIB_DEPENDS= mng.1:${PORTSDIR}/graphics/libmng
+LIB_DEPENDS= mng:${PORTSDIR}/graphics/libmng
USE_BZIP2= yes
USE_GMAKE= yes
@@ -29,29 +29,28 @@ CPPFLAGS+= -I${LOCALBASE}/include ${PTHR
MAN1= graveman.1
-OPTIONS= MP3 "MP3 Support" off \
- OGG "OGG Support" off \
- DVD "DVD+RW Support" off
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_MP3)
-LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \
- id3tag.0:${PORTSDIR}/audio/libid3tag
+OPTIONS_DEFINE= MP3 OGG DVD
+DVD_DESC= DVD+RW support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMP3}
+LIB_DEPENDS+= mad:${PORTSDIR}/audio/libmad \
+ id3tag:${PORTSDIR}/audio/libid3tag
RUN_DEPENDS+= sox:${PORTSDIR}/audio/sox
.else
CONFIGURE_ARGS+=--disable-mp3
.endif
-.if defined(WITH_OGG)
+.if ${PORT_OPTIONS:MOGG}
LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg \
- vorbis.4:${PORTSDIR}/audio/libvorbis
+ vorbis:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+=--disable-ogg
.endif
-.if defined(WITH_DVD)
+.if ${PORT_OPTIONS:MDVD}
RUN_DEPENDS+= growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list