Ticket #19241: Portfile-lablgtk2.diff
File Portfile-lablgtk2.diff, 2.5 KB (added by thomas.hutchinson@…, 16 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name lablgtk2 6 version 2.1 0.16 version 2.12.0 7 7 categories x11 8 8 maintainers pguyot@kallisys.net openmaintainer 9 9 description Objective Caml interface to gtk+ 2.x … … 16 16 platforms darwin 17 17 master_sites http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ 18 18 distname lablgtk-${version} 19 checksums md5 bd7073ca05e684e5d5a3d553371fd6e5\20 sha1 6c6f273951059fc86b89337a5b10dfb866ca5f87\21 rmd160 5dda1a7d5438ae57fb8c170b6459393c4af872a219 checksums md5 0e253128afee3cdc6e9b43c34b35984d \ 20 sha1 fe3a6499bf28be21d723e379e2e9a4d7b4798baa \ 21 rmd160 b64f17545e797d5b94e7d23ed02d6ef751485803 22 22 depends_lib bin:camlp4:ocaml \ 23 23 lib:libgtk.2:gtk2 \ 24 24 lib:libglade-2:libglade2 \ … … 26 26 lib:libgnomeui:libgnomeui 27 27 configure.args --without-gl --without-rsvg --with-glade \ 28 28 --with-gnomecanvas --with-gnomeui --without-panel \ 29 --without-gtkspell --without-gtksourceview 29 --without-gtkspell --without-gtksourceview \ 30 --without-quartz 30 31 build.target world 31 32 33 if {![variant_isset quartz]} { 34 default_variants +x11 35 } 36 37 pre-fetch { 38 if {![variant_isset quartz] && ![variant_isset x11]} { 39 error "Either +x11 or +quartz is required" 40 } 41 } 42 43 pre-configure { 44 if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} { 45 set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] 46 set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] 47 if {[variant_isset quartz] && ${gtk_not_quartz}} { 48 error "+quartz variant selected, but gtk2+x11 is installed" 49 } elseif {[variant_isset x11] && ${gtk_not_x11}} { 50 error "+x11 variant selected, but gtk2+quartz is installed" 51 } 52 } else { 53 error "Cannot find gdkconfig.h" 54 } 55 } 56 32 57 variant rsvg description "enable rsvg support" { 33 58 configure.args-delete --without-rsvg 34 59 configure.args-append --with-rsvg … … 41 66 depends_lib-append port:gtksourceview 42 67 } 43 68 69 variant x11 conflicts quartz description {Enable rendering in X11 (default)} { 70 } 71 72 variant quartz conflicts x11 description "Enable Quartz rendering" { 73 configure.args-delete --without-quartz 74 configure.args-append --with-quartz 75 } 76 44 77 livecheck.check regex 45 78 livecheck.regex {<DT> <a href="dist/lablgtk-(2.*?).tar.gz">lablgtk-\1.tar.gz</a>}