1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/audio/mac/Makefile
Alexey Dokuchaev 49c25e5210 - Update to the most recent version maintained by Jason Jordan as part of
his 3.99-u4-b5-sX series.  Unfortunately we cannot assign it directly to
  DISTVERSION without having to bump PORTEPOCH, so stick to 3.99.4.5.7 for
  the time being (note that upstream Monkey's Audio SDK is at version 4.16
  right now; but seems that no one ported it to Linux/Unix -- folks prefer
  to maintain old 3.xx port instead; mention this in the port description)
- Build in "shntool-enabled" mode by default (-DSHNTOOL); this is also in
  line with how most GNU/Linux distributions package it
- Install couple of useful documentation files, but first beautify them a
  bit: convert to UTF-8 and append missing newline at EOF; sed(1) command
  might look unnatural, but it is compatible with both GNU and BSD sed(1)
  implementations (cf.: '-nep' is GNU-only, and '$G' is new BSD-only); we
  prefer ${SED} over ${ECHO_CMD} >> because it is shorter and allows for
  linear piping (no subshell and stream joining required)
- Convert in-place configure script editing to a patch as we also have to
  teach it that elftoolchain's strip(1) can strip libraries; staying with
  REINPLACE_CMD would make it harder to read compared to normal patchfile
- Remove duplicate GNU_CONFIGURE line, bogusly added by bapt@ in r353071
2015-04-08 08:29:08 +00:00

44 lines
1.2 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 ${ARCH} == "i386" || ${ARCH} == "amd64"
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
.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>