Ticket #24350: wxWidgets_Portfile.diff
File wxWidgets_Portfile.diff, 3.2 KB (added by jjstickel@…, 14 years ago) |
---|
-
graphics/wxWidgets/Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2 1 2 # $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $ 2 3 3 4 PortSystem 1.0 … … 6 7 name wxWidgets 7 8 epoch 2 8 9 version 2.8.9 9 revision 210 revision 3 10 11 categories graphics devel 11 12 platforms darwin 12 13 maintainers mww jwa … … 31 32 sha1 5ad687f8c8d5a9ef6acfa1b8ba0376f86fb07406 \ 32 33 rmd160 d0f1a07cecae6645b0367decf9a6dbe463fa4505 33 34 35 conflicts wxgtk wxWidgets-python 34 36 35 37 depends_lib port:jpeg \ 36 38 port:tiff \ … … 55 57 extract.only ${distname}-${version}${extract.suffix} 56 58 57 59 #patchfiles patch-chkconf.diff patch-TECConvertText.diff 58 patchfiles patch-chkconf.diff 60 patchfiles patch-chkconf.diff changeset_r61009.diff 59 61 60 62 #configure.cmd ../${distname}-${version}/configure 61 63 configure.cmd ../configure … … 68 70 --with-zlib \ 69 71 --with-sdl \ 70 72 --with-opengl \ 71 --with-mac \72 73 --disable-sdltest \ 73 74 --enable-unicode \ 74 75 --enable-display \ … … 82 83 universal_variant no 83 84 use_parallel_build no 84 85 85 if {$build_arch == "x86_64"} { 86 configure.build_arch i386 87 } elseif {$build_arch == "ppc64"} { 88 configure.build_arch ppc 86 variant carbon conflicts gtk description {use carbon} { 87 configure.args-append --with-mac 88 if {$build_arch == "x86_64"} { 89 configure.build_arch i386 90 } elseif {$build_arch == "ppc64"} { 91 configure.build_arch ppc 92 } 93 if {![info exists configure.ld_archflags]} { 94 eval configure.ldflags-append ${configure.cc_archflags} 95 } 89 96 } 90 if {![info exists configure.ld_archflags]} { 91 eval configure.ldflags-append ${configure.cc_archflags} 97 variant gtk conflicts carbon description {use gtk} { 98 depends_lib-append port:gtk2 99 depends_lib-delete path:lib/pkgconfig/sdl.pc:libsdl 100 depends_lib-delete port:libsdl_mixer 101 configure.args-delete --with-sdl 102 configure.args-append --with-gtk 103 } 104 if {![variant_isset gtk]} { 105 default_variants-append +carbon 106 } 107 post-configure { 108 if {[variant_isset gtk]} { 109 # for some reason, 'configure --with-gtk' does not specify to link the X11 opengl libs 110 # not sure what happens if quartz variant of gtk2 is used 111 reinplace "s|EXTRALIBS_OPENGL = |EXTRALIBS_OPENGL = -lGL -lGLU -lglut|g" ${worksrcpath}/Makefile 112 } 92 113 } 93 114 94 115 post-build { … … 109 130 readme-gtk.txt readme-mac.txt \ 110 131 readme-mgl.txt readme-motif.txt readme-x11.txt \ 111 132 ${destroot}${prefix}/share/doc/${name} 112 set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8 133 if {[variant_isset carbon]} { 134 set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8 135 } 136 if {[variant_isset gtk]} { 137 set confscript ${prefix}/lib/wx/config/gtk2-unicode-${installtype}-2.8 138 } 113 139 reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript} 114 140 ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config 115 141 }