- 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)
This commit is contained in:
Alexey Dokuchaev 2012-01-31 06:51:27 +00:00
parent 22b6f39067
commit 38975d0001
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290157

View file

@ -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}