summaryrefslogtreecommitdiffstats
path: root/multimedia/totem/Makefile
blob: ea23f4d4ebd3e17c85f6081015d238bba443c5ea (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Created by: Hendrik Scholz <hendrik@scholz.net>
# $FreeBSD$
#   $MCom: ports/trunk/multimedia/totem/Makefile 19804 2014-08-13 14:55:11Z kwm $

PORTNAME=   totem
PORTVERSION=    3.12.1
CATEGORIES= multimedia gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Gstreamer-based video player for the GNOME 3 Desktop

BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
        ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme \
        appdata-tools>=0:${PORTSDIR}/devel/appdata-tools \
        itstool:${PORTSDIR}/textproc/itstool \
        grilo-plugins>=0:${PORTSDIR}/net/grilo-plugins
LIB_DEPENDS=    libgdata.so.13:${PORTSDIR}/devel/libgdata \
        libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
        libclutter-gst-2.0.so:${PORTSDIR}/multimedia/clutter-gst \
        libclutter-gtk-1.0.so:${PORTSDIR}/graphics/clutter-gtk3 \
        libpeas-1.0.so:${PORTSDIR}/devel/libpeas \
        libtotem-plparser.so:${PORTSDIR}/multimedia/totem-pl-parser
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
        ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme \
        gnome-settings-daemon>=2.91.0:${PORTSDIR}/sysutils/gnome-settings-daemon \
        gnome-icon-theme-symbolic>=2.91.0:${PORTSDIR}/x11-themes/gnome-icon-theme-symbolic \
        grilo-plugins>=0:${PORTSDIR}/net/grilo-plugins

USES=       desktop-file-utils gettext gmake pathfix pkgconfig \
        python:3 shebangfix tar:xz
USE_GNOME=  gnomehier gnomeprefix gtk30 intlhack introspection:build \
        libxml2 nautilus3 py3gobject3
USE_XORG=   x11 xproto xtst ice sm
USE_GSTREAMER1= core good bad soup ugly
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
PKGMESSAGE= ${WRKDIR}/pkg-message
CPPFLAGS+=  -I${LOCALBASE}/include -Wno-error=format-nonliteral
CFLAGS+=    -I${LOCALBASE}/include -Wno-error=format-nonliteral
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  LIBS="-lXrandr"
CONFIGURE_ARGS= --with-plugins="${TOTEM_PLUGINS}"
SHEBANG_FILES=  data/totem-bugreport.py
CONFIGURE_ENV+= APPDATA_VALIDATE="${LOCALBASE}/bin/appdata-validate --nonet"
MAKE_ENV=   XDG_CACHE_HOME=${WRKDIR}
INSTALL_TARGET= install-strip

GLIB_SCHEMAS=   org.gnome.totem.enums.xml \
        org.gnome.totem.gschema.xml \
        org.gnome.totem.plugins.opensubtitles.gschema.xml

OPTIONS_DEFINE= LIRC BROWSER_PLUGINS
BROWSER_PLUGINS_DESC=   Web browser plugins

PLIST_SUB+= PYVER=${PYTHON_VER:S/.//}

OPTIONS_DEFAULT=BROWSER_PLUGINS

# check configure script for allowed_plugins="..." for new plugins
TOTEM_PLUGINS=  brasero-disc-recorder chapters dbusservice im-status grilo gromit \
        iplayer media-player-keys ontop opensubtitles properties \
        screensaver screenshot sidebar-test skipto youtube

# pythonconsole samplepython
# vala rotation sample-vala
# nautilus save-file
# iplayer zeitgeist-dp grilo

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLIRC}
LIB_DEPENDS+=   liblirc_client.so:${PORTSDIR}/comms/lirc
PLIST_SUB+= LIRC=""
TOTEM_PLUGINS:= ${TOTEM_PLUGINS} lirc
.else
PLIST_SUB+= LIRC="@comment "
.endif

.if ${PORT_OPTIONS:MBROWSER_PLUGINS}
CONFIGURE_ARGS+=--enable-browser-plugins \
        --enable-gmp-plugin \
        --enable-narrowspace-plugin
PLIST_SUB+= BROWSER_PLUGINS=""

USES+=      webplugin:native
WEBPLUGIN_FILES=    libtotem-cone-plugin.so libtotem-gmp-plugin.so \
            libtotem-mully-plugin.so \
            libtotem-narrowspace-plugin.so
CONFIGURE_ENV+= BROWSER_PLUGIN_DIR="${WEBPLUGIN_DIR}"

.else
CONFIGURE_ARGS+=--disable-browser-plugins \
        --disable-basic-plugin \
        --disable-gmp-plugin \
        --disable-narrowspace-plugin
PLIST_SUB+= BROWSER_PLUGINS="@comment "
.endif

.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
DEFAULT_DVD_DEVICE=/dev/cd0
.endif

pre-everything::
    @${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
    @${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
    @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"

post-patch:
    @${CP} -f ${FILESDIR}/pkg-message.in ${PKGMESSAGE}

.include <bsd.port.mk>