summaryrefslogtreecommitdiff
path: root/audio/cmus-post.fm/Makefile
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-03-08 19:07:26 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-03-08 19:07:26 +0000
commit48a0678b47218828599cc2ef57e9cfd87a5a6538 (patch)
tree473c3e9391cf94f6900be7f3ebd798f173292547 /audio/cmus-post.fm/Makefile
parentUpdate to 0.21. (diff)
Add port audio/cmus-post.fm:
Post.FM is a Perl script that submits information about your currently played track to Last.FM / Audioscrobbler. It's primarily made for CMUS, a ncurses based music player, but could be used as a general purpose scrobbler with only minor modifications. Author: Jonas Kramer <lizer@gmx.net> WWW: http://nex.scrapping.cc/post-fm/
Diffstat (limited to 'audio/cmus-post.fm/Makefile')
-rw-r--r--audio/cmus-post.fm/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/audio/cmus-post.fm/Makefile b/audio/cmus-post.fm/Makefile
new file mode 100644
index 000000000000..c642b3c8c276
--- /dev/null
+++ b/audio/cmus-post.fm/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: cmus-post.fm
+# Date created: 8 March 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= post.fm
+PORTVERSION= 0.1
+CATEGORIES= audio
+MASTER_SITES= CENKES
+PKGNAMEPREFIX= cmus-
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Last.fm submitter
+
+RUN_DEPENDS= p5-libwww>=5.805:${PORTSDIR}/www/p5-libwww
+
+USE_BZIP2= yes
+USE_PERL5_RUN= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+NO_BUILD= yes
+PLIST_FILES= libexec/${PORTNAME} %%EXAMPLESDIR%%/${PORTNAME}.conf
+PLIST_DIRS= %%EXAMPLESDIR%%
+
+post-patch:
+ @${REINPLACE_CMD} -e '1s|#!.*|#!${PERL5}|' ${WRKSRC}/${PORTNAME}
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec/
+ @${INSTALL} -d ${EXAMPLESDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${EXAMPLESDIR}/
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>