Tweak multimedia/mlt version 6.4.1_2
[dports.git] / multimedia / gxine / Makefile
1 # Created by: Grigori Goronzy <greg@chown.ath.cx>
2 # $FreeBSD$
3
4 PORTNAME=       gxine
5 PORTVERSION=    0.5.908
6 PORTREVISION=   4
7 CATEGORIES=     multimedia
8 MASTER_SITES=   SF/xine/${PORTNAME}/${PORTVERSION}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Alternative GUI for the Xine media player
12
13 LICENSE=        GPLv2
14
15 LIB_DEPENDS=    libnspr4.so:devel/nspr \
16                 libmozjs185.so:lang/spidermonkey185 \
17                 libxine.so:multimedia/libxine
18
19 USES=           desktop-file-utils gmake libtool pathfix pkgconfig tar:xz
20 USE_GNOME=      gtk20
21 GNU_CONFIGURE=  yes
22 CONFIGURE_ARGS= --without-hal --with-libintl-prefix=${LOCALBASE}
23 INSTALLS_ICONS= yes
24
25 CPPFLAGS+=      -I${LOCALBASE}/include
26 LDFLAGS+=       -L${LOCALBASE}/lib -lm
27
28 OPTIONS_DEFINE=         GNOME LIRC WEBPLUGIN
29 OPTIONS_SUB=            yes
30
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
43
44 .include <bsd.port.options.mk>
45
46 .if ${PORT_OPTIONS:MWEBPLUGIN}
47 WEBPLUGIN_DIR=  ${PREFIX}/lib/gxine
48 WEBPLUGIN_FILES=gxineplugin.so
49 .endif
50
51 post-patch:
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
59
60 post-install:
61 .if ${PORT_OPTIONS:MWEBPLUGIN}
62         @${STRIP_CMD} ${STAGEDIR}${WEBPLUGIN_DIR}/${WEBPLUGIN_FILES}
63 .endif
64
65 .include <bsd.port.mk>