aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ac3dec/Makefile
blob: 15f6ca38a9a6e7f6633e099b926ba7755fd52a48 (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
39
40
# New ports collection makefile for:    ac3dev
# Date created:             23 Jun 2001
# Whom:                 Marc van Woerkom <3d@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   ac3dec
PORTVERSION=    0.6.1
CATEGORIES= audio
MASTER_SITES=   http://liba52.sourceforge.net/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Software for research in digital audio coding/decoding

ONLY_FOR_ARCHS= i386 alpha

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes

PORTDOCS=   README
PLIST_FILES=    bin/ac3dec bin/extract_ac3

post-patch:
.for file in Makefile.in libac3/Makefile.in tools/Makefile.in
    @${REINPLACE_CMD} -e \
        's|^CFLAGS =.*$$|CFLAGS = @CFLAGS@|g' ${WRKSRC}/${file}
.endfor
.for file in output.c output_linux.c
    @${REINPLACE_CMD} -e \
        's|machine/soundcard.h|sys/soundcard.h|g' ${WRKSRC}/${file}
.endfor

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>