aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmcd
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>1998-12-06 06:28:44 +0800
committersada <sada@FreeBSD.org>1998-12-06 06:28:44 +0800
commita8b61d0f9c6402910fbd2dea155df4b8572f3b8d (patch)
tree55cb38cb6616e3aebfde8336908249221c867949 /audio/xmcd
parenta443edd09150b7fd592f5388cb0ff49ae7096a25 (diff)
downloadfreebsd-ports-gnome-a8b61d0f9c6402910fbd2dea155df4b8572f3b8d.tar.gz
freebsd-ports-gnome-a8b61d0f9c6402910fbd2dea155df4b8572f3b8d.tar.zst
freebsd-ports-gnome-a8b61d0f9c6402910fbd2dea155df4b8572f3b8d.zip
To decide the configuration files' directory affecting ${PREFIX}.
PR: ports/8972 Submitted by: gpalmer@FreeBSD.ORG
Diffstat (limited to 'audio/xmcd')
-rw-r--r--audio/xmcd/Makefile12
-rw-r--r--audio/xmcd/files/patch-ad11
2 files changed, 22 insertions, 1 deletions
diff --git a/audio/xmcd/Makefile b/audio/xmcd/Makefile
index 18419adf288b..a5bf9905c496 100644
--- a/audio/xmcd/Makefile
+++ b/audio/xmcd/Makefile
@@ -3,7 +3,7 @@
# Date created: 16 Februar 1995
# Whom: Gennady Sorokopud <gena@NetVision.net.il>
#
-# $Id: Makefile,v 1.14 1998/08/31 06:56:58 asami Exp $
+# $Id: Makefile,v 1.15 1998/11/11 00:30:41 mph Exp $
#
DISTNAME= xmcd-2.4
@@ -17,6 +17,16 @@ USE_IMAKE= yes
MAN1= cddbcmd.1 wm2xmcd.1 xmcd.1 cda.1
+post-extract:
+ @chmod -R u+w ${WRKSRC}
+
+pre-patch:
+ @${CP} ${WRKSRC}/xmcd_d/XMcd.ad ${WRKSRC}/xmcd_d/XMcd.ad.in
+
+post-patch:
+ @${SED} -e "s;@PREFIX@;${PREFIX};g" ${WRKSRC}/xmcd_d/XMcd.ad.in \
+ > ${WRKSRC}/xmcd_d/XMcd.ad
+
post-install:
.for man in cddbcmd.1 wm2xmcd.1 xmcd.1 cda.1
${GZIP_CMD} ${PREFIX}/man/man1/${man}
diff --git a/audio/xmcd/files/patch-ad b/audio/xmcd/files/patch-ad
new file mode 100644
index 000000000000..50e810368bad
--- /dev/null
+++ b/audio/xmcd/files/patch-ad
@@ -0,0 +1,11 @@
+--- xmcd_d/XMcd.ad.in.orig Sun Dec 6 06:08:50 1998
++++ xmcd_d/XMcd.ad.in Sun Dec 6 06:09:33 1998
+@@ -42,7 +42,7 @@
+ !* This resource _must_ be set correctly in your environment
+ !* in order for xmcd to function correctly.
+ !*
+-XMcd.libdir: /usr/lib/X11/xmcd
++XMcd.libdir: @PREFIX@/lib/X11/xmcd
+
+ !*
+ !* CD Database archive contribution