ports/173782: [PATCH] audio/clementine-player optionsng
Chris Petrik
c.petrik.sosa at gmail.com
Wed Nov 21 22:00:25 UTC 2012
>Number: 173782
>Category: ports
>Synopsis: [PATCH] audio/clementine-player optionsng
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 21 22:00:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Chris Petrik
>Release:
>Organization:
na
>Environment:
>Description:
OptionsNG Changes
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: clementine-player/Makefile
===================================================================
--- clementine-player/Makefile (revision 305743)
+++ clementine-player/Makefile (working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: clementine-player
-# Date created: 2010-03-23
-# Whom: Gvozdikov Veniamin <g.veniamin at googlemail.com>
-#
+# Created by: Gvozdikov Veniamin <g.veniamin at googlemail.com>
# $FreeBSD$
-#
PORTNAME= clementine
PORTVERSION= 1.0.0
@@ -17,10 +13,10 @@
LICENSE= GPLv3
-LIB_DEPENDS= tag.1:${PORTSDIR}/audio/taglib \
- notify.4:${PORTSDIR}/devel/libnotify \
- xine.2:${PORTSDIR}/multimedia/libxine \
- qjson.0:${PORTSDIR}/devel/qjson
+LIB_DEPENDS= tag:${PORTSDIR}/audio/taglib \
+ notify:${PORTSDIR}/devel/libnotify \
+ xine:${PORTSDIR}/multimedia/libxine \
+ qjson:${PORTSDIR}/devel/qjson
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
PROJECTHOST= ${PORTNAME}${PKGNAMESUFFIX}
@@ -37,36 +33,37 @@
CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib"
-OPTIONS= VISUALISATION "Visualisations from projectM" off \
- LASTFM "Support Last.fm service (requires ruby)" on \
- GPOD "iPod support" on \
- MTP "MTP device support" on
+OPTIONS_DEFINE= VISUALISATION LASTFM GPOD MTP
+OPTIONS_DEFAULTS= LASTFM GPOD MTP
-.include <bsd.port.pre.mk>
+VISUALISATION_DESC= Visualisations from projectM
+GPOD_DESC= iPod support
-.if defined(WITH_VISUALISATION)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MVISUALISATION}
PLIST_SUB+= VSL=""
.else
CMAKE_ARGS+= -DENABLE_VISUALISATIONS=OFF
PLIST_SUB+= VSL="@comment "
.endif
-.if defined(WITH_LASTFM)
-LIB_DEPENDS+= lastfm.0:${PORTSDIR}/audio/liblastfm
+.if ${PORT_OPTIONS:MLASTFM}
+LIB_DEPENDS+= lastfm:${PORTSDIR}/audio/liblastfm
.else
CMAKE_ARGS+= -DENABLE_LIBLASTFM=Off
.endif
-.if defined(WITH_GPOD)
-LIB_DEPENDS+= gpod.7:${PORTSDIR}/audio/libgpod
+.if ${PORT_OPTIONS:MGPOD}
+LIB_DEPENDS+= gpod:${PORTSDIR}/audio/libgpod
.else
CMAKE_ARGS+= -DENABLE_LIBGPOD=Off
.endif
-.if defined(WITH_MTP)
-LIB_DEPENDS+= mtp.9:${PORTSDIR}/audio/libmtp
+.if ${PORT_OPTIONS:MMTP}
+LIB_DEPENDS+= mtp:${PORTSDIR}/audio/libmtp
.else
CMAKE_ARGS+= -DENABLE_LIBMTP=Off
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list