aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-03-03 05:10:39 +0800
committerbapt <bapt@FreeBSD.org>2014-03-03 05:10:39 +0800
commit9e5bdd9802fc8168af39cc8e9a3749f91f179663 (patch)
tree96be3c09159bb5002e1949089f2a9a9d42da2419 /audio
parent4c625128db708c8f70c6c48d2bfc52d2a0c6e3a1 (diff)
downloadfreebsd-ports-gnome-9e5bdd9802fc8168af39cc8e9a3749f91f179663.tar.gz
freebsd-ports-gnome-9e5bdd9802fc8168af39cc8e9a3749f91f179663.tar.zst
freebsd-ports-gnome-9e5bdd9802fc8168af39cc8e9a3749f91f179663.zip
Support stage
Add python option Use options helpers
Diffstat (limited to 'audio')
-rw-r--r--audio/streamtuner/Makefile44
1 files changed, 8 insertions, 36 deletions
diff --git a/audio/streamtuner/Makefile b/audio/streamtuner/Makefile
index 2720924564b9..46feb90d289c 100644
--- a/audio/streamtuner/Makefile
+++ b/audio/streamtuner/Makefile
@@ -15,7 +15,6 @@ BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme
-NO_STAGE= yes
USES= gmake pathfix pkgconfig
USE_GNOME= gtk20 gnomeprefix
INSTALLS_OMF= yes
@@ -23,7 +22,7 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS_DEFINE= SHOUTCAST LIVE365 XIPH LOCAL LOCAL_METADATA
+OPTIONS_DEFINE= SHOUTCAST LIVE365 XIPH LOCAL LOCAL_METADATA PYTHON
OPTIONS_DEFAULT= SHOUTCAST LIVE365 XIPH LOCAL LOCAL_METADATA
SHOUTCAST_DESC= SHOUTcast plugin
LIVE365_DESC= Live365 plugin
@@ -31,29 +30,14 @@ LOCAL_DESC= Local plugin
LOCAL_METADATA_DESC= Metadata support for the Local plugin
XIPH_DESC= Xiph plugin
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSHOUTCAST}
-PLIST_SUB+= SHOUTCAST=""
-.else
-CONFIGURE_ARGS+= --disable-shoutcast
-PLIST_SUB+= SHOUTCAST="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MLIVE365}
-PLIST_SUB+= LIVE365=""
-.else
-CONFIGURE_ARGS+= --disable-live365
-PLIST_SUB+= LIVE365="@comment "
-.endif
+OPTIONS_SUB= yes
+SHOUTCAST_CONFIGURE_ENABLE= shoutcast
+LIB365_CONFIGURE_ENABLE= libve365
+XIPH_CONFIGURE_ENABLE= xiph
+PYTHON_USE= python=yes gnome=pygtk2
+PYTHON_CONFIGURE_ENABLE= python
-.if ${PORT_OPTIONS:MXIPH}
-PLIST_SUB+= XIPH=""
-USE_GNOME+= libxml2
-.else
-CONFIGURE_ARGS+= --disable-xiph
-PLIST_SUB+= XIPH="@comment "
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLOCAL}
PLIST_SUB+= LOCAL=""
@@ -67,18 +51,6 @@ CONFIGURE_ARGS+= --disable-local
PLIST_SUB+= LOCAL="@comment "
.endif
-.if ${PORT_OPTIONS:MPYTHON}
-PLIST_SUB+= PYTHON=""
-USE_PYTHON= yes
-# we need to manually include this, because USE_PYTHON is defined
-# after including bsd.port.pre.mk
-.include "${PORTSDIR}/Mk/bsd.python.mk"
-USE_GNOME+= pygtk2
-.else
-CONFIGURE_ARGS+= --disable-python
-PLIST_SUB+= PYTHON="@comment "
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|[(]datadir[)]/help|(datadir)/gnome/help|g' \