aboutsummaryrefslogtreecommitdiffstats
path: root/audio/aacplusenc/Makefile
blob: aaa99a391af9a0721302716fa25d808302c7e278 (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
# New ports collection makefile for:    aacplusenc
# Date created:             28 July 2007
# Whom:                 Pav Lucistnik <pav@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   aacplusenc
PORTVERSION=    0.12
CATEGORIES= audio
MASTER_SITES=   http://teknoraver.campuslife.it/software/mp4tools/

MAINTAINER= pav@FreeBSD.org
COMMENT=    aacPlus v2 command-line encoder

USE_BZIP2=  yes
USE_GMAKE=  yes

RESTRICTED= unclear legal status, probably need licenses from 3GPP, Via Licensing and Coding Technologies

# produces broken encodes in 64-bit mode
ONLY_FOR_ARCHS= i386

PLIST_FILES=    bin/aacplusenc

.if defined(WITHOUT_FFTW3)
MAKE_ARGS+= NOFFTW3=1
.else
LIB_DEPENDS+=   fftw3f.4:${PORTSDIR}/math/fftw3-float \
        fftw3.4:${PORTSDIR}/math/fftw3
CFLAGS+=    -I${LOCALBASE}/include
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-O3 -ftree-vectorize|${CFLAGS}| ; s|-lfftw3f|-L${LOCALBASE}/lib -lfftw3f|' ${WRKSRC}/Makefile

.include <bsd.port.mk>