aboutsummaryrefslogtreecommitdiffstats
path: root/audio/tta
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-01-31 14:51:27 +0800
committerdanfe <danfe@FreeBSD.org>2012-01-31 14:51:27 +0800
commitb7eb8799310b02d01c542d8d4aad2c3e4c35f394 (patch)
treebad4fb567b46c7b4186632ef6f88cb9af2b02a6a /audio/tta
parentf913bc204c054f79148b5f0c8da36238ec9fc7b3 (diff)
downloadfreebsd-ports-gnome-b7eb8799310b02d01c542d8d4aad2c3e4c35f394.tar.gz
freebsd-ports-gnome-b7eb8799310b02d01c542d8d4aad2c3e4c35f394.tar.zst
freebsd-ports-gnome-b7eb8799310b02d01c542d8d4aad2c3e4c35f394.zip
- Remove hand-rolled do-build and do-install targets, instead USE_GMAKE and
pass necessary variables as MAKE_ARGS - Define LICENSE knob (GPLv2) and hand over to multimedia@ - Cleanup Makefile a bit while I am at it (sort knobs, remove superfluous variable PROGRAM)
Diffstat (limited to 'audio/tta')
-rw-r--r--audio/tta/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/audio/tta/Makefile b/audio/tta/Makefile
index 9c11196348b4..fa502bd386b5 100644
--- a/audio/tta/Makefile
+++ b/audio/tta/Makefile
@@ -12,25 +12,25 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}enc-src
DISTNAME= ${PORTNAME}enc-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
-MAINTAINER= danfe@FreeBSD.org
+MAINTAINER= multimedia@FreeBSD.org
COMMENT= The True Audio Encoder, lossless (de)compressor
-PROGRAM= ttaenc
+LICENSE= GPLv2
+
+USE_GMAKE= yes
+ALL_TARGET= ttaenc
+MAKE_ARGS= CFLAGS="${CFLAGS}" INSDIR="${PREFIX}/bin"
-PORTDOCS= README
PLIST_FILES= bin/ttaenc
+PORTDOCS= README
post-patch:
@${REINPLACE_CMD} -e '/ifdef _BIG_ENDIAN/s|ifdef|if _BYTE_ORDER ==|' \
- ${WRKSRC}/${PROGRAM}.h
-
-do-build:
- ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PROGRAM} \
- ${WRKSRC}/${PROGRAM}.c
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} ${PREFIX}/bin
+ ${WRKSRC}/ttaenc.h
+ @${REINPLACE_CMD} -e 's|gcc|${CC}| ; /strip/d ; \
+ s|install -m 755|${INSTALL_PROGRAM}|' ${WRKSRC}/Makefile
+post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}