From 80b45b48853c10573166c3c9fa1cbe6f942df4f7 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Thu, 10 Apr 2014 19:04:09 +0000 Subject: Resurrect audio/xmms-faad, an MP4/AAC input plugin for XMMS. --- audio/xmms-faad/Makefile | 14 ++++++++++++ audio/xmms-faad/Makefile.inc | 40 +++++++++++++++++++++++++++++++++ audio/xmms-faad/distinfo | 2 ++ audio/xmms-faad/files/patch-mp4_utils.c | 26 +++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 audio/xmms-faad/Makefile create mode 100644 audio/xmms-faad/Makefile.inc create mode 100644 audio/xmms-faad/distinfo create mode 100644 audio/xmms-faad/files/patch-mp4_utils.c (limited to 'audio/xmms-faad') diff --git a/audio/xmms-faad/Makefile b/audio/xmms-faad/Makefile new file mode 100644 index 000000000000..078871f4999e --- /dev/null +++ b/audio/xmms-faad/Makefile @@ -0,0 +1,14 @@ +# Created by: David Yeske +# $FreeBSD$ + +PKGNAMEPREFIX= xmms- + +MAINTAINER= ports@FreeBSD.org +COMMENT= XMMS plugin for faad + +DEPRECATED= Abandonware, please consider using multimedia/audacious instead +EXPIRATION_DATE= 2014-03-23 + +MASTERDIR= ${.CURDIR} + +.include "${MASTERDIR}/Makefile.inc" diff --git a/audio/xmms-faad/Makefile.inc b/audio/xmms-faad/Makefile.inc new file mode 100644 index 000000000000..1d35635c708f --- /dev/null +++ b/audio/xmms-faad/Makefile.inc @@ -0,0 +1,40 @@ +# $FreeBSD$ + +PORTNAME= faad2 +PORTVERSION= 2.7 +PORTREVISION= 2 +CATEGORIES= audio +MASTER_SITES= SFE/faac + +BUILD_DEPENDS= faad2>=2.7:${PORTSDIR}/audio/faad +RUN_DEPENDS= faad2>=2.7:${PORTSDIR}/audio/faad + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/plugins/xmms/src + +USES+= pkgconfig +USE_BZIP2= yes +WANT_GNOME= yes + +DESCR= ${PORTSDIR}/audio/faad/pkg-descr +PLIST_FILES= ${PLUGINS_DIR:S,^${PREFIX}/,,}/libmp4.so + +.if ${PKGNAMEPREFIX} == "xmms-" +LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms +USE_GNOME+= gtk12 +PLUGINS_DIR= ${PREFIX}/lib/xmms/Input +EXTRA_CFLAGS= `xmms-config --cflags` +EXTRA_LDFLAGS+= `xmms-config --libs` +.endif + +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -shared \ + -I${LOCALBASE}/include -DHAVE_STDINT_H \ + ${EXTRA_CFLAGS} *.c -o libmp4.so \ + -L${LOCALBASE}/lib -lfaad -lmp4ff \ + ${EXTRA_LDFLAGS} + +do-install: + @${MKDIR} ${STAGEDIR}${PLUGINS_DIR} + cd ${WRKSRC}; ${INSTALL_LIB} libmp4.so ${STAGEDIR}${PLUGINS_DIR} + +.include diff --git a/audio/xmms-faad/distinfo b/audio/xmms-faad/distinfo new file mode 100644 index 000000000000..a34f468e06a6 --- /dev/null +++ b/audio/xmms-faad/distinfo @@ -0,0 +1,2 @@ +SHA256 (faad2-2.7.tar.bz2) = 14561b5d6bc457e825bfd3921ae50a6648f377a9396eaf16d4b057b39a3f63b5 +SIZE (faad2-2.7.tar.bz2) = 901043 diff --git a/audio/xmms-faad/files/patch-mp4_utils.c b/audio/xmms-faad/files/patch-mp4_utils.c new file mode 100644 index 000000000000..dafebba69824 --- /dev/null +++ b/audio/xmms-faad/files/patch-mp4_utils.c @@ -0,0 +1,26 @@ +--- mp4_utils.c.orig 2004-10-18 05:44:51.000000000 +0900 ++++ mp4_utils.c 2009-02-12 02:53:15.000000000 +0900 +@@ -3,15 +3,22 @@ + */ + + #include "mp4ff.h" +-#include "faad.h" ++#include "neaacdec.h" + + #include + #include + #include + #include ++ ++#if defined(HAVE_BMP) ++#include ++#include ++#include ++#else + #include + #include + #include ++#endif /*HAVE_BMP*/ + + const char *mp4AudioNames[]= + { -- cgit v1.2.3