source: users/devans/GNOME-3/stable/dports/gnome/totem/Portfile @ 118155

Last change on this file since 118155 was 118155, checked in by devans@…, 7 years ago

GNOME-3/stable: copy/merge unstable ports to stable in preparation for 3.12 stable release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 118155 2014-03-23 22:58:46Z devans@macports.org $
3
4PortSystem      1.0
5
6name            totem
7version         3.11.91
8set branch      [join [lrange [split ${version} .] 0 1] .]
9categories      gnome
10# also has an exception allowing use of non-GPL-compatible plugins
11license         GPL-2+
12maintainers     devans openmaintainer
13description     Official movie player of the GNOME desktop environment
14long_description \
15                Totem is based on GStreamer. It features a \
16                playlist, a full-screen mode, seek and volume controls, \
17                as well as keyboard navigation. It comes with added \
18                functionality such as: \
19                    * Video thumbnailer for the file manager \
20                    * Nautilus properties tab \
21                    * Webcam utility (in development)
22
23homepage        https://wiki.gnome.org/Apps/Videos
24platforms       darwin
25master_sites    gnome:sources/${name}/${branch}/
26
27use_xz          yes
28
29checksums       rmd160  3c24c9f1ce123b20cfe2efc554fbb85760280bd1 \
30                sha256  913ac2d77e0fe6899a795247c6445bdc504dc5263f0c36b7e4fe27c6f3bd62f2
31
32depends_build   port:pkgconfig \
33                port:intltool \
34                port:itstool \
35                port:gnome-common \
36                port:yelp-tools \
37                port:appdata-tools
38
39depends_lib     port:desktop-file-utils \
40                port:gnome-icon-theme \
41                port:gnome-icon-theme-symbolic \
42                port:gsettings-desktop-schemas \
43                port:gtk3 \
44                port:gobject-introspection \
45                port:grilo-plugins \
46                port:gstreamer1-gst-plugins-base \
47                port:gstreamer1-gst-plugins-good \
48                port:gstreamer1-gst-plugins-bad \
49                port:gstreamer1-gst-libav \
50                port:clutter \
51                port:clutter-gtk \
52                port:clutter-gst \
53                port:totem-pl-parser \
54                port:libpeas \
55                port:libxml2 \
56                port:shared-mime-info \
57                port:dbus \
58                port:xorg-libX11 \
59                port:xorg-libsm \
60                port:xorg-libice
61
62depends_run     port:gnome-settings-daemon \
63                port:yelp
64
65# update m4/intltool.m4 and autoreconf
66
67pre-configure {
68    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
69}
70
71use_autoreconf  yes
72autoreconf.args -fvi
73
74configure.cflags-append \
75                -Wno-error=format-nonliteral
76
77configure.args  --with-plugins=apple-trailers,autoload-subtitles,chapters,dbusservice,im-status,grilo,gromit,media-player-keys,ontop,opensubtitles,properties,recent,skipto \
78                --enable-easy-codec-installation \
79                --enable-browser-plugins=no \
80                --enable-introspection=yes \
81                --enable-debug \
82                --disable-python \
83                --disable-vala \
84                --disable-nautilus \
85                --disable-schemas-compile \
86                --disable-silent-rules
87
88# gobject-introspection uses g-ir-scanner, which uses $CC from env
89build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
90destroot.args-append    CC="${configure.cc} ${configure.cc_archflags}"
91
92variant nautilus description {Build nautilus properties page plugin} {
93    configure.args-delete     --disable-nautilus
94    depends_lib-append        port:nautilus
95}
96
97variant python27 description {Use python 2.7} {
98    configure.python          ${prefix}/bin/python2.7
99    depends_lib-append        port:py27-gobject3
100    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
101    configure.pkg_config_path ${python_framework}/lib/pkgconfig
102    configure.env              PATH=${python_framework}/bin:$env(PATH)
103}
104
105default_variants +python27
106
107post-activate {
108    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
109    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
110    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
111}
112
113livecheck.type  gnome-with-unstable
Note: See TracBrowser for help on using the repository browser.