Ticket #26410: patch-wxwidgets-devel-v2.9.1.diff
File patch-wxwidgets-devel-v2.9.1.diff, 7.4 KB (added by pixilla (Bradley Giesbrecht), 14 years ago) |
---|
-
files/patch-configure.diff
1 --- ../configure.orig 2010-09-08 09:06:52.000000000 -0700 2 +++ ../configure 2010-09-08 11:17:45.000000000 -0700 3 @@ -34965,7 +34965,7 @@ 4 *-*-darwin* ) 5 install_name_tool=`which ${HOST_PREFIX}install_name_tool` 6 if test "$install_name_tool" -a -x "$install_name_tool"; then 7 - DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" 8 + DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id ${libdir}/\$(notdir \$@) \$@" 9 cat <<EOF >change-install-names 10 #!/bin/sh 11 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` -
Portfile
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 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name wxWidgets-devel 6 version 2.9.0 7 revision 2 8 categories graphics devel 9 platforms darwin 10 maintainers jwa mww 11 description mature cross-platform C++ GUI framework 12 long_description wxWidgets is a mature open-source cross-platform C++ \ 13 GUI framework for Mac OS, Unix, Linux, Windows. It can \ 14 make use of a variety of native widget sets as well as \ 15 its own widget set: Mac OS, GTK+, Motif, WIN32. \ 16 wxWidgets will even run on embedded systems using \ 17 Linux and X11. 6 name wxWidgets-devel 7 version 2.9.1 8 categories graphics devel 9 platforms darwin 10 maintainers jwa mww 11 description mature cross-platform C++ GUI framework 12 long_description wxWidgets is a mature open-source cross-platform C++ \ 13 GUI framework for Mac OS, Unix, Linux, Windows. It can \ 14 make use of a variety of native widget sets as well as \ 15 its own widget set: Mac OS, GTK+, Motif, WIN32. \ 16 wxWidgets will even run on embedded systems using \ 17 Linux and X11. 18 18 19 homepage http://www.wxwidgets.org/ 20 distname wxWidgets 21 master_sites http://biolpc22.york.ac.uk/pub/CVS_HEAD/v2/files/ \ 22 http://biolpc22.york.ac.uk/pub/${version}/ \ 23 ftp://ftp.wxwidgets.org/pub/${version} 24 use_bzip2 yes 19 homepage http://www.wxwidgets.org/ 20 distname wxWidgets 21 master_sites sourceforge:wxwindows 25 22 26 distfiles ${distname}-${version}${extract.suffix} 27 dist _subdir ${distname}/${version}23 use_bzip2 yes 24 distfiles ${distname}-${version}${extract.suffix} 28 25 29 checksums ${distname}-${version}${extract.suffix} \ 30 md5 09058928eeb72853142c062bdec056ce \ 31 ${distname}-${version}${extract.suffix} \ 32 sha1 0e14fa85637d07a93a22d4d6a01871cc0e9e31b7 \ 33 ${distname}-${version}${extract.suffix} \ 34 rmd160 72d91bfa5fdd2ffafcce50d4440d8fba37ab8872 26 checksums sha1 3ffe0614acce46448f5c14942176fb2daa6efd00 \ 27 rmd160 106f5b0238e31e12bbede7f1c2cf0e0134076e29 35 28 36 depends_lib 37 port:tiff \38 port:libpng \39 port:zlib \40 port:libiconv \41 port:expat \42 path:lib/pkgconfig/sdl.pc:libsdl \43 port:libsdl_mixer29 depends_lib port:jpeg \ 30 port:tiff \ 31 port:libpng \ 32 port:zlib \ 33 port:libiconv \ 34 port:expat \ 35 path:lib/pkgconfig/sdl.pc:libsdl \ 36 port:libsdl_mixer 44 37 45 #set worksrcdir build 46 set worksrcdir ${distname}-${version}/build 38 set worksrcdir ${distname}-${version}/osx-build 47 39 48 extract.only 40 extract.only ${distname}-${version}${extract.suffix} 49 41 50 set sub wx-devel 51 configure.cmd ../configure 52 configure.ldflags -L${build.dir}/lib -L${prefix}/lib 53 configure.args --mandir=${prefix}/share/man \ 54 --libdir=${prefix}/lib/${sub} \ 55 --bindir=${prefix}/lib/${sub}/bin \ 56 --includedir=${prefix}/include/${sub} \ 57 --datadir=${prefix}/share/${sub} \ 58 --with-libiconv-prefix=${prefix} \ 59 --with-libjpeg \ 60 --with-libtiff \ 61 --with-libpng \ 62 --with-zlib \ 63 --with-sdl \ 64 --with-opengl \ 65 --with-mac \ 66 --disable-sdltest \ 67 --enable-unicode \ 68 --enable-display \ 69 --enable-monolithic \ 70 --with-macosx-version-min=${macosx_deployment_target} 42 post-extract { 43 xinstall -d -m 755 ${worksrcpath} 44 } 45 46 patchfiles patch-configure.diff 47 48 set sub wx-devel 49 configure.cmd ../configure 50 configure.ldflags -L${build.dir}/lib -L${prefix}/lib 51 configure.args --mandir=${prefix}/share/man \ 52 --libdir=${prefix}/lib/${sub} \ 53 --bindir=${prefix}/lib/${sub}/bin \ 54 --includedir=${prefix}/include/${sub} \ 55 --datadir=${prefix}/share/${sub} \ 56 --with-libiconv-prefix=${prefix} \ 57 --with-libjpeg \ 58 --with-libtiff \ 59 --with-libpng \ 60 --with-zlib \ 61 --with-sdl \ 62 --with-opengl \ 63 --with-mac \ 64 --disable-sdltest \ 65 --enable-unicode \ 66 --enable-display \ 67 --enable-monolithic \ 68 --with-macosx-version-min=${macosx_deployment_target} 69 71 70 if {$build_arch == "x86_64" || $build_arch == "ppc64"} { 72 71 # default carbon won't work on 64-bit 73 72 configure.args-delete --with-mac … … 75 74 patchfiles-append patch-textctrl.diff 76 75 } 77 76 78 set installtype release79 #set contrib "gizmos stc ogl"80 81 build.target82 83 #post-build {84 # foreach c { ${contrib} } {85 # system "cd ${build.dir} && make -C contrib/src/${c}"86 # }87 #}88 89 post-destroot {90 # foreach c { ${contrib} } {91 # system "cd ${destroot.dir} && make -C contrib/src/${c} install ${destroot.destdir}"92 # }93 xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}94 # xinstall -m 644 -W ${workpath}/${distname}-${version} \95 # install-mac.txt install-mgl.txt install-motif.txt \96 # INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \97 # readme-gtk.txt readme-mac.txt \98 # readme-mgl.txt readme-motif.txt readme-x11.txt \99 # ${destroot}${prefix}/share/doc/${name}100 if {$build_arch == "x86_64" || $build_arch == "ppc64"} {101 reinplace "s|-L${build.dir}/lib||" ${destroot}${prefix}/lib/${sub}/wx/config/osx_cocoa-unicode-${installtype}-2.9102 } else {103 reinplace "s|-L${build.dir}/lib||" ${destroot}${prefix}/lib/${sub}/wx/config/osx_carbon-unicode-${installtype}-2.9104 }105 }106 107 77 variant nonmonolithic description {build libraries separately} { 108 78 configure.args-delete --enable-monolithic 109 79 } 110 80 111 81 variant debug description {add debug info to libraries} { 112 82 configure.args-append --enable-debug 113 set installtype debug114 83 } 115 84 116 livecheck.type 117 livecheck.url http://biolpc22.york.ac.uk/pub/118 livecheck.regex (2.\[0-9\]+.\[0-9\]+-rc\[0-9\])/85 livecheck.type regex 86 livecheck.url http://sourceforge.net/projects/wxwindows/files/ 87 livecheck.regex ${distname}-(\[0-9\]+\.\[0-9\]+\.\[0-9\]+)${extract.suffix}