blob: 6da980372a7fc087934ac0a803537469aa1930cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: xmcd
# Date created: 16 Februar 1995
# Whom: Gennady Sorokopud <gena@NetVision.net.il>
#
# $FreeBSD$
#
PORTNAME= xmcd
PORTVERSION= 3.0.1
PORTREVISION= 1
CATEGORIES= audio
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
PLIST_SUB+= RELEASE=${OSREL:R} ARCH=${ARCH}
MAN1= cda.1 xmcd.1
MANCOMPRESSED= no
RMAN= ${X11BASE}/bin/rman
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
.if defined(XFREE86_VERSION) && ${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
(cd ${WRKSRC}; \
for i in xmcd cda cddbcmd dp2xmcd wm2xmcd; do \
${INSTALL_MAN} $${i}.1.html ${PREFIX}/lib/X11/doc/html; \
done)
.endif
.include <bsd.port.mk>
|