diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-12-19 17:05:16 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-12-19 17:05:16 +0000 |
commit | a79685d9cdb239db660f7d6b836bb7297df533a3 (patch) | |
tree | 8e8a4ad15d54ad25cef07c22a9f9befc3bfdd0aa /graphics | |
parent | b32ef69a26ecdc149e037795b0c28bc532f2e7bd (diff) | |
download | ports-a79685d9cdb239db660f7d6b836bb7297df533a3.tar.gz ports-a79685d9cdb239db660f7d6b836bb7297df533a3.zip |
Notes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/smpeg-xmms/Makefile | 35 | ||||
-rw-r--r-- | graphics/smpeg-xmms/distinfo | 1 | ||||
-rw-r--r-- | graphics/smpeg-xmms/files/patch-aa | 11 | ||||
-rw-r--r-- | graphics/smpeg-xmms/files/patch-ab | 76 | ||||
-rw-r--r-- | graphics/smpeg-xmms/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/smpeg-xmms/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/smpeg-xmms/pkg-plist | 1 |
8 files changed, 131 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index ae1ecd21ad22..a6ad6788c7a3 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -180,6 +180,7 @@ SUBDIR += seejpeg SUBDIR += sketch SUBDIR += smpeg + SUBDIR += smpeg-xmms SUBDIR += sodipodi SUBDIR += spigot SUBDIR += splitmpg diff --git a/graphics/smpeg-xmms/Makefile b/graphics/smpeg-xmms/Makefile new file mode 100644 index 000000000000..e5878802ed4b --- /dev/null +++ b/graphics/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/graphics/smpeg-xmms/distinfo b/graphics/smpeg-xmms/distinfo new file mode 100644 index 000000000000..eb3ed4352c49 --- /dev/null +++ b/graphics/smpeg-xmms/distinfo @@ -0,0 +1 @@ +MD5 (smpeg-xmms-0.3.3.tar.gz) = 3eacf44852c40f821a68a28693693553 diff --git a/graphics/smpeg-xmms/files/patch-aa b/graphics/smpeg-xmms/files/patch-aa new file mode 100644 index 000000000000..93eff52f3af6 --- /dev/null +++ b/graphics/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/graphics/smpeg-xmms/files/patch-ab b/graphics/smpeg-xmms/files/patch-ab new file mode 100644 index 000000000000..169595771a5d --- /dev/null +++ b/graphics/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/graphics/smpeg-xmms/pkg-comment b/graphics/smpeg-xmms/pkg-comment new file mode 100644 index 000000000000..a92c7dbec006 --- /dev/null +++ b/graphics/smpeg-xmms/pkg-comment @@ -0,0 +1 @@ +A mpeg video plugin for XMMS diff --git a/graphics/smpeg-xmms/pkg-descr b/graphics/smpeg-xmms/pkg-descr new file mode 100644 index 000000000000..3ea007b177bc --- /dev/null +++ b/graphics/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/graphics/smpeg-xmms/pkg-plist b/graphics/smpeg-xmms/pkg-plist new file mode 100644 index 000000000000..b156b253f1d3 --- /dev/null +++ b/graphics/smpeg-xmms/pkg-plist @@ -0,0 +1 @@ +lib/xmms/Input/libsmpeg_xmms.so |