aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mctoolame-decoder/Makefile
blob: d6dbb3ca8d2b471ff98f64eab03f926544823aa8 (plain) (blame)
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
37
38
# 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}
EXTRACT_SUFX=   .tgz

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

USE_GMAKE=  yes
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 ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}/html
    ${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR}${PKGNAMESUFFIX}/html
.endif

.include <bsd.port.mk>