blob: 6c13cbd7887527ee21955e58caaaeea4e822d074 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: Grigori Goronzy <greg@chown.ath.cx>
# $FreeBSD$
PORTNAME= gxine
PORTVERSION= 0.5.907
PORTREVISION= 6
CATEGORIES= multimedia
MASTER_SITES= SF/xine/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Alternative GUI for the Xine media player
LICENSE= GPLv2
LIB_DEPENDS= libnspr4.so:${PORTSDIR}/devel/nspr \
libmozjs185.so:${PORTSDIR}/lang/spidermonkey185 \
libxine.so:${PORTSDIR}/multimedia/libxine
OPTIONS_DEFINE= MOZILLA_PLUGIN GNOME LIRC
MOZILLA_PLUGIN_DESC= Mozilla plugin
USES= gmake libtool pathfix pkgconfig tar:xz
USE_GNOME= gtk20
USE_AUTOTOOLS= libtool
CONFIGURE_ENV= MKDIR_P="${MKDIR}"
CONFIGURE_ARGS= --without-hal --with-libintl-prefix=${LOCALBASE}
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMOZILLA_PLUGIN}
USE_XORG+= xaw
USES+= webplugin:native
WEBPLUGIN_DIR= ${PREFIX}/lib/gxine
WEBPLUGIN_FILES=gxineplugin.so
PLIST_SUB+= MOZILLA_PLUGIN=""
.else
CONFIGURE_ARGS+=--without-browser-plugin
PLIST_SUB+= MOZILLA_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MGNOME}
BUILD_DEPENDS+= gnome-screensaver:${PORTSDIR}/x11/gnome-screensaver
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS+= gnome-screensaver:${PORTSDIR}/x11/gnome-screensaver
CONFIGURE_ARGS+=--with-dbus
.else
CONFIGURE_ARGS+=--disable-integration-wizard --without-dbus
.endif
.if ${PORT_OPTIONS:MLIRC}
LIB_DEPENDS+= liblirc_client.so:${PORTSDIR}/comms/lirc
CONFIGURE_ARGS+=--enable-lirc
.else
CONFIGURE_ARGS+=--disable-lirc
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/CFLAGS/s|-I/usr/local/include|| ; \
/CFLAGS/s|-L/usr/local/lib|| ; \
/CPPFLAGS/s|-I/usr/local/include|| ; \
s|XINE_LIST=.*|XINE_LIST=|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@MAKE_PNG_TRUE@|#|' ${WRKSRC}/pixmaps/Makefile.in
.include <bsd.port.mk>
|