From owner-svn-ports-all@FreeBSD.ORG Sat Sep 28 16:03:59 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C13891B0; Sat, 28 Sep 2013 16:03:59 +0000 (UTC) (envelope-from naddy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 945F02392; Sat, 28 Sep 2013 16:03:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8SG3xwg075295; Sat, 28 Sep 2013 16:03:59 GMT (envelope-from naddy@svn.freebsd.org) Received: (from naddy@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8SG3xPt075293; Sat, 28 Sep 2013 16:03:59 GMT (envelope-from naddy@svn.freebsd.org) Message-Id: <201309281603.r8SG3xPt075293@svn.freebsd.org> From: Christian Weisgerber Date: Sat, 28 Sep 2013 16:03:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328592 - head/audio/mpg321 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Sep 2013 16:03:59 -0000 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 + +.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