Ticket #26410: combined_patch-wxwidgets-devel.diff
File combined_patch-wxwidgets-devel.diff, 8.1 KB (added by anddam (Andrea D'Amore), 13 years ago) |
---|
-
files/patch-configure-change_install_names.diff
1 --- configure.orig 2011-01-13 02:34:25.000000000 -0800 2 +++ configure 2011-01-13 02:33:45.000000000 -0800 3 @@ -34968,16 +34968,18 @@ 4 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" 5 cat <<EOF >change-install-names 6 #!/bin/sh 7 -libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` 8 -for i in \${libnames} ; do 9 - ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i} 10 - for dep in \${libnames} ; do 11 - ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i} 12 - done 13 +libnames=\`find -E \$4 -type f -a -regex '.*\.[0-9]+\.dylib' -exec basename '{}' \;\` 14 +changes='' 15 +for dep in \$libnames; do 16 + changes="\$changes -change \$4/\$dep \$3/\$dep" 17 done 18 +for i in \$libnames; do 19 + ${HOST_PREFIX}install_name_tool \$changes -id \$3/\$i \$1/\$i 20 +done 21 +${HOST_PREFIX}install_name_tool \$changes \$2/wxrc-2.9 22 EOF 23 chmod +x change-install-names 24 - DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib" 25 + DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" 26 fi 27 28 HEADER_PAD_OPTION="-headerpad_max_install_names" 29 --- configure.in.orig 2011-01-13 02:34:15.000000000 -0800 30 +++ configure.in 2011-01-13 02:32:44.000000000 -0800 31 @@ -3989,16 +3989,18 @@ 32 DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" 33 cat <<EOF >change-install-names 34 #!/bin/sh 35 -libnames=\`cd \${1} ; ls -1 | grep '\.[[0-9]][[0-9]]*\.dylib\$'\` 36 -for i in \${libnames} ; do 37 - ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i} 38 - for dep in \${libnames} ; do 39 - ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i} 40 - done 41 +libnames=\`find \$4 -type f -a -regex '.*\.[0-9]+\.dylib' -exec basename '{}' \;\` 42 +changes='' 43 +for dep in \$libnames; do 44 + changes="\$changes -change \$4/\$dep \$3/\$dep" 45 done 46 +for i in \$libnames; do 47 + ${HOST_PREFIX}install_name_tool \$changes -id \$3/\$i \$1/\$i 48 +done 49 +${HOST_PREFIX}install_name_tool \$changes \$2/wxrc-2.9 50 EOF 51 chmod +x change-install-names 52 - DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib" 53 + DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \${DESTDIR}\${bindir} \${libdir} \$(wx_top_builddir)/lib" 54 fi 55 56 dnl the HEADER_PAD_OPTION is required by some wx samples to avoid the error: -
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup archcheck 1.0 4 5 5 6 name wxWidgets-devel 7 conflicts wxgtk wxWidgets 6 8 version 2.9.1 7 revision 19 revision 2 8 10 categories graphics devel 9 11 platforms darwin 10 12 maintainers jwa … … 18 20 19 21 homepage http://www.wxwidgets.org/ 20 22 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} 23 master_sites sourceforge:wxwindows \ 24 http://biolpc22.york.ac.uk/pub/${version}/ 25 24 26 use_bzip2 yes 25 27 26 28 distfiles ${distname}-${version}${extract.suffix} 27 29 dist_subdir ${distname}/${version} 30 checksums md5 81c20d7b2ba31becb18e467dbe09be8f \ 31 sha1 3ffe0614acce46448f5c14942176fb2daa6efd00 \ 32 rmd160 106f5b0238e31e12bbede7f1c2cf0e0134076e29 33 34 depends_lib port:jpeg \ 35 port:tiff \ 36 port:libpng \ 37 port:zlib \ 38 port:libiconv \ 39 port:expat \ 40 path:lib/pkgconfig/sdl.pc:libsdl \ 41 port:libsdl_mixer 28 42 29 checksums ${distname}-${version}${extract.suffix} \30 md5 81c20d7b2ba31becb18e467dbe09be8f \31 ${distname}-${version}${extract.suffix} \32 sha1 3ffe0614acce46448f5c14942176fb2daa6efd00 \33 ${distname}-${version}${extract.suffix} \34 rmd160 106f5b0238e31e12bbede7f1c2cf0e0134076e2935 43 36 depends_lib port:jpeg \ 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_mixer 44 archcheck.files lib/libjpeg.dylib \ 45 lib/libtiff.dylib \ 46 lib/libpng.dylib \ 47 lib/libz.dylib \ 48 lib/libiconv.dylib \ 49 lib/libexpat.dylib 44 50 45 #set worksrcdir build 46 set worksrcdir ${distname}-${version}/build 51 set worksrcdir ${distname}-${version}/build 47 52 48 extract.only 53 extract.only ${distname}-${version}${extract.suffix} 49 54 50 set sub wx-devel 51 configure.cmd ../configure 55 patch.dir ${worksrcpath}/.. 56 patchfiles patch-configure-change_install_names.diff 57 configure.cmd ../configure 52 58 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} 71 if {$build_arch == "x86_64" || $build_arch == "ppc64"} { 72 # default carbon won't work on 64-bit 73 configure.args-delete --with-mac 74 configure.args-append --with-osx_cocoa 75 # patchfiles-append patch-textctrl.diff 76 } 59 configure.args --mandir=${prefix}/share/man \ 60 --with-libiconv-prefix=${prefix} \ 61 --with-libjpeg \ 62 --with-libtiff \ 63 --with-libpng \ 64 --with-zlib \ 65 --with-opengl \ 66 --with-cocoa \ 67 --enable-unicode \ 68 --enable-display \ 69 --enable-monolithic 77 70 78 set installtype release79 #set contrib "gizmos stc ogl"80 81 71 build.target 82 72 83 #post-build { 84 # foreach c { ${contrib} } { 85 # system "cd ${build.dir} && make -C contrib/src/${c}" 86 # } 87 #} 73 universal_variant no 74 use_parallel_build yes 88 75 76 supported_archs x86_64 ppc64 i386 ppc 77 configure.ccache = no 78 configure.cppflags-append -arch ${configure.build_arch} 79 89 80 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.9 102 # } else { 103 # reinplace "s|-L${build.dir}/lib||" ${destroot}${prefix}/lib/${sub}/wx/config/osx_carbon-unicode-${installtype}-2.9 104 # } 81 set confscript ${prefix}/lib/wx/config/osx_cocoa-unicode-2.9 82 ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config 105 83 } 106 84 107 85 variant nonmonolithic description {build libraries separately} { … … 110 88 111 89 variant debug description {add debug info to libraries} { 112 90 configure.args-append --enable-debug 113 set installtype debug114 91 } 115 92 116 93 livecheck.type regex 117 livecheck.url http://biolpc22.york.ac.uk/pub/118 livecheck.regex (2.\[0-9\]+.\[0-9a-z.-\]+)/94 livecheck.url ${homepage}/downloads/ 95 livecheck.regex Current Stable Release.*(2\\.\[0-9\]\\.\[0-9\]+)