fc6f899691
worth of changes and an altered API. Bump the revision of all ports that depend on libFLAC and adapt to the new API where necessary. Some patches from Debian, Gentoo, OpenBSD, and upstream repositories. PR: 119476
59 lines
1.5 KiB
Makefile
59 lines
1.5 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= 7
|
|
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.4:${PORTSDIR}/audio/libvorbis \
|
|
FLAC.10:${PORTSDIR}/audio/flac
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
USE_MOTIF= yes
|
|
USE_IMAKE= yes
|
|
MAN1= cda.1 xmcd.1
|
|
MANCOMPRESSED= no
|
|
PLIST_SUB+= RELEASE=${OSREL:R:R} ARCH=${ARCH}
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${OSVERSION} < 600000 && ${ARCH} == "sparc64")
|
|
BROKEN= Does not compile on FreeBSD 5.x sparc64
|
|
.endif
|
|
|
|
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'
|
|
|
|
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
|
|
|
|
.include <bsd.port.post.mk>
|