mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
4eb209da7d
and make XFREE86_VERSION map to it. XFREE86_VERSION is now deprecated. - Make xorg the default X_WINDOW_SYSTEM on -current. - Add several new X_*_PORT variables which point to various pieces of X11 based on the setting of X_WINDOW_SYSTEM, and make ports use them. - Add information to CHANGES about how to handle the transition. PR: ports/68763 Approved by: portmgr (marcus) Approved by: re (scottl)
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
# New ports collection makefile for: xmcd
|
|
# Date created: 16 February 1995
|
|
# Whom: Gennady Sorokopud <gena@NetVision.net.il>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmcd
|
|
PORTVERSION= 3.3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://www.ibiblio.org/tkan/download/xmcd/3.3.2/src/
|
|
|
|
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}
|
|
|
|
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
|
|
|
|
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 ${X_WINDOW_SYSTEM:L} != xfree86-3
|
|
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 ${X_WINDOW_SYSTEM:L} != xfree86-3
|
|
(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>
|