[69053] trunk/dports/audio
snc at macports.org
snc at macports.org
Tue Jun 22 06:37:30 PDT 2010
Revision: 69053
http://trac.macports.org/changeset/69053
Author: snc at macports.org
Date: 2010-06-22 06:37:30 -0700 (Tue, 22 Jun 2010)
Log Message:
-----------
add pianobar, #25334
Added Paths:
-----------
trunk/dports/audio/pianobar/
trunk/dports/audio/pianobar/Portfile
trunk/dports/audio/pianobar/files/
trunk/dports/audio/pianobar/files/patch-Makefile.diff
Added: trunk/dports/audio/pianobar/Portfile
===================================================================
--- trunk/dports/audio/pianobar/Portfile (rev 0)
+++ trunk/dports/audio/pianobar/Portfile 2010-06-22 13:37:30 UTC (rev 69053)
@@ -0,0 +1,37 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name pianobar
+version 6a0f620
+categories audio
+platforms darwin
+maintainers gmail.com:aguynamedryan+pianobar
+homepage http://6xq.net/html/00/17.html
+
+description Console-based pandora.com player
+
+long_description "pianobar" is a console client for the \
+ personalized web radio pandora \
+ (http://www.pandora.com).\
+ Play and manage stations, rate songs and \
+ see why they were selected, show upcoming \
+ configure keybindings, last.fm scrobbling, \
+ proxy support for listening outside of USA.
+
+
+fetch.type git
+git.url git://github.com/PromyLOPh/pianobar.git
+git.branch ${version}
+
+depends_lib port:libao \
+ port:faad2 \
+ port:libmad
+
+patchfiles patch-Makefile.diff
+post-patch {
+ reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/Makefile
+}
+
+use_configure no
Property changes on: trunk/dports/audio/pianobar/Portfile
___________________________________________________________________
Added: svn:keywords:Id
+
Added: svn:eol-style
+ native
Added: trunk/dports/audio/pianobar/files/patch-Makefile.diff
===================================================================
--- trunk/dports/audio/pianobar/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/audio/pianobar/files/patch-Makefile.diff 2010-06-22 13:37:30 UTC (rev 69053)
@@ -0,0 +1,39 @@
+--- Makefile.orig 2010-06-18 11:29:59.000000000 -0700
++++ Makefile 2010-06-18 12:15:22.000000000 -0700
+@@ -1,6 +1,6 @@
+ # makefile of pianobar
+
+-PREFIX:=/usr/local
++PREFIX:=@PREFIX@
+ BINDIR:=${PREFIX}/bin
+ LIBDIR:=${PREFIX}/lib
+ MANDIR:=${PREFIX}/share/man
+@@ -87,7 +87,7 @@
+ pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
+ ${LIBWAITRESS_HDR} ${LIBEZXML_OBJ} ${LIBEZXML_HDR}
+ ${CC} ${CFLAGS} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
+- ${LIBEZXML_OBJ} ${LIBAO_LIB} ${LIBFAAD_LIB} ${LIBMAD_LIB} \
++ ${LIBEZXML_OBJ} -L at PREFIX@/lib ${LIBAO_LIB} ${LIBFAAD_LIB} ${LIBMAD_LIB} \
+ ${PTHREAD_LIB} ${LIBM_LIB} -o $@
+
+ # build shared libpiano
+@@ -98,7 +98,7 @@
+
+ %.o: %.c
+ ${CC} ${CFLAGS} -I ${LIBPIANO_INCLUDE} -I ${LIBWAITRESS_INCLUDE} \
+- -I ${LIBEZXML_INCLUDE} ${LIBFAAD_SWITCH} ${LIBMAD_SWITCH} -c \
++ -I ${LIBEZXML_INCLUDE} -I @PREFIX@/include ${LIBFAAD_SWITCH} ${LIBMAD_SWITCH} -c \
+ -o $@ $<
+
+ # create position independent code (for shared libraries)
+@@ -113,7 +113,9 @@
+
+ all: pianobar libpiano
+
+-install: pianobar
++install: pianobar ${DESTDIR}/${BINDIR}/pianobar
++
++${DESTDIR}/${BINDIR}/pianobar:
+ install -d ${DESTDIR}/${BINDIR}/
+ install -m755 pianobar ${DESTDIR}/${BINDIR}/
+ install -d ${DESTDIR}/${MANDIR}/man1/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100622/ace84925/attachment.html>
More information about the macports-changes
mailing list