Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2014 12:42:56 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347190 - head/audio/scrobbler
Message-ID:  <201403061242.s26CgvGS088240@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Thu Mar  6 12:42:56 2014
New Revision: 347190
URL: http://svnweb.freebsd.org/changeset/ports/347190
QAT: https://qat.redports.org/buildarchive/r347190/

Log:
  - 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)

Modified:
  head/audio/scrobbler/Makefile
  head/audio/scrobbler/pkg-descr

Modified: head/audio/scrobbler/Makefile
==============================================================================
--- head/audio/scrobbler/Makefile	Thu Mar  6 12:33:04 2014	(r347189)
+++ head/audio/scrobbler/Makefile	Thu Mar  6 12:42:56 2014	(r347190)
@@ -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 Audioscrob
 
 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
-
-.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
+OPTIONS_DEFINE=	APE XMMS DEBUG ENCODINGS_PATCH
+OPTIONS_DEFAULT=XMMS
+XMMS_DESC=	Enable XMMS support
+ENCODINGS_PATCH_DESC=	Enable ID3 tags recoding support
+
+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>

Modified: head/audio/scrobbler/pkg-descr
==============================================================================
--- head/audio/scrobbler/pkg-descr	Thu Mar  6 12:33:04 2014	(r347189)
+++ head/audio/scrobbler/pkg-descr	Thu Mar  6 12:42:56 2014	(r347190)
@@ -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



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