blob: bbb0bb48bedbfd5c25655b564cbb48a41acfe2ed (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: xmcd
# Date created: 16 February 1995
# Whom: Gennady Sorokopud <gena@NetVision.net.il>
#
# $FreeBSD$
#
PORTNAME= xmcd
PORTVERSION= 3.3.1
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.ibiblio.org/tkan/download/xmcd/3.3.0/src/:xmcd \
http://www.ibiblio.org/tkan/xmcd/:xmcd_331_patch
DISTFILES= xmcd-3.3.0.tar.gz:xmcd \
xmcd-330_331.patch:xmcd_331_patch
EXTRACT_ONLY= xmcd-3.3.0.tar.gz
MAINTAINER= eischen@vigrid.com
COMMENT= Motif CD player
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis \
flac:${PORTSDIR}/audio/flac
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
USE_REINPLACE= yes
USE_MOTIF= yes
USE_IMAKE= yes
PLIST_SUB+= RELEASE=${OSREL:R:R} ARCH=${ARCH}
WRKSRC= ${WRKDIR}/xmcd-3.3.0
MAN1= cda.1 xmcd.1
MANCOMPRESSED= no
RMAN= ${X11BASE}/bin/rman
.include <bsd.port.pre.mk>
LIBBINDIR= ${PREFIX}/lib/X11/xmcd/bin-FreeBSD_${OSREL:R:R}-${ARCH}
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
pre-patch:
@${CP} ${WRKSRC}/xmcd_d/XMcd.ad ${WRKSRC}/xmcd_d/XMcd.ad.in
@(cd ${WRKDIR}; ${PATCH} -p0 --quiet < ${DISTDIR}/xmcd-330_331.patch)
@${RM} -f ${WRKSRC}/docs_d/CHANGES.orig
post-patch:
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${WRKSRC}/xmcd_d/XMcd.ad.in \
> ${WRKSRC}/xmcd_d/XMcd.ad
@${FIND} ${WRKSRC} -name Makefile -o -name Imakefile | \
${XARGS} ${REINPLACE_CMD} \
-e 's|_CFLAGS= -pthread|_CFLAGS= ${PTHREAD_CFLAGS}|g; \
s|_LDFLAGS= -pthread|_LDFLAGS= ${PTHREAD_LIBS}|g'
.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)
.endif
post-install:
@${STRIP_CMD} ${LIBBINDIR}/cda
@${STRIP_CMD} ${LIBBINDIR}/gobrowser
@${STRIP_CMD} ${LIBBINDIR}/has_alsa
@${STRIP_CMD} ${LIBBINDIR}/xmcd
@${CAT} ${PKGMESSAGE}
@${CP} ${WRKSRC}/xmcd_d/XMcd.ad ${PREFIX}/lib/X11/app-defaults/XMcd
.if ${XFREE86_VERSION} == 4
(cd ${WRKSRC}; \
for i in xmcd cda; do \
${INSTALL_MAN} $${i}.1.html ${PREFIX}/lib/X11/doc/html; \
done)
.endif
.include <bsd.port.post.mk>
|