summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-03-06 12:42:56 +0000
committerRene Ladan <rene@FreeBSD.org>2014-03-06 12:42:56 +0000
commit266b4b3dd90a71a5c78a19aa0cf6c10e2a6820de (patch)
treee4b2da8555adf23eba4cd4113403e236c27b5235 /audio
parentSupport staging (diff)
- Remove dependency on expired beep-media-player
- Stage support, fix conditional package list - Use option framework instead of WITH knobs - Update and portlint pkg-descr - Bump PORTREVISION Approved by: portmgr (bapt)
Notes
Notes: svn path=/head/; revision=347190
Diffstat (limited to 'audio')
-rw-r--r--audio/scrobbler/Makefile60
-rw-r--r--audio/scrobbler/pkg-descr4
2 files changed, 20 insertions, 44 deletions
diff --git a/audio/scrobbler/Makefile b/audio/scrobbler/Makefile
index 73993ce05bc5..3df2cf21921f 100644
--- a/audio/scrobbler/Makefile
+++ b/audio/scrobbler/Makefile
@@ -3,7 +3,7 @@
PORTNAME?= scrobbler
PORTVERSION= 0.3.8.1
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= audio
MASTER_SITES= http://static.audioscrobbler.com/plugins/ \
http://www.pipian.com/stuffforchat/
@@ -14,66 +14,42 @@ COMMENT?= XMMS/BMP plugin for Audioscrobbler.com
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
-CONFLICTS= bmp-scrobbler-[0-9]* \
- xmms-scrobbler-[0-9]*
+CONFLICTS= xmms-scrobbler-[0-9]*
USES= gmake pkgconfig
USE_CSTD= gnu89
-NO_STAGE= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-SLAVEDIRS= audio/xmms-scrobbler audio/bmp-scrobbler
+SLAVEDIRS= audio/xmms-scrobbler
-.if !defined(WITH_XMMS) && !defined(WITH_BMP)
-WITH_XMMS= yes
-WITH_BMP= yes
-.endif
+OPTIONS_DEFINE= APE XMMS DEBUG ENCODINGS_PATCH
+OPTIONS_DEFAULT=XMMS
+XMMS_DESC= Enable XMMS support
+ENCODINGS_PATCH_DESC= Enable ID3 tags recoding support
-.if defined(WITH_XMMS)
-LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
-PLIST_FILES+= lib/xmms/General/libxmms_scrobbler.la \
- lib/xmms/General/libxmms_scrobbler.so
-.else
-CONFIGURE_ARGS+= --disable-xmms-plugin
-.endif
+XMMS_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms
+XMMS_PLIST_FILES= lib/xmms/General/libxmms_scrobbler.la \
+ lib/xmms/General/libxmms_scrobbler.so
+XMMS_PLIST_DIRS= lib/xmms/General lib/xmms
+XMMS_CONFIGURE_ENABLE= xmms-plugin
-.if defined(WITH_BMP)
-LIB_DEPENDS+= libbeep.so:${PORTSDIR}/multimedia/beep-media-player
-PLIST_FILES+= lib/bmp/General/libbmp_scrobbler.la \
- lib/bmp/General/libbmp_scrobbler.so
-.else
CONFIGURE_ARGS+= --disable-bmp-plugin
-.endif
-.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+= --enable-debug
-.endif
+DEBUG_CONFIGURE_ARGS= debug
-.if defined(WITH_APE)
-CONFIGURE_ARGS+= --enable-prefer-ape
-.endif
+APE_CONFIGURE_ENABLE= prefer-ape
-.if defined(WITH_ENCODINGS_PATCH)
-USES+= iconv
-.endif
+ENCODINGS_PATCH_USES= iconv
+
+.include <bsd.port.options.mk>
post-patch::
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
-.if defined(WITH_ENCODINGS_PATCH)
+.if ${PORT_OPTIONS:MENCODINGS_PATCH}
@${PATCH} ${PATCH_ARGS} -p1 < ${FILESDIR}/extra-encodings-patch
.endif
-pre-everything::
- @${ECHO_MSG} "You may specify the following on the command line:"
- @${ECHO_MSG} " "
- @${ECHO_MSG} "WITH_XMMS=yes to enable xmms support"
- @${ECHO_MSG} "WITH_BMP=yes to enable beep-media-player support"
- @${ECHO_MSG} "WITH_DEBUG=yes to turn on debug mode"
- @${ECHO_MSG} "WITH_APE=yes to enable ape"
- @${ECHO_MSG} "WITH_ENCODINGS_PATCH=yes to enable ID3 tags recoding support"
- @${ECHO_MSG} " "
-
.include <bsd.port.mk>
diff --git a/audio/scrobbler/pkg-descr b/audio/scrobbler/pkg-descr
index 77c3cd90b358..b964c022bc94 100644
--- a/audio/scrobbler/pkg-descr
+++ b/audio/scrobbler/pkg-descr
@@ -1,5 +1,5 @@
-This is an BMP/XMMS Plugin which sends the Playlist data to
+This is an XMMS Plugin which sends the Playlist data to
audioscrobbler.com
Author: pipian@pipian.com
-WWW: http://www.audioscrobbler.com
+WWW: http://www.audioscrobbler.com