diff options
author | rene <rene@FreeBSD.org> | 2014-03-06 20:42:56 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2014-03-06 20:42:56 +0800 |
commit | 992c670b5c602513425c5f0f114c388395665029 (patch) | |
tree | e4b2da8555adf23eba4cd4113403e236c27b5235 /audio/scrobbler | |
parent | e8804399670af61ddd887260a0b54fea56d56adc (diff) | |
download | freebsd-ports-gnome-992c670b5c602513425c5f0f114c388395665029.tar.gz freebsd-ports-gnome-992c670b5c602513425c5f0f114c388395665029.tar.zst freebsd-ports-gnome-992c670b5c602513425c5f0f114c388395665029.zip |
- 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)
Diffstat (limited to 'audio/scrobbler')
-rw-r--r-- | audio/scrobbler/Makefile | 60 | ||||
-rw-r--r-- | audio/scrobbler/pkg-descr | 4 |
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 |