aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-faad
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2014-04-10 19:04:09 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2014-04-10 19:04:09 +0000
commit80b45b48853c10573166c3c9fa1cbe6f942df4f7 (patch)
treede913a37a2b1809a9593e9d1730012a82728f59e /audio/xmms-faad
parentc7edf3c4ea3f0c266f78206f9d3f8708e6763377 (diff)
downloadports-80b45b48853c10573166c3c9fa1cbe6f942df4f7.tar.gz
ports-80b45b48853c10573166c3c9fa1cbe6f942df4f7.zip
Resurrect audio/xmms-faad, an MP4/AAC input plugin for XMMS.
Notes
Notes: svn path=/head/; revision=350828
Diffstat (limited to 'audio/xmms-faad')
-rw-r--r--audio/xmms-faad/Makefile14
-rw-r--r--audio/xmms-faad/Makefile.inc40
-rw-r--r--audio/xmms-faad/distinfo2
-rw-r--r--audio/xmms-faad/files/patch-mp4_utils.c26
4 files changed, 82 insertions, 0 deletions
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 <dyeske@gmail.com>
+# $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 <bsd.port.mk>
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 <gtk/gtk.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++
++#if defined(HAVE_BMP)
++#include <bmp/plugin.h>
++#include <bmp/titlestring.h>
++#include <bmp/util.h>
++#else
+ #include <xmms/plugin.h>
+ #include <xmms/titlestring.h>
+ #include <xmms/util.h>
++#endif /*HAVE_BMP*/
+
+ const char *mp4AudioNames[]=
+ {