diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-12-20 01:05:16 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-12-20 01:05:16 +0800 |
commit | db1f75f4c2e40e2f65ba65bacced7d503c9e9b5b (patch) | |
tree | 944006334eadf8f40aa9548182a8de49b228f6cd /multimedia/smpeg-xmms | |
parent | 9ea18cb17bfe71a4441ec5384a64f7052baa67a5 (diff) | |
download | freebsd-ports-graphics-db1f75f4c2e40e2f65ba65bacced7d503c9e9b5b.tar.gz freebsd-ports-graphics-db1f75f4c2e40e2f65ba65bacced7d503c9e9b5b.tar.zst freebsd-ports-graphics-db1f75f4c2e40e2f65ba65bacced7d503c9e9b5b.zip |
Add smpeg-xmms. A mpeg plugin for XMMS using SDL/smpeg as backend. Supports
hardware acceleration in Xfree 4.x if available, fullscreen, resizeable window,
VCD support (doesn't work in FreeBSD yet), aspected ratio when resizing the
window, etc.
Diffstat (limited to 'multimedia/smpeg-xmms')
-rw-r--r-- | multimedia/smpeg-xmms/Makefile | 35 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/distinfo | 1 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/files/patch-aa | 11 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/files/patch-ab | 76 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/pkg-comment | 1 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/pkg-descr | 5 | ||||
-rw-r--r-- | multimedia/smpeg-xmms/pkg-plist | 1 |
7 files changed, 130 insertions, 0 deletions
diff --git a/multimedia/smpeg-xmms/Makefile b/multimedia/smpeg-xmms/Makefile new file mode 100644 index 00000000000..e5878802ed4 --- /dev/null +++ b/multimedia/smpeg-xmms/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: smpeg-xmms +# Date created: 30 August 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= smpeg-xmms +PORTVERSION= 0.3.3 +CATEGORIES= graphics gnome +MASTER_SITES= ftp://ftp.xmms.org/xmms/plugins/smpeg-xmms/ + +MAINTAINER= sobomax@FreeBSD.org + +LIB_DEPENDS= smpeg.0:${PORTSDIR}/graphics/smpeg \ + xmms.1:${PORTSDIR}/audio/xmms + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config + +USE_X_PREFIX= yes +USE_GTK= yes +USE_LIBTOOL= yes +CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ + CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +pre-patch: + @${PERL} -pi -e 's|-lpthread|-pthread|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + +post-configure: + @${PERL} -pi -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \ + ${WRKSRC}/libtool + +.include <bsd.port.mk> diff --git a/multimedia/smpeg-xmms/distinfo b/multimedia/smpeg-xmms/distinfo new file mode 100644 index 00000000000..eb3ed4352c4 --- /dev/null +++ b/multimedia/smpeg-xmms/distinfo @@ -0,0 +1 @@ +MD5 (smpeg-xmms-0.3.3.tar.gz) = 3eacf44852c40f821a68a28693693553 diff --git a/multimedia/smpeg-xmms/files/patch-aa b/multimedia/smpeg-xmms/files/patch-aa new file mode 100644 index 00000000000..93eff52f3af --- /dev/null +++ b/multimedia/smpeg-xmms/files/patch-aa @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Tue Nov 28 23:04:39 2000 ++++ src/Makefile.in Tue Dec 19 18:37:56 2000 +@@ -101,7 +101,7 @@ + libsmpeg_xmms_la_LDFLAGS = -module -avoid-version + + INCLUDES = @XMMS_CFLAGS@ @SDL_CFLAGS@ @SMPEG_CFLAGS@ +-libsmpeg_xmms_la_LIBADD = @XMMS_LIBS@ @PTHREAD_LIBS@ @SDL_LIBS@ @SMPEG_LIBS@ ++libsmpeg_xmms_la_LIBADD = @XMMS_LIBS@ @PTHREAD_LIBS@ @SDL_LIBS@ @SMPEG_LIBS@ -lgcc_r + + libsmpeg_xmms_la_SOURCES = smpeg-xmms.c smpeg-xmms.h configure.c + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/multimedia/smpeg-xmms/files/patch-ab b/multimedia/smpeg-xmms/files/patch-ab new file mode 100644 index 00000000000..169595771a5 --- /dev/null +++ b/multimedia/smpeg-xmms/files/patch-ab @@ -0,0 +1,76 @@ +--- src/smpeg-xmms.c 2000/12/19 16:41:23 1.1 ++++ src/smpeg-xmms.c 2000/12/19 16:48:55 +@@ -269,6 +269,7 @@ + smpeg_seek(MIN((gint)info.total_time, + (gint)info.current_time + 5)); + } ++#ifdef __linux + else + { + SDL_mutexP(vcd_mutex); +@@ -278,6 +279,7 @@ + vcdpos = vcdpos_max; + SDL_mutexV(vcd_mutex); + } ++#endif + break; + case SDLK_LEFT: + if (!is_vcd) +@@ -287,6 +289,7 @@ + SDL_mutexV(mpeg_mutex); + smpeg_seek(MAX(0, (gint)info.current_time - 5)); + } ++#ifdef __linux + else + { + SDL_mutexP(vcd_mutex); +@@ -296,6 +299,7 @@ + vcdpos = 0; + SDL_mutexV(vcd_mutex); + } ++#endif + break; + case SDLK_UP: + i = xmms_remote_get_main_volume(ctrlsocket_get_session_id()); +@@ -748,9 +752,11 @@ + } + if(is_vcd) + { ++#ifdef __linux + set_track_number(CDROM_LEADOUT, &m, &s, &f); + vcdpos_max = (((m * CD_SECS) + s) * CD_FRAMES) + f; + smpeg_ip.set_info(name, (1000 * vcdpos_max) / CD_FRAMES, bitrate * 1000, srate, nch); ++#endif + } + else + { +@@ -869,12 +875,14 @@ + SMPEG_seek(mpeg, (gint) (((gdouble) time / info.total_time) * + info.total_size)); + } ++#ifdef __linux + else + { + SDL_mutexP(vcd_mutex); + vcdpos = msf_to_lba(0, (int) time, 0); + SDL_mutexV(vcd_mutex); + } ++#endif + SDL_mutexV(mpeg_mutex); + } + +@@ -900,9 +908,14 @@ + + return (info.current_time * 1000); + } ++#ifdef __linux ++ else ++ { + SDL_mutexV(mpeg_mutex); + lba_to_msf(vcdpos, &m, &s, &f); + return (1000 * ((m * CD_SECS) + s) + (f * 1000 / 75)); ++ } ++#endif + } + + static void smpeg_get_song_info(gchar * filename, gchar ** title, gint * length) diff --git a/multimedia/smpeg-xmms/pkg-comment b/multimedia/smpeg-xmms/pkg-comment new file mode 100644 index 00000000000..a92c7dbec00 --- /dev/null +++ b/multimedia/smpeg-xmms/pkg-comment @@ -0,0 +1 @@ +A mpeg video plugin for XMMS diff --git a/multimedia/smpeg-xmms/pkg-descr b/multimedia/smpeg-xmms/pkg-descr new file mode 100644 index 00000000000..3ea007b177b --- /dev/null +++ b/multimedia/smpeg-xmms/pkg-descr @@ -0,0 +1,5 @@ +A mpeg video plugin for XMMS using SDL/smpeg as backend. Supports hardware +acceleration in Xfree 4.x if available, fullscreen, resizeable window, VCD +support, aspected ratio when resizing the window, etc. + +WWW: http://www.xmms.org/plugins_input.html#93 diff --git a/multimedia/smpeg-xmms/pkg-plist b/multimedia/smpeg-xmms/pkg-plist new file mode 100644 index 00000000000..b156b253f1d --- /dev/null +++ b/multimedia/smpeg-xmms/pkg-plist @@ -0,0 +1 @@ +lib/xmms/Input/libsmpeg_xmms.so |