1 # Created by: Grigori Goronzy <greg@chown.ath.cx>
8 MASTER_SITES= SF/xine/${PORTNAME}/${PORTVERSION}
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Alternative GUI for the Xine media player
15 LIB_DEPENDS= libnspr4.so:devel/nspr \
16 libmozjs185.so:lang/spidermonkey185 \
17 libxine.so:multimedia/libxine
19 USES= desktop-file-utils gmake libtool pathfix pkgconfig tar:xz
22 CONFIGURE_ARGS= --without-hal --with-libintl-prefix=${LOCALBASE}
25 CPPFLAGS+= -I${LOCALBASE}/include
26 LDFLAGS+= -L${LOCALBASE}/lib -lm
28 OPTIONS_DEFINE= GNOME LIRC WEBPLUGIN
31 GNOME_BUILD_DEPENDS= gnome-screensaver:x11/gnome-screensaver
32 GNOME_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib
33 GNOME_RUN_DEPENDS= gnome-screensaver:x11/gnome-screensaver
34 GNOME_CONFIGURE_ON= --with-dbus
35 GNOME_CONFIGURE_OFF= --disable-integration-wizard --without-dbus
36 LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc
37 LIRC_CONFIGURE_ON= --enable-lirc
38 LIRC_CONFIGURE_OFF= --disable-lirc
39 WEBPLUGIN_DESC= Build and/or install Web browser plugins
40 WEBPLUGIN_USE= xorg=xaw
41 WEBPLUGIN_USES= webplugin:native
42 WEBPLUGIN_CONFIGURE_OFF= --without-browser-plugin
44 .include <bsd.port.options.mk>
46 .if ${PORT_OPTIONS:MWEBPLUGIN}
47 WEBPLUGIN_DIR= ${PREFIX}/lib/gxine
48 WEBPLUGIN_FILES=gxineplugin.so
52 @${REINPLACE_CMD} -e \
53 '/CFLAGS/s|-I/usr/local/include|| ; \
54 /CFLAGS/s|-L/usr/local/lib|| ; \
55 /CPPFLAGS/s|-I/usr/local/include|| ; \
56 s|XINE_LIST=.*|XINE_LIST=|' ${WRKSRC}/configure
57 @${REINPLACE_CMD} -e \
58 's|@MAKE_PNG_TRUE@|#|' ${WRKSRC}/pixmaps/Makefile.in
61 .if ${PORT_OPTIONS:MWEBPLUGIN}
62 @${STRIP_CMD} ${STAGEDIR}${WEBPLUGIN_DIR}/${WEBPLUGIN_FILES}
65 .include <bsd.port.mk>