To decide the configuration files' directory affecting ${PREFIX}.

PR:	ports/8972
Submitted by:	gpalmer@FreeBSD.ORG
This commit is contained in:
SADA Kenji 1998-12-05 22:28:44 +00:00
parent 3b10d2acb5
commit a106e2e081
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15141
2 changed files with 22 additions and 1 deletions

View File

@ -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}

11
audio/xmcd/files/patch-ad Normal file
View File

@ -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