mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
c46f0e966e
The staging attempted didn't go quite right as it was hardcoded for FreeBSD 9 AMD. Since I'm fixing this anyway, bring in dports patches to support DragonFly.
77 lines
2.5 KiB
Makefile
77 lines
2.5 KiB
Makefile
# Created by: Gennady Sorokopud <gena@NetVision.net.il>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmcd
|
|
PORTVERSION= 3.3.2
|
|
PORTREVISION= 17
|
|
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+= libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
libFLAC.so:${PORTSDIR}/audio/flac
|
|
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
|
|
|
|
USES= imake motif
|
|
USE_XORG= x11 xext xaw xmu xp xpm xt sm ice
|
|
PLIST_SUB+= RELEASE=${OSREL:R:R} ARCH=${ARCH} OPSYS=${OPSYS}
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
LIBBINDIR= ${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${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@;${STAGDIR}${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-configure:
|
|
@${REINPLACE_CMD} \
|
|
-e 's: BINDIR .*:BINDIR=${STAGEDIR}${PREFIX}/bin:' \
|
|
-e 's: LIBDIR .*:LIBDIR=${STAGEDIR}${PREFIX}/lib/X11:' \
|
|
-e 's: MANDIR .*:MANDIR=${STAGEDIR}${PREFIX}/man/man1:' \
|
|
-e 's: MANSUFFIX .*:MANSUFFIX=1:' \
|
|
-e 's/^Makefile::/^Makefile:/' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} \
|
|
-e 's/^XBINPERM=4711/XBINPERM=711/' \
|
|
-e "s/^(id \| fgrep 'uid=0(root)')/true/" >/dev/null 2>&1 \
|
|
${WRKSRC}/install.sh
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${LIBBINDIR}/cda
|
|
@${STRIP_CMD} ${LIBBINDIR}/gobrowser
|
|
@${STRIP_CMD} ${LIBBINDIR}/has_alsa
|
|
@${STRIP_CMD} ${LIBBINDIR}/xmcd
|
|
@${CP} ${WRKSRC}/xmcd_d/XMcd.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XMcd
|
|
@${RM} ${STAGEDIR}${PREFIX}/bin/xmcd
|
|
@${RM} ${STAGEDIR}${PREFIX}/bin/cda
|
|
@${LN} -sf .xmcd_start ${STAGEDIR}${PREFIX}/bin/xmcd
|
|
@${LN} -sf .xmcd_start ${STAGEDIR}${PREFIX}/bin/cda
|
|
@${REINPLACE_CMD} \
|
|
-e 's:^BINDIR=.*:XMCDLIB=${PREFIX}/bin:' \
|
|
-e 's:^XMCDLIB=.*:XMCDLIB=${PREFIX}/lib/X11/xmcd:' \
|
|
-e 's:^DISCOGDIR=.*:DISCOGDIR=${PREFIX}/lib/X11/xmcd/discog:' \
|
|
-e 's:XMCD_LIBDIR=.*:XMCD_LIBDIR=${PREFIX}/lib/X11/xmcd:' \
|
|
${STAGEDIR}${PREFIX}/lib/X11/xmcd/scripts/genidx \
|
|
${STAGEDIR}${PREFIX}/bin/.xmcd_start
|
|
@${REINPLACE_CMD} \
|
|
-e 's:${STAGEDIR}::' \
|
|
${STAGEDIR}${PREFIX}/lib/X11/xmcd/discog/discog.html \
|
|
${STAGEDIR}${PREFIX}/lib/X11/xmcd/config/config.sh \
|
|
${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${OSREL:R:R}-${ARCH}/README
|
|
@${FIND} ${STAGEDIR} -name \*.bak -delete
|
|
|
|
.include <bsd.port.mk>
|