aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-11-14 03:54:51 +0800
committermarcus <marcus@FreeBSD.org>2003-11-14 03:54:51 +0800
commit0156bd9bc28dc1506efc841aa52bdd94921facf7 (patch)
treeb18e0a94997a95e7cfdebb9288bc53d8a7cd1dd5 /multimedia
parentb1d70d9ae0d0a96901832f2e7dace2d5283e8c0b (diff)
downloadfreebsd-ports-gnome-0156bd9bc28dc1506efc841aa52bdd94921facf7.tar.gz
freebsd-ports-gnome-0156bd9bc28dc1506efc841aa52bdd94921facf7.tar.zst
freebsd-ports-gnome-0156bd9bc28dc1506efc841aa52bdd94921facf7.zip
Add beep-media-player which the renamed XMMS MP3 player ported to GTK+-2.
Submitted by: Miguel Mendez <flynn@energyhq.es.eu.org>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/beep-media-player/Makefile124
-rw-r--r--multimedia/beep-media-player/distinfo1
-rw-r--r--multimedia/beep-media-player/files/patch-ltmain.sh51
-rw-r--r--multimedia/beep-media-player/pkg-descr5
-rw-r--r--multimedia/beep-media-player/pkg-message2
-rw-r--r--multimedia/beep-media-player/pkg-plist22
7 files changed, 206 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 8ab277688c80..726fa25a3268 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -5,6 +5,7 @@
SUBDIR += avidemux
SUBDIR += avifile
SUBDIR += avinfo
+ SUBDIR += beep-media-player
SUBDIR += camserv
SUBDIR += dtv
SUBDIR += dumpmpeg
diff --git a/multimedia/beep-media-player/Makefile b/multimedia/beep-media-player/Makefile
new file mode 100644
index 000000000000..2398c4cc4009
--- /dev/null
+++ b/multimedia/beep-media-player/Makefile
@@ -0,0 +1,124 @@
+# New ports collection makefile for: beep
+# Date created: Thu Nov 6 19:24:01 CET 2003
+# Whom: Miguel Mendez <flynn@energyhq.es.eu.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= beep-media-player
+PORTVERSION= 1.0.0
+CATEGORIES= multimedia audio
+MASTER_SITES= http://linux-media.net/beep/downloads/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-pre4-2
+
+MAINTAINER= flynn@energyhq.es.eu.org
+COMMENT= GTK2 mp3 player
+
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-pre4
+USE_GNOME= gtk20
+WANT_GNOME= yes
+USE_X_PREFIX= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ INPUT_PLUGINS="${INPUT_PLUGINS}" \
+ OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
+ VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
+MAN1= beep.1
+
+INPUT_PLUGINS= cdaudio,mpg123
+OUTPUT_PLUGINS= OSS
+VISUALIZATION_PLUGINS= blur_scope,sanalyzer
+
+PLIST_SUB= DATADIR="share"
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ARGS+= --enable-ipv6
+
+#.if !defined(WITHOUT_MIKMOD)
+#LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
+#INPUT_PLUGINS+= mikmod
+#PLIST_SUB+= MIKMODPLUGIN:=""
+#.else
+CONFIGURE_ARGS+= --disable-mikmod
+PLIST_SUB+= MIKMODPLUGIN:="@comment "
+#.endif
+
+#.if !defined(WITHOUT_VORBIS)
+#LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
+#INPUT_PLUGINS+= vorbis
+#PLIST_SUB+= VORBISPLUGIN:=""
+#.else
+CONFIGURE_ARGS+= --disable-vorbis
+PLIST_SUB+= VORBISPLUGIN:="@comment "
+#.endif
+
+.if ${HAVE_GNOME:Mesound}!=""
+USE_GNOME+= esound
+OUTPUT_PLUGINS+= esd
+PLIST_SUB+= ESDPLUGIN:=""
+.if defined(PKGNAMESUFFIX)
+PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
+.else
+PKGNAMESUFFIX= -esound
+.endif
+.else
+CONFIGURE_ARGS+= --disable-esd
+PLIST_SUB+= ESDPLUGIN:="@comment "
+.endif
+
+.if ${MACHINE_ARCH} != "i386"
+WITHOUT_3DNOW= yes
+.endif
+
+.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
+CONFIGURE_ARGS+= --enable-3dnow
+.endif
+
+.if defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021
+post-extract:
+ (cd ${WRKSRC}/Input/mpg123 && ${MV} decode_i586.s decode_i586.S && \
+ cd ${WRKSRC}/Visualization/blur_scope && ${MV} blur_8.s blur_8.S);
+ ${REINPLACE_CMD} -e 's:\.s :\.S :g' ${WRKSRC}/Input/mpg123/Makefile.in
+ ${REINPLACE_CMD} -e 's:blur_8.s:blur_8.S:g' \
+ ${WRKSRC}/Visualization/blur_scope/Makefile.in
+.endif
+
+pre-extract:
+.if !defined(WITHOUT_MIKMOD) || !defined(WITHOUT_VORBIS) || ( !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 ) || ${HAVE_GNOME:Mesound}!=""
+ @${ECHO_MSG}
+.if !defined(WITHOUT_MIKMOD)
+ @${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
+.endif
+.if !defined(WITHOUT_VORBIS)
+ @${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
+.endif
+.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
+ @${ECHO_MSG} "You can disable 3DNow! optimized decoding routines by defining WITHOUT_3DNOW."
+.endif
+.if ${HAVE_GNOME:Mesound}!=""
+ @${ECHO_MSG} "You can disable support for esound by defining WITHOUT_GNOME=esound."
+.endif
+ @${ECHO_MSG}
+.endif
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|\(datadir\)/aclocal|(prefix)/share/aclocal|g'
+ @${REINPLACE_CMD} -e 's|{datadir}/locale|{prefix}/share/locale|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
+ ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/beep/Skins
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/beep-media-player/distinfo b/multimedia/beep-media-player/distinfo
new file mode 100644
index 000000000000..9d2c7365a7e2
--- /dev/null
+++ b/multimedia/beep-media-player/distinfo
@@ -0,0 +1 @@
+MD5 (beep-media-player-1.0.0-pre4-2.tar.gz) = dfd65e25725b0b1b37f5cba26e545c88
diff --git a/multimedia/beep-media-player/files/patch-ltmain.sh b/multimedia/beep-media-player/files/patch-ltmain.sh
new file mode 100644
index 000000000000..bb660972a6d1
--- /dev/null
+++ b/multimedia/beep-media-player/files/patch-ltmain.sh
@@ -0,0 +1,51 @@
+--- ltmain.sh.orig Thu May 22 16:42:22 2003
++++ ltmain.sh Tue May 27 12:12:52 2003
+@@ -1072,7 +1072,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd4*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+@@ -1082,8 +1082,16 @@
+ continue
+ ;;
+
++ -pthread)
++ compile_command="$compile_command -pthread"
++ finalize_command="$finalize_command -pthread"
++ compiler_flags="$compiler_flags -pthread"
++ continue
++ ;;
++
+ -module)
+ module=yes
++ build_old_libs=no
+ continue
+ ;;
+
+@@ -2498,6 +2506,9 @@
+ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
++ *-*-freebsd*)
++ # FreeBSD doesn't need this...
++ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test $build_libtool_need_lc = "yes"; then
+@@ -4325,10 +4336,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/multimedia/beep-media-player/pkg-descr b/multimedia/beep-media-player/pkg-descr
new file mode 100644
index 000000000000..f993211d2dc9
--- /dev/null
+++ b/multimedia/beep-media-player/pkg-descr
@@ -0,0 +1,5 @@
+beep is a media player based on XMMS (http://www.xmms.org).
+The primary goals of this fork are UI enhancements with latest
+technology (GTK2, Pango), and usability while maintaining the skinned UI.
+
+WWW: http://linux-media.net/beep/
diff --git a/multimedia/beep-media-player/pkg-message b/multimedia/beep-media-player/pkg-message
new file mode 100644
index 000000000000..f08e7f569df6
--- /dev/null
+++ b/multimedia/beep-media-player/pkg-message
@@ -0,0 +1,2 @@
+beep supports Gzipped and uncompressed skins. If you would like to use
+Zip format skins you will need to ensure archivers/unzip is installed.
diff --git a/multimedia/beep-media-player/pkg-plist b/multimedia/beep-media-player/pkg-plist
new file mode 100644
index 000000000000..57a5c74a7f7e
--- /dev/null
+++ b/multimedia/beep-media-player/pkg-plist
@@ -0,0 +1,22 @@
+bin/beep-config
+bin/beep-media-player
+include/beep/beepctrl.h
+include/beep/configfile.h
+include/beep/dirbrowser.h
+include/beep/formatter.h
+include/beep/fullscreen.h
+include/beep/plugin.h
+include/beep/titlestring.h
+include/beep/util.h
+lib/libbeep.a
+lib/libbeep.so
+lib/libbeep.so.1
+lib/beep/Input/libcdaudio.so
+lib/beep/Input/libmpg123.so
+lib/beep/Output/libOSS.so
+%%ESDPLUGIN%%lib/beep/Output/libesdout.so
+share/aclocal/beep.m4
+@dirrm lib/beep/Output
+@dirrm lib/beep/Input
+@dirrm lib/beep
+@dirrm include/beep