aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2006-12-20 07:30:02 +0800
committersat <sat@FreeBSD.org>2006-12-20 07:30:02 +0800
commit82fc24b542d3f0550f892d339f75ae0cdc3a96ae (patch)
tree1ee6a152758ddbf63099e2a64a955f1495c59e76 /audio
parentc4e4d104e51ab19471e8ed98fb0e29dc636d2389 (diff)
downloadfreebsd-ports-gnome-82fc24b542d3f0550f892d339f75ae0cdc3a96ae.tar.gz
freebsd-ports-gnome-82fc24b542d3f0550f892d339f75ae0cdc3a96ae.tar.zst
freebsd-ports-gnome-82fc24b542d3f0550f892d339f75ae0cdc3a96ae.zip
- Add support for Konqueror and Amarok
Kindly requested by: Ron Joordens <rjoordens@jadodd.com.au>
Diffstat (limited to 'audio')
-rw-r--r--audio/pacpl/Makefile27
-rw-r--r--audio/pacpl/pkg-plist8
2 files changed, 34 insertions, 1 deletions
diff --git a/audio/pacpl/Makefile b/audio/pacpl/Makefile
index 54a4d74e74c3..7aa98c9caf5f 100644
--- a/audio/pacpl/Makefile
+++ b/audio/pacpl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pacpl
PORTVERSION= 3.2.5
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SFE
@@ -44,14 +45,26 @@ ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
PACPL_LNG_FILES= help long_help rip_help tag_help video_help
PACPL_LNGS= FR PT
+AMAROK_SCR= README transcoding_pacx.pl
+AMAROK_SCR_DIR= share/apps/amarok/scripts/transcoding_pacx
+KONQ_MIME= ape bonk kxs la lpac ofr ofs shn tta wavpack
+KONQ_SVCM= ${PORTNAME}
+KONQ_MIME_DIR= share/mimelnk/audio
+KONQ_SVCM_DIR= share/apps/konqueror/servicemenus
PLIST_FILES= bin/pacpl etc/pacpl/pacpl.conf \
${PACPL_LNG_FILES:S,^,etc/pacpl/lang/FR/,:S,$,.FR,} \
- ${PACPL_LNG_FILES:S,^,etc/pacpl/lang/PT/,:S,$,.PT,}
+ ${PACPL_LNG_FILES:S,^,etc/pacpl/lang/PT/,:S,$,.PT,} \
+ ${AMAROK_SCR:S|^|${AMAROK_SCR_DIR}/|} \
+ ${AMAROK_SCR_DIR}/transcoding_pacx.spec \
+ ${KONQ_MIME:S|^|${KONQ_MIME_DIR}/x-|:S|$|.desktop|} \
+ ${KONQ_SVCM:S|^|${KONQ_SVCM_DIR}/|:S|$|.desktop|}
PLIST_DIRS= etc/pacpl/lang/FR etc/pacpl/lang/PT etc/pacpl/lang etc/pacpl
MAN1= pacpl.1
post-extract:
@${GUNZIP_CMD} ${WRKSRC}/man/pacpl.1.gz
+ @cd ${WRKSRC}/kde/amarok && ${TAR} xf pacx.amarokscript.tar.gz
+ @cd ${WRKSRC}/kde/amarok/pacx.amarokscript && ${MV} pacx.pl transcoding_pacx.pl
post-patch:
@${REINPLACE_CMD} -e 's#/etc#${PREFIX}/etc#' ${WRKSRC}/pacpl
@@ -64,5 +77,17 @@ do-install:
@${INSTALL_DATA} ${PACPL_LNG_FILES:S,^,${WRKSRC}/lang/PT/,:S,$,.PT,} ${PREFIX}/etc/pacpl/lang/PT/
@${INSTALL_DATA} ${WRKSRC}/pacpl.conf ${PREFIX}/etc/pacpl/
@${INSTALL_MAN} ${WRKSRC}/man/pacpl.1 ${MAN1PREFIX}/man/man1/
+ @${INSTALL} -d ${PREFIX}/${AMAROK_SCR_DIR}/
+ @${INSTALL} -d ${PREFIX}/${KONQ_MIME_DIR}/
+ @${INSTALL} -d ${PREFIX}/${KONQ_SVCM_DIR}/
+ @${INSTALL_DATA} ${AMAROK_SCR:S|^|${WRKSRC}/kde/amarok/pacx.amarokscript/|} \
+ ${PREFIX}/${AMAROK_SCR_DIR}/
+ @${INSTALL_DATA} ${KONQ_MIME:S|^|${WRKSRC}/kde/konqueror/mimes/x-|:S|$|.desktop|} \
+ ${PREFIX}/${KONQ_MIME_DIR}/
+ @${INSTALL_DATA} ${KONQ_SVCM:S|^|${WRKSRC}/kde/konqueror/|:S|$|.desktop|} \
+ ${PREFIX}/${KONQ_SVCM_DIR}/
+ @${CHMOD} a+x ${PREFIX}/${AMAROK_SCR_DIR}/*pl
+ @${ECHO_CMD} "name = Pacx" > ${PREFIX}/${AMAROK_SCR_DIR}/transcoding_pacx.spec
+ @${ECHO_CMD} "type = transcoding" >> ${PREFIX}/${AMAROK_SCR_DIR}/transcoding_pacx.spec
.include <bsd.port.mk>
diff --git a/audio/pacpl/pkg-plist b/audio/pacpl/pkg-plist
new file mode 100644
index 000000000000..b8ccc12336fe
--- /dev/null
+++ b/audio/pacpl/pkg-plist
@@ -0,0 +1,8 @@
+@dirrm share/apps/amarok/scripts/transcoding_pacx
+@dirrmtry share/apps/amarok/scripts
+@dirrmtry share/apps/amarok
+@dirrmtry share/apps/konqueror/servicemenus
+@dirrmtry share/apps/konqueror
+@dirrmtry share/apps
+@dirrmtry share/mimelnk/audio
+@dirrmtry share/mimelnk