summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorkefren <kefren>2009-11-24 16:04:50 +0000
committerkefren <kefren>2009-11-24 16:04:50 +0000
commit6c6c57cd0461a0e76228c8330fd7758aa84e69a6 (patch)
tree503f34e51487f86ce58f66d99fdc89fb85fdd839 /audio
parentba71473708f2b32806f0f7d17bc711a5373ce02d (diff)
downloadpkgsrc-6c6c57cd0461a0e76228c8330fd7758aa84e69a6.tar.gz
Initial import of bmp-flac 1.1.3, flac plugin for beep-media-player.
Derived from audio/xmms-flac
Diffstat (limited to 'audio')
-rw-r--r--audio/bmp-flac/DESCR1
-rw-r--r--audio/bmp-flac/Makefile47
-rw-r--r--audio/bmp-flac/PLIST2
-rw-r--r--audio/bmp-flac/distinfo8
-rw-r--r--audio/bmp-flac/patches/patch-aa248
-rw-r--r--audio/bmp-flac/patches/patch-ab12
-rw-r--r--audio/bmp-flac/patches/patch-ac12
7 files changed, 330 insertions, 0 deletions
diff --git a/audio/bmp-flac/DESCR b/audio/bmp-flac/DESCR
new file mode 100644
index 00000000000..725eaf793c7
--- /dev/null
+++ b/audio/bmp-flac/DESCR
@@ -0,0 +1 @@
+BMP plugin for FLAC compressed audio.
diff --git a/audio/bmp-flac/Makefile b/audio/bmp-flac/Makefile
new file mode 100644
index 00000000000..a40805e3bb9
--- /dev/null
+++ b/audio/bmp-flac/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+#
+
+DISTNAME= flac-1.1.3
+PKGNAME= bmp-${DISTNAME}
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flac/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://flac.sourceforge.net/
+COMMENT= FLAC BMP plugin
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gmake pkg-config
+GNU_CONFIGURE= yes
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+SHLIBTOOL_OVERRIDE= libtool-disable-static
+
+XMMS_WRKSRC= ${WRKSRC}/src/plugin_xmms
+
+SUBST_CLASSES+= bmph
+SUBST_STAGE.bmph= post-configure
+SUBST_MESSAGE.bmph= Fixing xmms headers
+SUBST_FILES.bmph= src/plugin_xmms/*.c
+SUBST_SED.bmph= -e 's,include <xmms/,include <bmp/,g'
+
+BUILD_DIRS= src/libFLAC
+BUILD_DIRS+= src/plugin_common
+BUILD_DIRS+= src/share
+BUILD_DIRS+= src/plugin_xmms
+INSTALL_DIRS= src/plugin_xmms
+
+.include "../../mk/compiler.mk"
+
+# SunPro does not support __inline
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS+= -D__inline=inline
+.endif
+
+BUILDLINK_API_DEPENDS.flac+= flac>=1.1.3nb1
+.include "../../audio/flac/buildlink3.mk"
+.include "../../audio/bmp/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/bmp-flac/PLIST b/audio/bmp-flac/PLIST
new file mode 100644
index 00000000000..aecfe6f6a5e
--- /dev/null
+++ b/audio/bmp-flac/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+lib/bmp/Input/libxmms-flac.la
diff --git a/audio/bmp-flac/distinfo b/audio/bmp-flac/distinfo
new file mode 100644
index 00000000000..341ef2c0104
--- /dev/null
+++ b/audio/bmp-flac/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+
+SHA1 (flac-1.1.3.tar.gz) = e19c92bebe536b69dd14d54de76c1f626b83b295
+RMD160 (flac-1.1.3.tar.gz) = 3bb360940775b6b2a5127accfb12d29c04da1132
+Size (flac-1.1.3.tar.gz) = 1592699 bytes
+SHA1 (patch-aa) = 60a73e6d78b80f79ca26be956f26e3c5beeec8f3
+SHA1 (patch-ab) = e05afb0e0480f12111beb1cc0b6b431abcc3fd82
+SHA1 (patch-ac) = 1fc320bbd8642be716873990facab3a2635fc76c
diff --git a/audio/bmp-flac/patches/patch-aa b/audio/bmp-flac/patches/patch-aa
new file mode 100644
index 00000000000..9ff08004ee8
--- /dev/null
+++ b/audio/bmp-flac/patches/patch-aa
@@ -0,0 +1,248 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+--- configure.orig 2006-11-27 08:41:51.000000000 +0200
++++ configure 2009-11-24 17:40:41.000000000 +0200
+@@ -21246,229 +21246,18 @@
+ if test "x$enable_xmms_plugin" != xfalse ; then
+
+
+-# Check whether --with-xmms-prefix or --without-xmms-prefix was given.
+-if test "${with_xmms_prefix+set}" = set; then
+- withval="$with_xmms_prefix"
+- xmms_config_prefix="$withval"
+-else
+ xmms_config_prefix=""
+-fi;
+
+-# Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given.
+-if test "${with_xmms_exec_prefix+set}" = set; then
+- withval="$with_xmms_exec_prefix"
+- xmms_config_exec_prefix="$withval"
+-else
+ xmms_config_exec_prefix=""
+-fi;
+-
+-if test x$xmms_config_exec_prefix != x; then
+- xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
+- if test x${XMMS_CONFIG+set} != xset; then
+- XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
+- fi
+-fi
+-
+-if test x$xmms_config_prefix != x; then
+- xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
+- if test x${XMMS_CONFIG+set} != xset; then
+- XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
+- fi
+-fi
+-
+-# Extract the first word of "xmms-config", so it can be a program name with args.
+-set dummy xmms-config; ac_word=$2
+-echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+-if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- case $XMMS_CONFIG in
+- [\\/]* | ?:[\\/]*)
+- ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
+- ;;
+- *)
+- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+- ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+-done
+-
+- test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
+- ;;
+-esac
+-fi
+-XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
+-
+-if test -n "$XMMS_CONFIG"; then
+- echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
+-echo "${ECHO_T}$XMMS_CONFIG" >&6
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-fi
+-
+-min_xmms_version=0.9.5.1
+-
+-if test "$XMMS_CONFIG" = "no"; then
+- no_xmms=yes
+-else
+- XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
+- XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
+- XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
+- XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
+- XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
+- XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
+- --visualization-plugin-dir`
+- XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
+- XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
+- XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
+- XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
+-
+-
+-
+-# Determine which version number is greater. Prints 2 to stdout if
+-# the second number is greater, 1 if the first number is greater,
+-# 0 if the numbers are equal.
+-
+-# Written 15 December 1999 by Ben Gertzfield <che@debian.org>
+-# Revised 15 December 1999 by Jim Monty <monty@primenet.com>
+-
+- for ac_prog in gawk mawk nawk awk
+-do
+- # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+-if test "${ac_cv_prog_AWK+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- if test -n "$AWK"; then
+- ac_cv_prog_AWK="$AWK" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+- ac_cv_prog_AWK="$ac_prog"
+- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+-done
+-
+-fi
+-fi
+-AWK=$ac_cv_prog_AWK
+-if test -n "$AWK"; then
+- echo "$as_me:$LINENO: result: $AWK" >&5
+-echo "${ECHO_T}$AWK" >&6
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-fi
+-
+- test -n "$AWK" && break
+-done
+
+- xmms_got_version=` $AWK ' \
+-BEGIN { \
+- print vercmp(ARGV[1], ARGV[2]); \
+-} \
+- \
+-function vercmp(ver1, ver2, ver1arr, ver2arr, \
+- ver1len, ver2len, \
+- ver1int, ver2int, len, i, p) { \
+- \
+- ver1len = split(ver1, ver1arr, /\./); \
+- ver2len = split(ver2, ver2arr, /\./); \
+- \
+- len = ver1len > ver2len ? ver1len : ver2len; \
+- \
+- for (i = 1; i <= len; i++) { \
+- p = 1000 ^ (len - i); \
+- ver1int += ver1arr[i] * p; \
+- ver2int += ver2arr[i] * p; \
+- } \
+- \
+- if (ver1int < ver2int) \
+- return 2; \
+- else if (ver1int > ver2int) \
+- return 1; \
+- else \
+- return 0; \
+-}' $XMMS_VERSION $min_xmms_version`
+-
+- if test $xmms_got_version -eq 2; then # failure
+- no_xmms=version
+- else # success!
+- :
+- fi
+
+-fi
+-
+-echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5
+-echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6
+-
+-if test "x$no_xmms" = x; then
+- echo "$as_me:$LINENO: result: yes" >&5
+-echo "${ECHO_T}yes" >&6
+- :
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-
+- if test "$XMMS_CONFIG" = "no" ; then
+- echo "*** The xmms-config script installed by XMMS could not be found."
+- echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
+- echo "*** your path, or set the XMMS_CONFIG environment variable to the"
+- echo "*** full path to xmms-config."
+- else
+- if test "$no_xmms" = "version"; then
+- echo "*** An old version of XMMS, $XMMS_VERSION, was found."
+- echo "*** You need a version of XMMS newer than $min_xmms_version."
+- echo "*** The latest version of XMMS is always available from"
+- echo "*** http://www.xmms.org/"
+- echo "***"
+-
+- echo "*** If you have already installed a sufficiently new version, this error"
+- echo "*** probably means that the wrong copy of the xmms-config shell script is"
+- echo "*** being found. The easiest way to fix this is to remove the old version"
+- echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
+- echo "*** correct copy of xmms-config. (In this case, you will have to"
+- echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
+- echo "*** so that the correct libraries are found at run-time)"
+- fi
+- fi
+- XMMS_CFLAGS=""
+- XMMS_LIBS=""
+- { echo "$as_me:$LINENO: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5
+-echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;}
+-fi
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-fi
++ XMMS_CFLAGS=`$PKG_CONFIG bmp --cflags`
++ XMMS_LIBS=`$PKG_CONFIG bmp --libs`
++ XMMS_PLUGIN_DIR="$PREFIX/lib/bmp"
++ XMMS_INPUT_PLUGIN_DIR="$PREFIX/lib/bmp/Input"
++ XMMS_OUTPUT_PLUGIN_DIR="$PREFIX/lib/bmp/Output"
+
++echo BMP plugin path... $XMMS_INPUT_PLUGIN_DIR
+
+ if test -n "$XMMS_INPUT_PLUGIN_DIR"; then
+ FLaC__HAS_XMMS_TRUE=
+@@ -21478,7 +21267,7 @@
+ FLaC__HAS_XMMS_FALSE=
+ fi
+
+-
++fi
+
+ # Check whether --with-ogg or --without-ogg was given.
+ if test "${with_ogg+set}" = set; then
diff --git a/audio/bmp-flac/patches/patch-ab b/audio/bmp-flac/patches/patch-ab
new file mode 100644
index 00000000000..c71fb162454
--- /dev/null
+++ b/audio/bmp-flac/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+--- src/plugin_xmms/configure.c.orig 2009-11-24 17:52:10.000000000 +0200
++++ src/plugin_xmms/configure.c 2009-11-24 17:52:27.000000000 +0200
+@@ -397,7 +397,7 @@
+ gdk_window_raise(flac_configurewin->window);
+ return;
+ }
+- flac_configurewin = gtk_window_new(GTK_WINDOW_DIALOG);
++ flac_configurewin = gtk_window_new(GTK_WINDOW_POPUP);
+ gtk_signal_connect(GTK_OBJECT(flac_configurewin), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &flac_configurewin);
+ gtk_signal_connect(GTK_OBJECT(flac_configurewin), "destroy", GTK_SIGNAL_FUNC(configure_destroy), &flac_configurewin);
+ gtk_window_set_title(GTK_WINDOW(flac_configurewin), _("Flac Configuration"));
diff --git a/audio/bmp-flac/patches/patch-ac b/audio/bmp-flac/patches/patch-ac
new file mode 100644
index 00000000000..da933fbc24d
--- /dev/null
+++ b/audio/bmp-flac/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/11/24 16:04:50 kefren Exp $
+--- src/plugin_xmms/fileinfo.c.orig 2009-11-24 17:52:18.000000000 +0200
++++ src/plugin_xmms/fileinfo.c 2009-11-24 17:52:37.000000000 +0200
+@@ -286,7 +286,7 @@
+ GtkWidget *label, *filename_hbox;
+ GtkWidget *bbox, *save, *remove, *cancel;
+
+- window = gtk_window_new(GTK_WINDOW_DIALOG);
++ window = gtk_window_new(GTK_WINDOW_POPUP);
+ gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE);
+ gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &window);
+ gtk_container_set_border_width(GTK_CONTAINER(window), 10);