mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
f5ebd23a61
Remove the libXp dependency from a number of ports using imake and/or motif. libXp is being deprecated. The list of ports: audio/xmcd audio/xmmix deskutils/xmdiary ftp/llnlxdir ftp/llnlxftp graphics/SciPlot misc/xtar multimedia/mpeg2play
76 lines
2.7 KiB
Makefile
76 lines
2.7 KiB
Makefile
# Created by: Gennady Sorokopud <gena@NetVision.net.il>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmcd
|
|
PORTVERSION= 3.3.2
|
|
PORTREVISION= 20
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://freebsd.nsu.ru/distfiles/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Motif CD player
|
|
|
|
LIB_DEPENDS+= libvorbis.so:audio/libvorbis \
|
|
libFLAC.so:audio/flac
|
|
RUN_DEPENDS+= lame:audio/lame
|
|
|
|
USES= imake motif ncurses xorg
|
|
USE_XORG= x11 xext xaw xmu xpm xt sm ice
|
|
PLIST_SUB+= RELEASE=${OSREL:R:R} ARCH=${ARCH:S/powerpc64/powerpc/} OPSYS=${OPSYS}
|
|
SUB_FILES= pkg-message
|
|
|
|
CFLAGS+= -D_WANT_SEMUN
|
|
|
|
LIBBINDIR= ${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${OSREL:R:R}-${ARCH:S/powerpc64/powerpc/}
|
|
|
|
BROKEN_aarch64= Fails to compile: many undefined symbols in xorg.cf
|
|
BROKEN_armv6= Fails to install: strip: xmcd/bin-FreeBSD_12-armv6/cda failed: No such file or directory
|
|
BROKEN_armv7= Fails to install: strip: xmcd/bin-FreeBSD_12-armv7/cda failed: No such file or directory
|
|
BROKEN_mips64= Fails to compile: many undefined symbols in xorg.cf
|
|
|
|
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
|
|
|
|
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 ${LIBBINDIR}/gobrowser \
|
|
${LIBBINDIR}/has_alsa ${LIBBINDIR}/xmcd
|
|
${INSTALL_DATA} ${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:S/powerpc64/powerpc/}/README
|
|
${FIND} ${STAGEDIR}${PREFIX} -name \*.bak -delete
|
|
${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete
|
|
|
|
.include <bsd.port.mk>
|