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 116705 2014-02-04 15:41:48Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name grilo |
---|
7 | version 0.2.7 |
---|
8 | license LGPL-2.1 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description Framework for discovering and browsing media. |
---|
11 | long_description Grilo is a framework for browsing and searching media \ |
---|
12 | content from various sources using a single API. |
---|
13 | |
---|
14 | maintainers gmail.com:juanrgar openmaintainer |
---|
15 | categories gnome |
---|
16 | platforms darwin |
---|
17 | homepage https://wiki.gnome.org/Projects/Grilo |
---|
18 | master_sites gnome:sources/${name}/${branch}/ |
---|
19 | |
---|
20 | use_xz yes |
---|
21 | |
---|
22 | checksums rmd160 c5c387028efc16eb663335afc38776037eefb838 \ |
---|
23 | sha256 4a854ee6f9a220f05e696813949be94780c12a7fb281253f10a545f30ed596d8 |
---|
24 | |
---|
25 | depends_build port:pkgconfig \ |
---|
26 | port:intltool \ |
---|
27 | port:gnome-common |
---|
28 | |
---|
29 | depends_lib port:glib2 \ |
---|
30 | port:libxml2 \ |
---|
31 | port:liboauth \ |
---|
32 | port:gobject-introspection |
---|
33 | |
---|
34 | configure.args --enable-introspection=yes \ |
---|
35 | --disable-silent-rules \ |
---|
36 | --disable-debug \ |
---|
37 | --enable-compile-warnings=no \ |
---|
38 | --disable-test-ui \ |
---|
39 | --disable-grl-net \ |
---|
40 | --disable-tests \ |
---|
41 | --disable-vala |
---|
42 | |
---|
43 | patchfiles patch-vala022-support.diff \ |
---|
44 | patch-remove-libdir-setting.diff |
---|
45 | |
---|
46 | # update m4/intltool.m4 and autoreconf |
---|
47 | |
---|
48 | post-patch { |
---|
49 | copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4 |
---|
50 | } |
---|
51 | |
---|
52 | use_autoreconf yes |
---|
53 | autoreconf.args -fvi |
---|
54 | |
---|
55 | destroot.keepdirs ${destroot}${prefix}/lib/grilo-0.2 |
---|
56 | |
---|
57 | variant vala description {Vala plugin support} { |
---|
58 | depends_lib-append port:vala |
---|
59 | |
---|
60 | configure.args-delete --disable-vala |
---|
61 | configure.args-append --enable-vala |
---|
62 | } |
---|
63 | |
---|
64 | variant net description {Enable Grilo Net library} { |
---|
65 | depends_lib-append port:libsoup |
---|
66 | |
---|
67 | configure.args-delete --disable-grl-net |
---|
68 | configure.args-append --enable-grl-net |
---|
69 | } |
---|
70 | |
---|
71 | default_variants +net +vala |
---|
72 | |
---|
73 | livecheck.type gnome |
---|