summaryrefslogtreecommitdiff
path: root/audio/mctoolame-encoder/Makefile
blob: 2d7d650e84eae8d507976fff047e2a1450cae479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>

PORTNAME=	mctoolame
PORTVERSION=	0.1.a
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-01a
PKGNAMESUFFIX=	-encoder
DISTNAME=	${PORTNAME}-${PORTVERSION:C/\.//g}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	MPEG Layer II audio encoder with multi-channel support

DEPRECATED=	Legacy and obscure audio format that never gained any traction
EXPIRATION_DATE=2022-09-30

USES=		gmake tar:tgz
ALL_TARGET=	#
MAKE_ARGS=	CC="${CC}" OPTIM="${CFLAGS}"
PLIST_SUB=	PKGNAMESUFFIX="${PKGNAMESUFFIX}"

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|$$(ARCH)||' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -E \
		's|gets *\(([^,)]+)\)|fgets(\1, sizeof(\1), stdin)|' \
			${WRKSRC}/config.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/mctoolame ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
	${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html

.include <bsd.port.mk>