View | Details | Raw Unified | Return to bug 168042
Collapse All | Expand All

(-)multimedia/gxine/Makefile (-57 / +45 lines)
Lines 6-94 Link Here
6
#
6
#
7
7
8
PORTNAME=	gxine
8
PORTNAME=	gxine
9
PORTVERSION=	0.5.905
9
PORTVERSION=	0.5.907
10
PORTREVISION=	6
11
CATEGORIES=	multimedia
10
CATEGORIES=	multimedia
12
MASTER_SITES=	SF/xine/${PORTNAME}/${PORTVERSION}
11
MASTER_SITES=	SF/xine/${PORTNAME}/${PORTVERSION}
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	An alternative GUI for the Xine media player
14
COMMENT=	An alternative GUI for the Xine media player
16
15
17
LIB_DEPENDS=	xine.2:${PORTSDIR}/multimedia/libxine
16
LICENSE=	GPLv2
18
17
19
USE_BZIP2=	yes
18
LIB_DEPENDS=	nspr4.1:${PORTSDIR}/devel/nspr \
20
USE_AUTOTOOLS=	libtool
19
		xine.2:${PORTSDIR}/multimedia/libxine
21
USE_GNOME=	gtk20 gnomehier
20
21
OPTIONS=	MOZILLA_PLUGIN "Install Mozilla plugin" off \
22
		GNOME "Enable Gnome integration" off \
23
		LIRC "Enable lirc support" off
24
25
USE_XZ=		yes
26
USE_GNOME=	gnomehack gtk20
27
USE_GECKO=	libxul
22
USE_GMAKE=	yes
28
USE_GMAKE=	yes
23
USE_GCC=	4.2+
29
USE_AUTOTOOLS=	libtool
24
MAKE_ARGS+=	LDFLAGS=-shared-libgcc
30
CONFIGURE_ENV=	MKDIR_P="${MKDIR}"
25
CNU_CONFIGURE=	yes
31
CONFIGURE_ARGS=	--enable-mozjs --disable-ffjs --disable-seajs \
26
CONFIGURE_ARGS+=--without-hal --with-libintl-prefix=${LOCALBASE}
32
		--without-hal --with-libintl-prefix=${LOCALBASE}
27
INSTALLS_ICONS=	yes
33
INSTALLS_ICONS=	yes
28
29
MAKE_JOBS_SAFE=	yes
34
MAKE_JOBS_SAFE=	yes
30
35
36
CPPFLAGS+=	-I${LOCALBASE}/include
37
LDFLAGS+=	-L${LOCALBASE}/lib
38
31
MANLANG=	"" de es
39
MANLANG=	"" de es
32
MAN1=		gxine.1 gxine_client.1
40
MAN1=		gxine.1 gxine_client.1
33
MANCOMPRESSED=	no
41
MANCOMPRESSED=	no
34
42
35
OPTIONS=	MOZILLA_PLUGIN "Install Mozilla plugin" off \
36
		GNOME "Enable Gnome integration" off \
37
		LIRC "Enable lirc support" off
38
39
.include <bsd.port.options.mk>
43
.include <bsd.port.options.mk>
40
44
41
.if defined(WITH_GNOME)
45
.if defined(WITH_MOZILLA_PLUGIN)
42
USE_GNOME+=	gnomevfs2 libgnomeui
46
USE_XORG+=	xaw
43
CONFIGURE_ARGS+=--with-dbus
47
USE_WEBPLUGINS=	native
48
WEBPLUGINS_DIR=	${PREFIX}/lib/gxine
49
WEBPLUGINS_FILES=gxineplugin.so
50
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
51
PLIST_SUB+=	MOZILLA_PLUGIN=""
44
.else
52
.else
45
CONFIGURE_ARGS+=--disable-integration-wizard --without-dbus
53
CONFIGURE_ARGS+=--without-browser-plugin
54
PLIST_SUB+=	MOZILLA_PLUGIN="@comment "
46
.endif
55
.endif
47
56
48
.if defined(WITHOUT_NLS)
57
.if defined(WITH_GNOME)
49
CONFIGURE_ARGS+=--disable-nls
58
BUILD_DEPENDS+=	gnome-screensaver:${PORTSDIR}/x11/gnome-screensaver
50
PLIST_SUB+=	NLS="@comment "
59
LIB_DEPENDS+=	dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
60
RUN_DEPENDS+=	gnome-screensaver:${PORTSDIR}/x11/gnome-screensaver
61
CONFIGURE_ARGS+=--with-dbus
51
.else
62
.else
52
USE_GETTEXT=	yes
63
CONFIGURE_ARGS+=--disable-integration-wizard --without-dbus
53
PLIST_SUB+=	NLS=""
54
.endif
64
.endif
55
65
56
.if defined(WITH_LIRC)
66
.if defined(WITH_LIRC)
57
LIB_DEPENDS+=	lirc_client.2:${PORTSDIR}/comms/lirc
67
LIB_DEPENDS+=	lirc_client.2:${PORTSDIR}/comms/lirc
58
CONFIGURE_ARGS+=	--enable-lirc
68
CONFIGURE_ARGS+=--enable-lirc
59
.else
60
CONFIGURE_ARGS+=	--disable-lirc
61
.endif
62
63
.if defined(WITHOUT_MOZILLA_PLUGIN)
64
LIB_DEPENDS+=	js.1:${PORTSDIR}/lang/spidermonkey
65
CONFIGURE_ARGS+=--without-browser-plugin --with-spidermonkey
66
PLIST_SUB+=	MOZILLA_PLUGIN="@comment "
67
.else
69
.else
68
USE_XORG+=	xaw
70
CONFIGURE_ARGS+=--disable-lirc
69
USE_GECKO=	libxul
70
USE_WEBPLUGINS=	native
71
WEBPLUGINS_DIR=	${PREFIX}/lib/gxine
72
WEBPLUGINS_FILES=gxineplugin.so
73
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
74
LIB_DEPENDS+=	nspr4.1:${PORTSDIR}/devel/nspr
75
CONFIGURE_ENV+=	NSPR_CFLAGS="-I${LOCALBASE}/include/nspr" \
76
		NSPR_LIBS="-L${LOCALBASE}/lib"
77
PLIST_SUB+=	MOZILLA_PLUGIN=""
78
.endif
71
.endif
79
72
80
pre-configure:
73
post-patch:
81
	@${REINPLACE_CMD} -e "/^mkdir_p/s:@mkdir_p@:${MKDIR}:" \
74
	@${REINPLACE_CMD} -e \
82
		${WRKSRC}/po/Makefile.in.in
75
		'/CFLAGS/s|-I/usr/local/include|| ; \
83
	@${REINPLACE_CMD} -e "/^mkdir_p/s:@mkdir_p@:${MKDIR}:" \
76
		 /CFLAGS/s|-L/usr/local/lib|| ; \
84
		${WRKSRC}/misc/po/Makefile.in.in
77
		 /CPPFLAGS/s|-I/usr/local/include|| ; \
85
	@${REINPLACE_CMD} -e "s:@MAKE_PNG_TRUE@:#:g" \
78
		 s|XINE_LIST=.*|XINE_LIST=|' ${WRKSRC}/configure
86
		${WRKSRC}/pixmaps/Makefile.in
79
	@${REINPLACE_CMD} -e \
87
80
		's|@MAKE_PNG_TRUE@|#|' ${WRKSRC}/pixmaps/Makefile.in
88
.include <bsd.port.pre.mk>
89
90
.if (${OSVERSION}<800000) && defined(WITH_MOZILLA_PLUGIN)
91
BROKEN=	does not compile with MOZILLA_PLUGIN
92
.endif
93
81
94
.include <bsd.port.post.mk>
82
.include <bsd.port.mk>
(-)multimedia/gxine/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gxine-0.5.905.tar.bz2) = 9dcca3e581fddfc4cea8f9e45c99652f4dd336c1ca7726e910870b9c778b0cbf
1
SHA256 (gxine-0.5.907.tar.xz) = b5c925806a35cb23a24a80a39d494cefb529e22c957987741f269a994ab258d5
2
SIZE (gxine-0.5.905.tar.bz2) = 1203720
2
SIZE (gxine-0.5.907.tar.xz) = 910528
(-)multimedia/gxine/files/patch-src__Makefile.in (+18 lines)
Line 0 Link Here
1
--- src/Makefile.in.orig	2012-02-21 04:10:20.000000000 +0900
2
+++ src/Makefile.in	2012-05-15 17:11:18.000000000 +0900
3
@@ -330,12 +330,12 @@
4
 top_builddir = @top_builddir@
5
 top_srcdir = @top_srcdir@
6
 GNU_VERBOSITY := $(if $(findstring GNU,$(shell $(MAKE) -v)),0,1)
7
-INCLUDES = -I../include -I$(top_srcdir)/include -I$(includedir) \
8
-	   -I$(top_builddir)/pixmaps $(LIRC_INCLUDE)
9
+INCLUDES = -I../include -I$(top_srcdir)/include \
10
+	   -I$(top_builddir)/pixmaps $(JS_CFLAGS) $(LIRC_INCLUDE)
11
 
12
 AM_CFLAGS = $(GNU99) $(XINE_CFLAGS) $(X_CFLAGS) \
13
 	    $(GTK2_CFLAGS) $(GTHREAD2_CFLAGS) \
14
-	    $(HAL_CFLAGS) $(UDEV_CFLAGS) $(DBUS_CFLAGS) $(JS_CFLAGS) \
15
+	    $(HAL_CFLAGS) $(UDEV_CFLAGS) $(DBUS_CFLAGS) $(NSPR_CFLAGS) \
16
 	    -DLOCALEDIR=\"$(localedir)\"
17
 
18
 gxine_SOURCES = \
(-)multimedia/gxine/files/patch-src__console_outout.h (+11 lines)
Line 0 Link Here
1
--- src/console_output.h.orig	2010-04-11 23:46:54.000000000 +0900
2
+++ src/console_output.h	2012-05-15 04:21:37.000000000 +0900
3
@@ -21,7 +21,7 @@
4
 #ifndef GXINE_CONSOLE_OUTPUT_H
5
 #define GXINE_CONSOLE_OUTPUT_H
6
 
7
-#include <glib/gmessages.h>
8
+#include <glib.h>
9
 
10
 void console_output_init (void);
11
 
(-)multimedia/gxine/files/patch-src__engine.c (+11 lines)
Line 0 Link Here
1
--- src/engine.c.orig	2011-10-12 07:47:52.000000000 +0900
2
+++ src/engine.c	2012-05-15 04:22:54.000000000 +0900
3
@@ -30,7 +30,7 @@
4
 #include <errno.h>
5
 #include <unistd.h>
6
 
7
-#include <glib/gthread.h>
8
+#include <glib.h>
9
 
10
 #include "engine.h"
11
 #include "ui.h"
(-)multimedia/gxine/files/patch-src__lirc.c (+12 lines)
Line 0 Link Here
1
--- src/lirc.c.orig	2011-08-07 20:20:33.000000000 +0900
2
+++ src/lirc.c	2012-05-15 03:54:41.000000000 +0900
3
@@ -223,8 +223,8 @@
4
   if (gxine_lirc_thread_created)
5
     pthread_join (gxine_lirc_thread, NULL);
6
   gxine_lirc_start ();
7
-#endif
8
   JS_SET_RVAL (cx, vp, gxine_lirc_thread ? JSVAL_TRUE : JSVAL_FALSE);
9
+#endif
10
   return JS_TRUE;
11
 }
12
 
(-)multimedia/gxine/files/patch-src__main.c (+10 lines)
Line 0 Link Here
1
--- src/main.c.orig	2010-12-05 20:38:44.000000000 +0900
2
+++ src/main.c	2012-05-15 04:23:45.000000000 +0900
3
@@ -46,7 +46,6 @@
4
 #include <gdk/gdk.h>
5
 #include <gdk/gdkkeysyms.h>
6
 #include <glib.h>
7
-#include <glib/gmessages.h>
8
 
9
 #include "desktop_integration.h"
10
 #include "engine.h"
(-)multimedia/gxine/pkg-plist (-30 / +31 lines)
Lines 1-10 Link Here
1
bin/gxine
1
bin/gxine
2
bin/gxine_client
2
bin/gxine_client
3
etc/gxine/gtkrc
3
%%ETCDIR%%/gtkrc
4
etc/gxine/keypad.xml
4
%%ETCDIR%%/keypad.xml
5
etc/gxine/startup
5
%%ETCDIR%%/startup
6
etc/gxine/toolbar-fullscreen.xml
6
%%ETCDIR%%/toolbar-fullscreen.xml
7
etc/gxine/toolbar-window.xml
7
%%ETCDIR%%/toolbar-window.xml
8
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.a
8
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.a
9
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.la
9
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.la
10
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.so
10
%%MOZILLA_PLUGIN%%lib/gxine/gxineplugin.so
Lines 18-53 Link Here
18
%%DATADIR%%/pixmaps/set-contrast.svg
18
%%DATADIR%%/pixmaps/set-contrast.svg
19
%%DATADIR%%/pixmaps/set-hue.svg
19
%%DATADIR%%/pixmaps/set-hue.svg
20
%%DATADIR%%/pixmaps/set-saturation.svg
20
%%DATADIR%%/pixmaps/set-saturation.svg
21
%%DATADIR%%/pixmaps/set-sharpness.svg
21
%%DATADIR%%/pixmaps/set-sync.svg
22
%%DATADIR%%/pixmaps/set-sync.svg
22
%%DATADIR%%/pixmaps/set-volume.svg
23
%%DATADIR%%/pixmaps/set-volume.svg
23
%%DATADIR%%/pixmaps/speaker.png
24
%%DATADIR%%/pixmaps/speaker.png
24
%%DATADIR%%/pixmaps/splash.png
25
%%DATADIR%%/pixmaps/splash.png
25
%%DATADIR%%/pixmaps/subtitle.svg
26
%%DATADIR%%/pixmaps/subtitle.svg
26
share/icons/hicolor/64x64/apps/gxine.png
27
share/icons/hicolor/64x64/apps/gxine.png
27
%%NLS%%share/locale/cs/LC_MESSAGES/gxine.mo
28
share/locale/cs/LC_MESSAGES/gxine.mo
28
%%NLS%%share/locale/cs/LC_MESSAGES/gxine.theme.mo
29
share/locale/cs/LC_MESSAGES/gxine.theme.mo
29
%%NLS%%share/locale/de/LC_MESSAGES/gxine.mo
30
share/locale/de/LC_MESSAGES/gxine.mo
30
%%NLS%%share/locale/de/LC_MESSAGES/gxine.theme.mo
31
share/locale/de/LC_MESSAGES/gxine.theme.mo
31
%%NLS%%share/locale/es/LC_MESSAGES/gxine.mo
32
share/locale/es/LC_MESSAGES/gxine.mo
32
%%NLS%%share/locale/es/LC_MESSAGES/gxine.theme.mo
33
share/locale/es/LC_MESSAGES/gxine.theme.mo
33
%%NLS%%share/locale/fi/LC_MESSAGES/gxine.mo
34
share/locale/fi/LC_MESSAGES/gxine.mo
34
%%NLS%%share/locale/fi/LC_MESSAGES/gxine.theme.mo
35
share/locale/fi/LC_MESSAGES/gxine.theme.mo
35
%%NLS%%share/locale/fr/LC_MESSAGES/gxine.mo
36
share/locale/fr/LC_MESSAGES/gxine.mo
36
%%NLS%%share/locale/fr/LC_MESSAGES/gxine.theme.mo
37
share/locale/fr/LC_MESSAGES/gxine.theme.mo
37
%%NLS%%share/locale/it/LC_MESSAGES/gxine.mo
38
share/locale/it/LC_MESSAGES/gxine.mo
38
%%NLS%%share/locale/it/LC_MESSAGES/gxine.theme.mo
39
share/locale/it/LC_MESSAGES/gxine.theme.mo
39
%%NLS%%share/locale/ja/LC_MESSAGES/gxine.mo
40
share/locale/ja/LC_MESSAGES/gxine.mo
40
%%NLS%%share/locale/ja/LC_MESSAGES/gxine.theme.mo
41
share/locale/ja/LC_MESSAGES/gxine.theme.mo
41
%%NLS%%share/locale/pl/LC_MESSAGES/gxine.mo
42
share/locale/pl/LC_MESSAGES/gxine.mo
42
%%NLS%%share/locale/pl/LC_MESSAGES/gxine.theme.mo
43
share/locale/pl/LC_MESSAGES/gxine.theme.mo
43
%%NLS%%share/locale/ru/LC_MESSAGES/gxine.mo
44
share/locale/ru/LC_MESSAGES/gxine.mo
44
%%NLS%%share/locale/ru/LC_MESSAGES/gxine.theme.mo
45
share/locale/ru/LC_MESSAGES/gxine.theme.mo
45
%%NLS%%share/locale/sv/LC_MESSAGES/gxine.mo
46
share/locale/sv/LC_MESSAGES/gxine.mo
46
%%NLS%%share/locale/sv/LC_MESSAGES/gxine.theme.mo
47
share/locale/sv/LC_MESSAGES/gxine.theme.mo
47
%%NLS%%share/locale/uk/LC_MESSAGES/gxine.mo
48
share/locale/uk/LC_MESSAGES/gxine.mo
48
%%NLS%%share/locale/uk/LC_MESSAGES/gxine.theme.mo
49
share/locale/uk/LC_MESSAGES/gxine.theme.mo
49
%%NLS%%share/locale/zh_CN/LC_MESSAGES/gxine.mo
50
share/locale/zh_CN/LC_MESSAGES/gxine.mo
50
%%NLS%%share/locale/zh_CN/LC_MESSAGES/gxine.theme.mo
51
share/locale/zh_CN/LC_MESSAGES/gxine.theme.mo
51
share/pixmaps/gxine.png
52
share/pixmaps/gxine.png
52
@dirrm %%DATADIR%%/pixmaps
53
@dirrm %%DATADIR%%/pixmaps
53
@dirrm %%DATADIR%%
54
@dirrm %%DATADIR%%
Lines 58-61 Link Here
58
@dirrmtry man/de
59
@dirrmtry man/de
59
@dirrm lib/gxine
60
@dirrm lib/gxine
60
%%MOZILLA_PLUGIN%%@dirrmtry lib/browser_plugins
61
%%MOZILLA_PLUGIN%%@dirrmtry lib/browser_plugins
61
@dirrm etc/gxine
62
@dirrm %%ETCDIR%%

Return to bug 168042