Date: Sat, 28 Sep 2013 16:03:59 +0000 (UTC) From: Christian Weisgerber <naddy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328592 - head/audio/mpg321 Message-ID: <201309281603.r8SG3xPt075293@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: naddy Date: Sat Sep 28 16:03:59 2013 New Revision: 328592 URL: http://svnweb.freebsd.org/changeset/ports/328592 Log: Support staging. Turn obscure WITH_ variable into OPTION for Last.fm Audioscrobbler support. Modified: head/audio/mpg321/Makefile Modified: head/audio/mpg321/Makefile ============================================================================== --- head/audio/mpg321/Makefile Sat Sep 28 15:54:10 2013 (r328591) +++ head/audio/mpg321/Makefile Sat Sep 28 16:03:59 2013 (r328592) @@ -8,34 +8,33 @@ CATEGORIES= audio MASTER_SITES= SF MAINTAINER= naddy@FreeBSD.org -COMMENT= A free command-line mp3 player, compatible with mpg123 +COMMENT= Command-line MP3 player, compatible with mpg123 -LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao \ - id3tag.0:${PORTSDIR}/audio/libid3tag \ - mad.2:${PORTSDIR}/audio/libmad - -NO_STAGE= yes -.if defined(WITH_MPG321_SCROBBLER_PATCH) -RUN_DEPENDS= scrobbler-helper:${PORTSDIR}/audio/p5-Audio-Scrobbler - -PATCHFILES+= mpg321-0.2.10-scrobbler-01.patch:scrobbler -PATCH_SITES+= http://people.FreeBSD.org/~roam/ports/audio/:scrobbler \ - http://devel.ringlet.net/audio/mpg321-scrobbler/:scrobbler - - -MPG321_SCROBBLER_PLUGIN_NAME?= 321 -.endif +LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao \ + libid3tag.so:${PORTSDIR}/audio/libid3tag \ + libmad.so:${PORTSDIR}/audio/libmad GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-mpg123-symlink CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAN1= mpg321.1 +PLIST_FILES= bin/mpg321 man/man1/mpg321.1.gz -PLIST_FILES= bin/mpg321 +OPTIONS_DEFINE= SCROBBLER +SCROBBLER_DESC= Last.fm Audioscrobbler support + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MSCROBBLER} +RUN_DEPENDS+= scrobbler-helper:${PORTSDIR}/audio/p5-Audio-Scrobbler + +PATCHFILES+= mpg321-0.2.10-scrobbler-01.patch:scrobbler +PATCH_SITES+= http://people.FreeBSD.org/~roam/ports/audio/:scrobbler \ + http://devel.ringlet.net/audio/mpg321-scrobbler/:scrobbler + +MPG321_SCROBBLER_PLUGIN_NAME?= 321 -.if defined(WITH_MPG321_SCROBBLER_PATCH) post-patch: ${REINPLACE_CMD} "s/\"mpg321\"/\"${MPG321_SCROBBLER_PLUGIN_NAME}\"/" ${WRKSRC}/scrobbler.c .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309281603.r8SG3xPt075293>