| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
|---|
| 2 | # kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4; |
|---|
| 3 | # $Id: Portfile Thu Jun 5 12:10:38 UTC 2014 rjvbertin@gmail.com $ |
|---|
| 4 | |
|---|
| 5 | PortSystem 1.0 |
|---|
| 6 | PortGroup muniversal 1.0 |
|---|
| 7 | |
|---|
| 8 | name oxygen-gtk2 |
|---|
| 9 | subport oxygen-gtk3 {} |
|---|
| 10 | |
|---|
| 11 | categories x11 gtk |
|---|
| 12 | |
|---|
| 13 | description Oxygen-Gtk is a port of the default KDE widget theme (Oxygen) to GTk. |
|---|
| 14 | |
|---|
| 15 | long_description ${description} \n\ |
|---|
| 16 | Its primary goal is to ensure visual consistency between GTk and Qt-based \ |
|---|
| 17 | applications running under KDE. A secondary objective is to have a \ |
|---|
| 18 | stand-alone nice looking GTk theme that behaves well on other desktop \ |
|---|
| 19 | environments. \n\ |
|---|
| 20 | Unlike other attempts made to port the KDE Oxygen theme to GTk, this attempt \ |
|---|
| 21 | does not depend on Qt (via some Qt to GTk conversion engine), nor does it render \ |
|---|
| 22 | the widget appearance via hardcoded pixmaps. |
|---|
| 23 | |
|---|
| 24 | platforms darwin |
|---|
| 25 | license LGPL-2+ |
|---|
| 26 | maintainers gmail.com:rjvbertin |
|---|
| 27 | |
|---|
| 28 | homepage http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216 |
|---|
| 29 | |
|---|
| 30 | if {${subport} eq "oxygen-gtk3"} { |
|---|
| 31 | version 1.4.1 |
|---|
| 32 | distname ${subport}-${version} |
|---|
| 33 | |
|---|
| 34 | PortGroup cmake 1.0 |
|---|
| 35 | cmake.out_of_source yes |
|---|
| 36 | |
|---|
| 37 | master_sites kde:stable/${subport}/${version}/src/ \ |
|---|
| 38 | ftp://ftp.kde.org/pub/kde/stable/${subport}/${version}/src |
|---|
| 39 | livecheck.regex "oxygen-gtk3 - version.*(1\\.\\d+?(\\.\\d+))" |
|---|
| 40 | |
|---|
| 41 | checksums rmd160 3279bfd21840cd4c7fa85e4d411c2a962cffa9e3 \ |
|---|
| 42 | sha256 0e64227c85753a479904ecb41160cd06abf0a3da4a2cf33c11edf502bfe4a75d |
|---|
| 43 | |
|---|
| 44 | depends_lib-append port:gtk3 |
|---|
| 45 | } else { |
|---|
| 46 | version 1.4.5 |
|---|
| 47 | |
|---|
| 48 | PortGroup cmake 1.0 |
|---|
| 49 | cmake.out_of_source yes |
|---|
| 50 | |
|---|
| 51 | master_sites kde:stable/${name}/${version}/src/ \ |
|---|
| 52 | ftp://ftp.kde.org/pub/kde/stable/${name}/${version}/src |
|---|
| 53 | livecheck.regex "Oxygen Gtk.*(1\\.\\d+?(\\.\\d+))" |
|---|
| 54 | |
|---|
| 55 | checksums rmd160 51360c2b16887b22d093e29fea3456210d92e335 \ |
|---|
| 56 | sha256 5b6c826a9741c244dc41ff5412657b82f1f4f622e8cfc3f99e6d2aa714c1d303 |
|---|
| 57 | |
|---|
| 58 | depends_lib-append port:gtk2 |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | livecheck.type regex |
|---|
| 62 | livecheck.url ${homepage} |
|---|
| 63 | |
|---|
| 64 | use_bzip2 yes |
|---|
| 65 | |
|---|
| 66 | depends_build-append port:pkgconfig |
|---|
| 67 | depends_lib-append port:xorg-libX11 \ |
|---|
| 68 | path:lib/pkgconfig/cairo.pc:cairo \ |
|---|
| 69 | port:dbus |
|---|
| 70 | |
|---|
| 71 | post-configure { |
|---|
| 72 | # Default libraries extension is ".dylib" on Darwin, not ".so", but gtk-engines must have a .so extension |
|---|
| 73 | # NB: replacing the extension post-destroot seems to work too, but this seems cleaner to me even if more complicated. |
|---|
| 74 | if {[variant_isset universal]} { |
|---|
| 75 | reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/build.make \ |
|---|
| 76 | ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \ |
|---|
| 77 | ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/link.txt \ |
|---|
| 78 | ${workpath}/build-x86_64/src/cmake_install.cmake |
|---|
| 79 | reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/build.make \ |
|---|
| 80 | ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \ |
|---|
| 81 | ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/link.txt \ |
|---|
| 82 | ${workpath}/build-i386/src/cmake_install.cmake |
|---|
| 83 | } else { |
|---|
| 84 | reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/build.make \ |
|---|
| 85 | ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \ |
|---|
| 86 | ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/link.txt \ |
|---|
| 87 | ${workpath}/build/src/cmake_install.cmake |
|---|
| 88 | } |
|---|
| 89 | } |
|---|