summaryrefslogtreecommitdiff
path: root/audio/libaacplus/Makefile
blob: 9bfcffaab2a93d4953a09522ef0191e2f2e62b94 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:	libaacplus
# Date created:		2010-05-18
# Whom:			takefu
#
# $FreeBSD$
#

PORTNAME=	libaacplus
PORTVERSION=	2.0.2
CATEGORIES=	audio
MASTER_SITES=	http://tipok.org.ua/downloads/media/aac+/libaacplus/:site1\
		http://217.20.164.161/~tipok/aacplus/:site1\
		http://media.wnet.ua/~tipok/aacplus/:site1\
		http://www.3gpp.org/ftp/Specs/archive/26_series/26.410/:site2
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:site1\
		26410-800.zip:site2

MAINTAINER=	takefu@airport.fm
COMMENT=	HE-AAC+ Codec as Shared Library

EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip

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

CONFLICTS=	aacplusenc-0*

USE_GNOME=	pkgconfig
USE_LDCONFIG=	yes
USE_AUTOTOOLS=	libtool libtoolize aclocal autoheader automake
GNU_CONFIGURE=	yes

AUTOMAKE_ARGS=	--add-missing
ACLOCAL_ARGS=	--acdir=${ACLOCAL_DIR} \
		-I ${LOCALBASE}/share/aclocal -I ${WRKSRC}/m4
LIBTOOLIZE_ARGS=--automake
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"\
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"

MAN1=		aacplusenc.1

OPTIONS=	FFTW3	"USE_FFTW3"		on

.include <bsd.port.options.mk>

.if !defined(WITHOUT_FFTW3)
LIB_DEPENDS+=	fftw3:${PORTSDIR}/math/fftw3\
		fftw3f:${PORTSDIR}/math/fftw3-float
CONFIGURE_ARGS+=--with-fftw3=yes \
		--with-fftw3-prefix=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-fftw3=no
.endif

pre-configure:
	@${CP} ${DISTDIR}/26410-800.zip ${WRKSRC}/src

post-patch:
.if defined(WITH_OLDLIBS)
	@${REINPLACE_CMD} -e 's,-I${includedir},-I@includedir@\ -I${includedir},'\
	-e 's,@includedir@\/aacplus,@includedir@\/libaacplus,' ${WRKSRC}/aacplus.pc.in
.else
	@${REINPLACE_CMD} -e 's,\/aacplus,,' ${WRKSRC}/aacplus.pc.in
.endif

.include <bsd.port.mk>