aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2001-07-28 05:41:33 +0800
committersf <sf@FreeBSD.org>2001-07-28 05:41:33 +0800
commit45c5d5837ed068cdacaed333c1f21a148ef95638 (patch)
treeb3ec34006c17912316797e1b5338fd4082b0c800
parentc2ece807f5f3e9b050597002c3987ada33868a06 (diff)
downloadfreebsd-ports-graphics-45c5d5837ed068cdacaed333c1f21a148ef95638.tar.gz
freebsd-ports-graphics-45c5d5837ed068cdacaed333c1f21a148ef95638.tar.zst
freebsd-ports-graphics-45c5d5837ed068cdacaed333c1f21a148ef95638.zip
o fix build for XFree86-4.
PR: 29256 Submitted by: Richard Wiwatowski <rjwiwat@betalogic.com.au> o getting rid of dependency on -clients. (rman is now part of imake-4.) o use pre/post.mk to simplify testing.
-rw-r--r--audio/xmcd/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/audio/xmcd/Makefile b/audio/xmcd/Makefile
index 6da980372a7..085a2a69a04 100644
--- a/audio/xmcd/Makefile
+++ b/audio/xmcd/Makefile
@@ -13,10 +13,6 @@ MASTER_SITES= http://www.ibiblio.org/tkan/download/xmcd/src/
MAINTAINER= eischen@vigrid.com
-.if defined(XFREE86_VERSION) && ${XFREE86_VERSION} == 4
-BUILD_DEPENDS= ${RMAN}:${PORTSDIR}/x11/XFree86-4-clients
-.endif
-
USE_MOTIF= yes
USE_IMAKE= yes
WRKSRC= $(WRKDIR)/xmcd-3.0
@@ -26,6 +22,8 @@ MAN1= cda.1 xmcd.1
MANCOMPRESSED= no
RMAN= ${X11BASE}/bin/rman
+.include <bsd.port.pre.mk>
+
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
@@ -36,29 +34,24 @@ post-patch:
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${WRKSRC}/xmcd_d/XMcd.ad.in \
> ${WRKSRC}/xmcd_d/XMcd.ad
-.if defined(XFREE86_VERSION) && ${XFREE86_VERSION} == 4
+.if ${XFREE86_VERSION} == 4
post-build:
(cd ${WRKSRC}; \
for i in xmcd cda; do \
${RM} -f $${i}-1.html; \
${RMAN} -f HTML < $${i}_d/$${i}.man > $${i}-1.html && \
${MV} $${i}-1.html $${i}.1.html; \
- done; \
- for i in cddbcmd dp2xmcd wm2xmcd; do \
- ${RM} -f $${i}-1.html; \
- ${RMAN} -f HTML < util_d/$${i}.man > $${i}-1.html && \
- ${MV} $${i}-1.html $${i}.1.html; \
done)
.endif
post-install:
@${CAT} ${PKGMESSAGE}
@${CP} ${WRKSRC}/xmcd_d/XMcd.ad ${PREFIX}/lib/X11/app-defaults/XMcd
-.if defined(XFREE86_VERSION) && ${XFREE86_VERSION} == 4
+.if ${XFREE86_VERSION} == 4
(cd ${WRKSRC}; \
- for i in xmcd cda cddbcmd dp2xmcd wm2xmcd; do \
+ for i in xmcd cda; do \
${INSTALL_MAN} $${i}.1.html ${PREFIX}/lib/X11/doc/html; \
done)
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>