Ticket #48131: oxygengtk2.diff
File oxygengtk2.diff, 3.9 KB (added by RJVB (René Bertin), 9 years ago) |
---|
-
oxygen-gtk2/Portfile
old new 1 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 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 137819 2015-06-20 19:26:29Z mk@macports.org$3 # $Id: Portfile Thu Jun 5 12:10:38 UTC 2014 rjvbertin@gmail.com $ 4 4 5 5 PortSystem 1.0 6 PortGroup cmake 1.0 6 7 PortGroup muniversal 1.0 7 8 8 9 name oxygen-gtk2 9 10 subport oxygen-gtk3 {} 11 revision 1 10 12 11 13 categories x11 gtk 12 14 … … 26 28 maintainers gmail.com:rjvbertin 27 29 28 30 homepage http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216 31 default master_sites {"kde:stable/${subport}/${version}/src/ 32 ftp://ftp.kde.org/pub/kde/stable/${subport}/${version}/src"} 33 default distname {${subport}-${version}} 29 34 30 35 if {${subport} eq "oxygen-gtk3"} { 31 36 version 1.4.1 32 distname ${subport}-${version}33 37 34 PortGroup cmake 1.035 cmake.out_of_source yes36 37 master_sites kde:stable/${subport}/${version}/src/ \38 ftp://ftp.kde.org/pub/kde/stable/${subport}/${version}/src39 38 livecheck.regex "oxygen-gtk3 - version.*(1\\.\\d+?(\\.\\d+))" 40 39 41 40 checksums rmd160 3279bfd21840cd4c7fa85e4d411c2a962cffa9e3 \ … … 45 44 } else { 46 45 version 1.4.5 47 46 48 PortGroup cmake 1.049 cmake.out_of_source yes50 51 master_sites kde:stable/${name}/${version}/src/ \52 ftp://ftp.kde.org/pub/kde/stable/${name}/${version}/src53 47 livecheck.regex "Oxygen Gtk.*(1\\.\\d+?(\\.\\d+))" 54 48 55 49 checksums rmd160 51360c2b16887b22d093e29fea3456210d92e335 \ … … 68 62 path:lib/pkgconfig/cairo.pc:cairo \ 69 63 port:dbus 70 64 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 } 65 cmake.out_of_source yes 66 67 post-patch { 68 # build the engine as a shared module (= bundle), which means cmake will give it the .so extension 69 # which is what GTk expects. 70 # Cf. BKO #349475 (oxygen-gtk2) and BKO #349476 (oxygen-gtk3) 71 reinplace "s|add_library(.*oxygen-gtk.*SHARED|add_library(oxygen-gtk MODULE|g" ${worksrcpath}/src/CMakeLists.txt 89 72 }