summaryrefslogtreecommitdiffstats
path: root/audio/faac
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2004-11-28 15:11:55 +0000
committerahze <ahze@FreeBSD.org>2004-11-28 15:11:55 +0000
commit7fe063864b7830cc0bdee070fd76d4be10220ce9 (patch)
tree58ec3f7d2999c471f09a2460e1dcccea73c7db63 /audio/faac
parent710568fe9866781c99fc5b8fb5df0f9391633210 (diff)
downloadFreeBSD-ports-7fe063864b7830cc0bdee070fd76d4be10220ce9.zip
FreeBSD-ports-7fe063864b7830cc0bdee070fd76d4be10220ce9.tar.gz
- Add option for mpeg4 audio coding via mpeg4ip-libmp4v2 (WITH_MPEG4IP)
- Bump PORTREVISION
Diffstat (limited to 'audio/faac')
-rw-r--r--audio/faac/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/audio/faac/Makefile b/audio/faac/Makefile
index 61a72b1..8726a26 100644
--- a/audio/faac/Makefile
+++ b/audio/faac/Makefile
@@ -7,7 +7,7 @@
PORTNAME= faac
PORTVERSION= 1.24
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= faac
@@ -31,6 +31,18 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
INSTALLS_SHLIB= yes
+OPTIONS= MPEG4IP "Enable mpeg4 audio encoding" On
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libmp4v2.a)
+WITH_MPEG4IP=yes
+.endif
+
+.if defined(WITH_MPEG4IP)
+LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
+.endif
+
pre-patch: build-depends
post-patch:
@@ -40,4 +52,4 @@ post-patch:
${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
${WRKSRC}/aclocal.m4
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud