summaryrefslogtreecommitdiff
path: root/audio/agbrowser
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-08 04:18:04 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-09-08 04:18:04 +0000
commitc3d60af06aa93c1e8e26c07e38b93b2e78313f2f (patch)
tree37066ed55bd27ba14b0975633ee87d036645bb4b /audio/agbrowser
parentAllow "stat" in addition to "status". (diff)
o RUN_DEPENDS on agsatellite port (at last :)
o first attempt to have this port run using the aforementioned port (wrapper script)
Notes
Notes: svn path=/head/; revision=47528
Diffstat (limited to 'audio/agbrowser')
-rw-r--r--audio/agbrowser/Makefile9
-rw-r--r--audio/agbrowser/files/wrapper.sh21
-rw-r--r--audio/agbrowser/pkg-plist1
3 files changed, 31 insertions, 0 deletions
diff --git a/audio/agbrowser/Makefile b/audio/agbrowser/Makefile
index 20a5db2ffad7..172384301de2 100644
--- a/audio/agbrowser/Makefile
+++ b/audio/agbrowser/Makefile
@@ -15,8 +15,17 @@ MAINTAINER= lioux@FreeBSD.org
# USE_AUTO{CONF,MAKE} breaks it
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf \
automake:${PORTSDIR}/devel/automake
+RUN_DEPENDS= AGSatellite:${PORTSDIR}/audio/agsatellite
USE_KDELIBS_VER=2
GNU_CONFIGURE= yes
+post-patch:
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|" -e "s|%%LOCALBASE%%|${LOCALBASE}|" \
+ ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
+
+post-install:
+ @${MV} ${PREFIX}/bin/agbrowser ${PREFIX}/bin/agbrowser-real
+ @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/agbrowser
+
.include <bsd.port.mk>
diff --git a/audio/agbrowser/files/wrapper.sh b/audio/agbrowser/files/wrapper.sh
new file mode 100644
index 000000000000..5fddb8f6d895
--- /dev/null
+++ b/audio/agbrowser/files/wrapper.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+PREFIX="%%PREFIX%%"
+LOCALBASE="%%LOCALBASE%%"
+PROGRAM="${0}"
+SATELLITE=AGSatellite
+
+if [ ${#} -gt 1 ]
+then
+ shift
+fi
+
+if [ ! -d ${HOME}/.agsatellite ] || [ ! -h ${HOME}/.agsatellite/${SATELLITE} ]
+then
+ ${LOCALBASE}/bin/${SATELLITE} -createdironly
+fi
+
+ cd ${HOME}/.agsatellite &&
+ echo Running Audio Galaxy Browser under ${HOME}/.agsatellite &&
+ echo Use this directory as the Satellite Directory in the Settings Tab &&
+ exec ${PREFIX}/bin/${PROGRAM##*/}-real ${*}
diff --git a/audio/agbrowser/pkg-plist b/audio/agbrowser/pkg-plist
index a8f2a457f5a7..06fe86b32341 100644
--- a/audio/agbrowser/pkg-plist
+++ b/audio/agbrowser/pkg-plist
@@ -1,4 +1,5 @@
bin/agbrowser
+bin/agbrowser-real
share/applnk/Internet/agbrowser.desktop
share/icons/hicolor/16x16/actions/sat-down.png
share/icons/hicolor/16x16/actions/sat-up.png