1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/audio/mac/Makefile
John Marino 0aecd7aa5c audio/mac: Don't clobber BUILD_DEPENDS + DF support
The yasm BUILD_DEPENDS will overwrite any previous definition
of BUILD_DEPENDS (e.g. iconv).  Change the operator to += to fix.
While here, yasm is only valid for FreeBSD, so add an OPSYS condition
in addition to the ARCH condition.

Approved by:	just-fix-it
2016-04-06 15:29:26 +00:00

46 lines
1.3 KiB
Makefile

# Created by: Martin Dieringer <Martin.Dieringer@t-online.de>
# $FreeBSD$
PORTNAME= mac
PORTVERSION= 3.99.4.5.7
CATEGORIES= audio
MASTER_SITES= http://etree.org/shnutils/shntool/support/formats/ape/unix/3.99-u4-b5-s7/ \
http://freebsd.nsu.ru/distfiles/
DISTNAME= ${PORTNAME}-3.99-u4-b5-s7
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Monkey's Audio lossless codec
USES= iconv:build libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -DSHNTOOL
PORTDOCS= Credits.txt History.txt
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
BUILD_DEPENDS+= yasm:devel/yasm
.endif
.endif
post-install:
cd ${WRKSRC}/src/MACLib && ${INSTALL_DATA} BitArray.h \
Prepare.h UnBitArrayBase.h ${STAGEDIR}${PREFIX}/include/mac
@${MKDIR} ${STAGEDIR}${DOCSDIR}
# Install couple of useful docfiles, but first beautify them a bit; cryptic
# sed(1) construct is to append missing newline at EOF, in a way compatible
# with both GNU and BSD sed(1) implementations.
${ICONV_CMD} -f latin1 -t utf-8 ${WRKSRC}/src/Credits.txt | \
${SED} -ne '$$G;P' > ${STAGEDIR}${DOCSDIR}/Credits.txt
${SED} -ne '$$G;P' ${WRKSRC}/src/History.txt > \
${STAGEDIR}${DOCSDIR}/History.txt
.include <bsd.port.post.mk>