mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
a84c115a09
Approved by: portmgr (not really, but touches unstaged ports)
38 lines
990 B
Makefile
38 lines
990 B
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mctoolame
|
|
PORTVERSION= 0.1.a
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}d/${PORTNAME}d-01a
|
|
PKGNAMESUFFIX= -decoder
|
|
DISTNAME= ${PORTNAME}d-${PORTVERSION:C/\.//g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= MPEG Layer II audio decoder with multi-channel support
|
|
|
|
USES= gmake tar:tgz
|
|
ALL_TARGET= #
|
|
MAKE_ARGS= CC="${CC}" OPTIM="${CFLAGS}"
|
|
PLIST_SUB= PKGNAMESUFFIX="${PKGNAMESUFFIX}"
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|$$(ARCH)||' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -E \
|
|
's|gets *\(([^,)]+)\)|fgets(\1, sizeof(\1), stdin)|' \
|
|
${WRKSRC}/musicout.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mctoolamed ${STAGEDIR}${PREFIX}/bin
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|