source: trunk/dports/www/midori/Portfile

Last change on this file was 144287, checked in by afb@…, 21 months ago

midori: changed my mind

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144287 2016-01-06 00:04:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                midori
7version             0.5.11
8
9categories          www
10platforms           darwin
11license             MIT
12maintainers         afb openmaintainer
13
14description         Midori is a lightweight, Webkit-Gtk based web browser
15long_description    ${description}
16
17homepage            http://midori-browser.org
18master_sites        http://midori-browser.org/downloads
19use_bzip2           yes
20
21distname            midori_${version}_all_
22worksrcdir          midori-${version}
23
24checksums           rmd160  66aaf624d39fbb86c1bec42972fba7998965ef50 \
25                    sha256  96191a96be71144ae848a409fae5a1d6d52a00e583f33122081f47ead9c49c3d
26
27depends_build       port:cmake \
28                    port:pkgconfig \
29                    port:intltool
30
31depends_lib         port:desktop-file-utils \
32                    port:gtk2 \
33                    path:include/gio/gio.h:glib2 \
34                    port:gcr \
35                    port:librsvg \
36                    port:libsoup \
37                    port:libxml2 \
38                    port:sqlite3 \
39                    port:vala \
40                    port:xorg-libXScrnSaver \
41                    port:zeitgeist
42
43# Not autoconf
44configure.universal_args-delete --disable-dependency-tracking
45
46platform darwin {
47    if {${configure.cxx_stdlib} eq "libstdc++"} {
48        depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
49    } else {
50        depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
51    }
52
53    post-destroot {
54        # TODO: Fix the build system
55        system "install_name_tool -id ${prefix}/lib/libmidori-core.1.dylib ${destroot}${prefix}/lib/libmidori-core.1.dylib"
56        system "install_name_tool -change libmidori-core.1.dylib ${prefix}/lib/libmidori-core.1.dylib ${destroot}${prefix}/bin/midori"
57
58        foreach file [glob ${destroot}${prefix}/lib/midori/*.so] {
59            system "install_name_tool -change libmidori-core.1.dylib ${prefix}/lib/libmidori-core.1.dylib ${file}"
60        }
61    }
62}
63
64post-activate {
65    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
66    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
67}
68
69livecheck.url       ${homepage}/download/source/
70livecheck.regex     ${name}_(\[0-9.\]*)_all_\.tar\.bz2
71livecheck.type      regex
Note: See TracBrowser for help on using the repository browser.