summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 11:17:24 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 11:17:24 +0800
commit610b12be0876d3cf084e24693f46e3d230b1b17d (patch)
tree40d34442e794f23a599ac82fe2bccc120c6284e9
parente2e8b3ae6b5e2bed8cf5411c4b32fd87a1bc8976 (diff)
downloadmarcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar.gz
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar.bz2
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar.lz
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar.xz
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.tar.zst
marcuscom-ports-610b12be0876d3cf084e24693f46e3d230b1b17d.zip
Move to LOCALBASE
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7383 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--multimedia/gxine/Makefile61
-rw-r--r--multimedia/gxine/distinfo3
-rw-r--r--multimedia/gxine/files/patch-src::desktop_integration.c10
-rw-r--r--multimedia/gxine/files/patch-src::engine.c11
-rw-r--r--multimedia/gxine/files/patch-src::http.c12
-rw-r--r--multimedia/gxine/files/patch-src::script_engine.c11
-rw-r--r--multimedia/gxine/pkg-descr4
-rw-r--r--multimedia/gxine/pkg-plist50
8 files changed, 162 insertions, 0 deletions
diff --git a/multimedia/gxine/Makefile b/multimedia/gxine/Makefile
new file mode 100644
index 000000000..122b374f0
--- /dev/null
+++ b/multimedia/gxine/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: gxine
+# Date created: Sa 19 Apr 2003 01:34:06 CEST
+# Whom: Grigori Goronzy <greg@chown.ath.cx>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gxine
+PORTVERSION= 0.5.7
+PORTREVISION= 1
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= xine
+
+MAINTAINER= makc@issp.ac.ru
+COMMENT= An alternative GUI for the Xine media player
+
+LIB_DEPENDS= xine.15:${PORTSDIR}/multimedia/libxine
+
+USE_BZIP2= yes
+USE_AUTOTOOLS= libtool:15
+USE_GNOME= gtk20 gnomehier
+USE_GMAKE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib"
+CONFIGURE_ARGS= --mandir=${PREFIX}/man
+INSTALLS_ICONS= yes
+
+MANLANG= "" de
+MAN1= gxine.1 gxine_client.1
+MANCOMPRESSED= no
+
+OPTIONS= MOZILLA_PLUGIN "Install Mozilla plugin" on
+
+.include <bsd.port.pre.mk>
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
+.if defined(WITHOUT_MOZILLA_PLUGIN)
+LIB_DEPENDS+= js.1:${PORTSDIR}/lang/spidermonkey
+CONFIGURE_ARGS+=--without-browser-plugin
+PLIST_SUB+= MOZILLA_PLUGIN="@comment "
+.else
+USE_GECKO= firefox mozilla seamonkey xulrunner firefox-devel
+.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
+CONFIGURE_ARGS+=--disable-libjs
+PLIST_SUB+= MOZILLA_PLUGIN=""
+.endif
+
+post-install:
+.if !defined(WITHOUT_MOZILLA_PLUGIN)
+ @${MKDIR} ${PREFIX}/lib/browser_plugins
+ @${LN} -sf ${PREFIX}/lib/gxine/gxineplugin.so ${PREFIX}/lib/browser_plugins
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gxine/distinfo b/multimedia/gxine/distinfo
new file mode 100644
index 000000000..15ef793d9
--- /dev/null
+++ b/multimedia/gxine/distinfo
@@ -0,0 +1,3 @@
+MD5 (gxine-0.5.7.tar.bz2) = 61585b08f699a33528749be101fe8a87
+SHA256 (gxine-0.5.7.tar.bz2) = 08f9da823bf87ce9a7beae6938ab2e5405004bb85f97ba49e3a2a1738ec0520c
+SIZE (gxine-0.5.7.tar.bz2) = 964963
diff --git a/multimedia/gxine/files/patch-src::desktop_integration.c b/multimedia/gxine/files/patch-src::desktop_integration.c
new file mode 100644
index 000000000..e1cd4c4b2
--- /dev/null
+++ b/multimedia/gxine/files/patch-src::desktop_integration.c
@@ -0,0 +1,10 @@
+--- src/desktop_integration.c.orig Thu Jun 8 18:15:59 2006
++++ src/desktop_integration.c Tue Jul 11 00:35:11 2006
+@@ -31,7 +31,6 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <dlfcn.h>
+-#include <alloca.h>
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/multimedia/gxine/files/patch-src::engine.c b/multimedia/gxine/files/patch-src::engine.c
new file mode 100644
index 000000000..b037e81f3
--- /dev/null
+++ b/multimedia/gxine/files/patch-src::engine.c
@@ -0,0 +1,11 @@
+--- src/engine.c.orig Fri Jun 30 18:56:00 2006
++++ src/engine.c Tue Jul 11 01:36:59 2006
+@@ -36,7 +36,7 @@
+
+ se_t *gse; /* global script engine */
+ xine_t *xine; /* global xine instance */
+-pthread_mutex_t engine_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
++pthread_mutex_t engine_lock = PTHREAD_MUTEX_INITIALIZER;
+
+ gboolean initialised = FALSE;
+
diff --git a/multimedia/gxine/files/patch-src::http.c b/multimedia/gxine/files/patch-src::http.c
new file mode 100644
index 000000000..1d51c0293
--- /dev/null
+++ b/multimedia/gxine/files/patch-src::http.c
@@ -0,0 +1,12 @@
+--- src/http.c.orig Thu Jun 29 04:35:39 2006
++++ src/http.c Tue Jul 11 00:54:35 2006
+@@ -35,6 +35,9 @@
+ #include <ctype.h>
+ #include <errno.h>
+
++#include <netinet/in.h>
++#include <arpa/inet.h>
++#define IPPROTO_TCP 6
+ #include "http.h"
+ #include "utils.h"
+
diff --git a/multimedia/gxine/files/patch-src::script_engine.c b/multimedia/gxine/files/patch-src::script_engine.c
new file mode 100644
index 000000000..ef082b664
--- /dev/null
+++ b/multimedia/gxine/files/patch-src::script_engine.c
@@ -0,0 +1,11 @@
+--- src/script_engine.c.orig Thu Jun 15 17:13:25 2006
++++ src/script_engine.c Tue Jul 11 00:38:49 2006
+@@ -1554,7 +1554,7 @@
+
+ pthread_mutexattr_t attr;
+ pthread_mutexattr_init (&attr);
+- pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
++ pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutex_init (&se->lock, &attr);
+ pthread_mutexattr_destroy (&attr);
+
diff --git a/multimedia/gxine/pkg-descr b/multimedia/gxine/pkg-descr
new file mode 100644
index 000000000..59a9beaab
--- /dev/null
+++ b/multimedia/gxine/pkg-descr
@@ -0,0 +1,4 @@
+gxine is a simple but effective GUI for the Xine media player.
+It uses the GTK toolkit, so it nicely fits in into a GNOME desktop.
+
+WWW: http://www.xinehq.de
diff --git a/multimedia/gxine/pkg-plist b/multimedia/gxine/pkg-plist
new file mode 100644
index 000000000..cc9f77f92
--- /dev/null
+++ b/multimedia/gxine/pkg-plist
@@ -0,0 +1,50 @@
+bin/gxine
+bin/gxine_client
+etc/gxine/gtkrc
+etc/gxine/keypad.xml
+etc/gxine/startup
+etc/gxine/toolbar-fullscreen.xml
+etc/gxine/toolbar-window.xml
+%%MOZILLA_PLUGIN%%lib/browser_plugins/gxineplugin.so
+%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.a
+%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.la
+%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.so
+share/applications/gxine.desktop
+%%DATADIR%%/logo.mpv
+%%DATADIR%%/mediamarks
+%%DATADIR%%/pixmaps/gxine-icon.xpm
+%%DATADIR%%/pixmaps/nospeaker.png
+%%DATADIR%%/pixmaps/set-brightness.svg
+%%DATADIR%%/pixmaps/set-contrast.svg
+%%DATADIR%%/pixmaps/set-saturation.svg
+%%DATADIR%%/pixmaps/set-volume.svg
+%%DATADIR%%/pixmaps/speaker.png
+%%DATADIR%%/pixmaps/splash.png
+share/icons/hicolor/48x48/apps/gxine.png
+%%NLS%%share/locale/cs/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gxine.theme.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gxine.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gxine.theme.mo
+share/pixmaps/gxine.png
+@dirrm %%DATADIR%%/pixmaps
+@dirrm %%DATADIR%%
+@dirrmtry share/applications
+@dirrmtry man/de/man1
+@dirrmtry man/de
+@dirrm lib/gxine
+%%MOZILLA_PLUGIN%%@dirrmtry lib/browser_plugins
+@dirrm etc/gxine