Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 03:12:43 +0000 (UTC)
From:      Wesley Shields <wxs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309139 - head/audio/gmusicbrowser
Message-ID:  <201212180312.qBI3Chpn040390@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wxs
Date: Tue Dec 18 03:12:42 2012
New Revision: 309139
URL: http://svnweb.freebsd.org/changeset/ports/309139

Log:
  Convert to new options.
  Use NO_BUILD instead of defining an empty do-build target.
  
  PR:		ports/173800
  Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
  Approved by:	Zhihao Yuan <lichray@gmail.com> (maintainer)

Modified:
  head/audio/gmusicbrowser/Makefile   (contents, props changed)

Modified: head/audio/gmusicbrowser/Makefile
==============================================================================
--- head/audio/gmusicbrowser/Makefile	Tue Dec 18 02:40:07 2012	(r309138)
+++ head/audio/gmusicbrowser/Makefile	Tue Dec 18 03:12:42 2012	(r309139)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	gmusicbrowser
-# Date created:		2011-10-13
-# Whom:			Zhihao Yuan <lichray@gmail.com>
-#
+# Created by: Zhihao Yuan <lichray@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	gmusicbrowser
 PORTVERSION=	1.1.9
@@ -16,32 +12,32 @@ COMMENT=	Jukebox for large collections o
 
 RUN_DEPENDS=	p5-Gtk2>=1.0:${PORTSDIR}/x11-toolkits/p5-Gtk2
 
+NO_BUILD=	yes
+
 MAN1=	gmusicbrowser.1
 PORTDOCS=	AUTHORS COPYING README NEWS INSTALL layout_doc.html
 PORTDATA=	*
 
-OPTIONS=	GST	"Enable GStreamer backend"	Off \
-		MPLAYER	"Enable mplayer backend"	On \
-		DBUS	"Enable DBus (Gnome multimedia key)" Off \
-		WEBKIT	"Enable embedded web browser" Off \
-		NLS	"Enable Native Language Support" On
-#		123	"Enable mpg123/ogg123 backend"	Off  # alsa-only
+OPTIONS_DEFINE=	GSTREAMER MPLAYER DBUS WEBKIT NLS
+OPTIONS_DEFAULT=	MPLAYER
+
+WEBKIT_DESC=	Enable embedded web browser
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_GST)
+.if ${PORT_OPTIONS:MGSTREAMER}
 RUN_DEPENDS+=	p5-GStreamer>=0:${PORTSDIR}/multimedia/p5-GStreamer
 .endif
 
-.if defined(WITH_MPLAYER)
+.if ${PORT_OPTIONS:MMPLAYER}
 RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
 .endif
 
-.if defined(WITH_DBUS)
+.if ${PORT_OPTIONS:MDBUS}
 RUN_DEPENDS+=	p5-Net-DBus>=1.0:${PORTSDIR}/devel/p5-Net-DBus
 .endif
 
-.if defined(WITH_WEBKIT)
+.if ${PORT_OPTIONS:MWEBKIT}
 RUN_DEPENDS+=	p5-Gtk2-WebKit>=0:${PORTSDIR}/www/p5-Gtk2-WebKit
 .endif
 
@@ -49,8 +45,6 @@ RUN_DEPENDS+=	p5-Gtk2-WebKit>=0:${PORTSD
 IGNORE=		port data contain code, undefine NOPORTDATA
 .endif
 
-do-build:
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${MANPREFIX}/man/man1/${MAN1}
@@ -61,15 +55,15 @@ do-install:
 		${COPYTREE_SHARE} $$d ${DATADIR}; done) && \
 		${INSTALL_DATA} *.pm ${DATADIR} && \
 		${INSTALL_SCRIPT} iceserver.pl ${DATADIR})
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
 .endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
 	(cd ${WRKSRC}/locale && \
 		${COPYTREE_SHARE} \* ${PREFIX}/share/locale)
 	(cd ${WRKSRC} && \
 		${FIND} locale -type f | ${SED} "s|^|share/|g" >> ${TMPPLIST})
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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