# -*- 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 # $Id$ PortSystem 1.0 name midori version 0.4.7 revision 1 set branch [join [lrange [split ${version} .] 0 1] .] categories www platforms darwin license MIT maintainers afb openmaintainer description Midori is a lightweight, Webkit-Gtk based web browser long_description ${description} homepage http://www.twotoasts.de/index.php?/pages/midori_summary.html master_sites http://archive.xfce.org/src/apps/midori/${branch} use_bzip2 yes checksums rmd160 72b0cf1290ed2a6c5e306b9b2dbb1ad4ce565860 \ sha256 65bf9976733597c405492ce91aa664fd10547cb7df16e0a70f260c7a3e97ea5d patchfiles patch-wscript.diff depends_build port:pkgconfig \ port:intltool # glib 2.16.5 or later is required: depends_lib port:gtk2 \ path:include/gio/gio.h:glib2 \ path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk\ port:libxml2 \ port:libunique \ port:libnotify \ port:vala platform darwin { set cxx_stdlib {} if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} { set cxx_stdlib ${configure.cxx_stdlib} } elseif {[string match *clang* ${configure.cxx}] && ${os.major} >= 13} { set cxx_stdlib libc++ } else { set cxx_stdlib libstdc++ } if {${cxx_stdlib} == "libstdc++"} { depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0 } } # Not autoconf configure.env-append LINKFLAGS="-L${prefix}/lib" configure.universal_args-delete --disable-dependency-tracking platform darwin { configure.env-append PYTHON=/usr/bin/python patchfiles-append patch-extensions-wscript_build.diff \ patch-wscript-darwin-options.diff } variant quartz description {Disable libnotify support (doesn't work with gtk2+quartz)} { depends_lib-delete port:libnotify configure.args-append --disable-libnotify } livecheck.url ${homepage} livecheck.regex ${name}-(\[0-9.a-z\]*)\.tar\.bz2 livecheck.type regexm