diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-11-11 01:04:51 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2004-11-11 01:04:51 +0000 |
commit | 259f7b577dde3fc3d6102dfe2319b0a297d98dfa (patch) | |
tree | d8e2cab8235b2d3dca011fd1ab76def56a7c0967 /audio | |
parent | - Update to 1.4.0.3 and close vulnerability (diff) |
New port mpeg4ip-faad version 1.1: faad plugin for mpeg4ip
PR: 72207
Submitted by: ahze
Notes
Notes:
svn path=/head/; revision=121343
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/mpeg4ip-faad/Makefile | 71 | ||||
-rw-r--r-- | audio/mpeg4ip-faad/distinfo | 2 | ||||
-rw-r--r-- | audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_Makefile.am | 13 | ||||
-rw-r--r-- | audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_faad2.cpp | 11 | ||||
-rw-r--r-- | audio/mpeg4ip-faad/pkg-descr | 3 |
6 files changed, 101 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index d5699fc520e0..47a58553ac09 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -236,6 +236,7 @@ SUBDIR += mp3stat SUBDIR += mp3wrap SUBDIR += mpc + SUBDIR += mpeg4ip-faad SUBDIR += mpegaudio SUBDIR += mpeglib_artsplug SUBDIR += mpg123 diff --git a/audio/mpeg4ip-faad/Makefile b/audio/mpeg4ip-faad/Makefile new file mode 100644 index 000000000000..6fa3d6375533 --- /dev/null +++ b/audio/mpeg4ip-faad/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: mpeg4ip-faad2 +# Date created: 28 Sep 2004 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= faad2 +PORTVERSION= 2.0 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= faac +PKGNAMEPREFIX= mpeg4ip- + +MAINTAINER= ahze@FreeBSD.org +COMMENT= faad plugin for mpeg4ip + +LIB_DEPENDS= faad.0:${PORTSDIR}/audio/faad \ + mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_AUTOMAKE_VER= 15 +USE_AUTOHEADER_VER= 253 +AUTOMAKE_ARGS= --add-missing +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +USE_GETOPT_LONG=yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_INC_LIBTOOL_VER=13 +USE_REINPLACE= yes +USE_SDL= yes + +CONFIGURE_ARGS= --with-drm +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +INSTALLS_SHLIB= yes + +INSTALL_WRKSRC= ${WRKSRC}/plugins + +PLIST_FILES= lib/mp4player_plugin/faad2_plugin.a \ + lib/mp4player_plugin/faad2_plugin.so \ + lib/mp4player_plugin/faad2_plugin.so.0 + +.include <bsd.port.pre.mk> + +pre-patch: build-depends + +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 .; \ + ${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake + @${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \ + ${WRKSRC}/aclocal.m4 + @${REINPLACE_CMD} -e 's|<SDL/|<SDL11/|' \ + ${WRKSRC}/plugins/mpeg4ip/faad2.cpp + @${ECHO_CMD} "SUBDIRS = plugins" > \ + ${WRKSRC}/Makefile.am +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's|stdint.h|sys/inttypes.h|' \ + ${WRKSRC}/common/mp4ff/mp4ff_int_types.h +.endif +# CFLAGS safeness + @${FIND} ${WRKSRC} -type f -name Makefile.am | \ + ${XARGS} -n 5 -x \ + ${REINPLACE_CMD} -e \ + 's|-O2|${CFLAGS}|' + +.include <bsd.port.post.mk> diff --git a/audio/mpeg4ip-faad/distinfo b/audio/mpeg4ip-faad/distinfo new file mode 100644 index 000000000000..a9c4a8a47246 --- /dev/null +++ b/audio/mpeg4ip-faad/distinfo @@ -0,0 +1,2 @@ +MD5 (faad2-2.0.tar.gz) = 1a6f79365f2934a4888b210ef47a3a07 +SIZE (faad2-2.0.tar.gz) = 766660 diff --git a/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_Makefile.am b/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_Makefile.am new file mode 100644 index 000000000000..5699c6587bef --- /dev/null +++ b/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_Makefile.am @@ -0,0 +1,13 @@ +--- plugins/mpeg4ip/Makefile.am.orig Wed Sep 29 13:30:33 2004 ++++ plugins/mpeg4ip/Makefile.am Wed Sep 29 13:31:08 2004 +@@ -8,9 +8,7 @@ + aa_file.cpp \ + aa_file.h + +-faad2_plugin_la_LIBADD = \ +- $(top_builddir)/libfaad/libfaad.la \ +- -lm ++LIBS= -lm -lfaad + + + INCLUDES = -I$(top_srcdir)/include diff --git a/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_faad2.cpp b/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_faad2.cpp new file mode 100644 index 000000000000..12c322ab4203 --- /dev/null +++ b/audio/mpeg4ip-faad/files/patch-plugins_mpeg4ip_faad2.cpp @@ -0,0 +1,11 @@ +--- plugins/mpeg4ip/faad2.cpp.orig Wed Sep 29 03:20:19 2004 ++++ plugins/mpeg4ip/faad2.cpp Wed Sep 29 03:31:53 2004 +@@ -237,7 +237,7 @@ + aac->m_vft->audio_configure(aac->m_ifptr, + aac->m_freq, + aac->m_chans, +- AUDIO_S16SYS, ++ (audio_format_t)AUDIO_S16SYS, + aac->m_output_frame_size); + uint8_t *now = aac->m_vft->audio_get_buffer(aac->m_ifptr); + aac->m_audio_inited = 1; diff --git a/audio/mpeg4ip-faad/pkg-descr b/audio/mpeg4ip-faad/pkg-descr new file mode 100644 index 000000000000..b819547aa547 --- /dev/null +++ b/audio/mpeg4ip-faad/pkg-descr @@ -0,0 +1,3 @@ +Faad plugin for mpeg4ip + +WWW: http://audiocoding.com |