summaryrefslogtreecommitdiff
path: root/audio/faad
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-01-18 19:21:13 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-01-18 19:21:13 +0000
commit06f6765b64917fcbf4aa55be18a64c2c7c3782b8 (patch)
tree51d87448e8c02cb4fefef5ce64cfcae415079126 /audio/faad
parentFix a possible security issue with ezmlm-cgi mentioned in ports/47091. (diff)
New port faad version 1.1: A LC, MAIN and LTP profile, MPEG2 and
MPEG-4 AAC decoder PR: 46884 Submitted by: Sean McGovern <sean@sfarc.net>
Notes
Notes: svn path=/head/; revision=73421
Diffstat (limited to 'audio/faad')
-rw-r--r--audio/faad/Makefile53
-rw-r--r--audio/faad/distinfo1
-rw-r--r--audio/faad/files/patch-common-mp4v2-configure.in16
-rw-r--r--audio/faad/files/patch-configure.in26
-rw-r--r--audio/faad/files/patch-frontend-Makefile.am8
-rw-r--r--audio/faad/files/patch-frontend-audio.c11
-rw-r--r--audio/faad/pkg-comment1
-rw-r--r--audio/faad/pkg-descr9
-rw-r--r--audio/faad/pkg-plist8
9 files changed, 133 insertions, 0 deletions
diff --git a/audio/faad/Makefile b/audio/faad/Makefile
new file mode 100644
index 000000000000..b3f33b37bbcc
--- /dev/null
+++ b/audio/faad/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: faad
+# Date created: 8 January 2003
+# Whom: Sean McGovern <sean@sfarc.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= faad2
+PORTVERSION= 1.1
+CATEGORIES= audio
+MASTER_SITES= http://faac.sourceforge.net/files/
+
+MAINTAINER= sean@sfarc.net
+
+LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile \
+ gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_AUTOMAKE_VER= 15
+AUTOMAKE_ARGS= --add-missing
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_REINPLACE= yes
+
+CONFIGURE_ARGS= --program-transform-name=''
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
+
+INSTALLS_SHLIB= yes
+
+post-patch:
+# make sure everything is prepared prior to configure stage
+# pre-configure will not work since *AUTO* tools happen in-between
+ @cd ${WRKSRC}; ${ACLOCAL} -I ${ACLOCAL_DIR} -I .; libtoolize \
+ --automake
+# CFLAGS safeness
+ @${FIND} ${WRKSRC} -type f -name Makefile.am | \
+ ${XARGS} -n 5 -x \
+ ${REINPLACE_CMD} -e \
+ 's|-O2|${CFLAGS}|'
+
+post-configure:
+# sync the multiple libtool copies
+ @${CP} ${WRKSRC}/${LIBTOOL} ${WRKSRC}/common/mp4v2/
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ARGS+= --build=${CONFIGURE_TARGET}
+
+.include <bsd.port.post.mk>
diff --git a/audio/faad/distinfo b/audio/faad/distinfo
new file mode 100644
index 000000000000..fb5e2fafd81d
--- /dev/null
+++ b/audio/faad/distinfo
@@ -0,0 +1 @@
+MD5 (faad2-1.1.tar.gz) = 5a20a6268484dea0e080df47f64b9075
diff --git a/audio/faad/files/patch-common-mp4v2-configure.in b/audio/faad/files/patch-common-mp4v2-configure.in
new file mode 100644
index 000000000000..c0c163e070d5
--- /dev/null
+++ b/audio/faad/files/patch-common-mp4v2-configure.in
@@ -0,0 +1,16 @@
+--- common/mp4v2/configure.in.orig Wed Jan 8 19:45:23 2003
++++ common/mp4v2/configure.in Wed Jan 8 19:45:57 2003
+@@ -1,11 +1,12 @@
+ AC_INIT()
++AC_CANONICAL_TARGET
+ AM_INIT_AUTOMAKE(mpeg4ip,0.9.2.8,dummy)
+
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+
+-AM_PROG_LIBTOOL
++AC_PROG_LIBTOOL
+
+ AM_CONFIG_HEADER(config.h)
+
diff --git a/audio/faad/files/patch-configure.in b/audio/faad/files/patch-configure.in
new file mode 100644
index 000000000000..c490f5f6ec97
--- /dev/null
+++ b/audio/faad/files/patch-configure.in
@@ -0,0 +1,26 @@
+--- configure.in.orig Fri Aug 9 03:23:28 2002
++++ configure.in Wed Jan 8 19:20:59 2003
+@@ -1,8 +1,9 @@
+-AC_INIT()
++AC_INIT
++AC_CANONICAL_TARGET
+ AM_INIT_AUTOMAKE(faad,2.0)
+
+ AC_PROG_CC
+-AM_PROG_LIBTOOL
++AC_PROG_LIBTOOL
+ AC_SUBST(LIBTOOL_DEPS)
+
+ dnl Checks for programs.
+@@ -29,8 +30,9 @@
+ ])
+ fi
+
+-AC_OUTPUT_COMMANDS(,[cd common/mp4v2; aclocal -I .; autoheader; libtoolize --automake; automake --add-missing; autoconf; cd -])
++AC_CONFIG_COMMANDS([default-1],[[]],[[cd common/mp4v2; aclocal -I . -I /usr/local/share/aclocal; autoheader; libtoolize --automake; automake --add-missing; autoconf; cd -]])
+
+ AC_CONFIG_SUBDIRS(common/mp4v2)
+
+-AC_OUTPUT(libfaad/Makefile common/Makefile frontend/Makefile Makefile)
++AC_CONFIG_FILES([libfaad/Makefile common/Makefile frontend/Makefile Makefile])
++AC_OUTPUT
diff --git a/audio/faad/files/patch-frontend-Makefile.am b/audio/faad/files/patch-frontend-Makefile.am
new file mode 100644
index 000000000000..8d030ac757ca
--- /dev/null
+++ b/audio/faad/files/patch-frontend-Makefile.am
@@ -0,0 +1,8 @@
+--- frontend/Makefile.am.orig Thu Jul 25 10:22:25 2002
++++ frontend/Makefile.am Wed Jan 8 21:30:40 2003
+@@ -6,4 +6,4 @@
+ CFLAGS = -O2 -D_FILE_OFFSET_BITS=64
+ INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4v2
+ LDFLAGS =
+-LDADD = $(top_builddir)/libfaad/libfaad.la $(top_builddir)/common/mp4v2/libmp4v2.la -lm -lsndfile
++LDADD = $(top_builddir)/libfaad/libfaad.la $(top_builddir)/common/mp4v2/libmp4v2.la -lm -lsndfile -lgnugetopt
diff --git a/audio/faad/files/patch-frontend-audio.c b/audio/faad/files/patch-frontend-audio.c
new file mode 100644
index 000000000000..4c9fedcec4f6
--- /dev/null
+++ b/audio/faad/files/patch-frontend-audio.c
@@ -0,0 +1,11 @@
+--- frontend/audio.c.orig Thu Jul 25 08:42:54 2002
++++ frontend/audio.c Wed Jan 8 20:52:34 2003
+@@ -52,7 +52,7 @@
+ break;
+ }
+ aufile->sfinfo.channels = channels;
+- aufile->sfinfo.samples = 0;
++ aufile->sfinfo.frames = 0;
+ #ifdef _WIN32
+ if(infile[0] == '-')
+ {
diff --git a/audio/faad/pkg-comment b/audio/faad/pkg-comment
new file mode 100644
index 000000000000..a21776ede250
--- /dev/null
+++ b/audio/faad/pkg-comment
@@ -0,0 +1 @@
+A LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder
diff --git a/audio/faad/pkg-descr b/audio/faad/pkg-descr
new file mode 100644
index 000000000000..62c3b6b15361
--- /dev/null
+++ b/audio/faad/pkg-descr
@@ -0,0 +1,9 @@
+This is FAAD 2 - Freeware Advanced Audio Decoder 2.
+
+FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
+completely written from scratch.
+
+WWW: http://faac.sourceforge.net/
+
+- Sean McGovern
+sean@sfarc.net
diff --git a/audio/faad/pkg-plist b/audio/faad/pkg-plist
new file mode 100644
index 000000000000..9996d60f3f05
--- /dev/null
+++ b/audio/faad/pkg-plist
@@ -0,0 +1,8 @@
+bin/faad
+include/faad.h
+lib/libfaad.a
+lib/libfaad.so
+lib/libfaad.so.0
+lib/libmp4v2.a
+lib/libmp4v2.so
+lib/libmp4v2.so.0