Ticket #26410: Portfile-wxWidgets-devel.diff
File Portfile-wxWidgets-devel.diff, 3.5 KB (added by tvb377@…, 14 years ago) |
---|
-
Portfile
old new 17 17 18 18 homepage http://www.wxwidgets.org/ 19 19 distname wxWidgets 20 master_sites http://biolpc22.york.ac.uk/pub/CVS_HEAD/v2/files/\20 master_sites sourceforge:wxwindows \ 21 21 http://biolpc22.york.ac.uk/pub/${version}/ \ 22 22 ftp://ftp.wxwidgets.org/pub/${version} 23 23 use_bzip2 yes … … 46 46 47 47 extract.only ${distname}-${version}${extract.suffix} 48 48 49 # install -devel port into nonstandard subdirectory 50 # to avoid conflicts with mainstream version. 49 51 set sub wx-devel 50 52 configure.cmd ../configure 51 configure.ldflags -L${build.dir}/lib -L${prefix}/lib52 53 configure.args --mandir=${prefix}/share/man \ 53 54 --libdir=${prefix}/lib/${sub} \ 54 55 --bindir=${prefix}/lib/${sub}/bin \ … … 71 72 # default carbon won't work on 64-bit 72 73 configure.args-delete --with-mac 73 74 configure.args-append --with-osx_cocoa 74 # patchfiles-append patch-textctrl.diff75 75 } 76 76 77 77 set installtype release 78 #set contrib "gizmos stc ogl"79 78 80 79 build.target 81 80 82 #post-build {83 # foreach c { ${contrib} } {84 # system "cd ${build.dir} && make -C contrib/src/${c}"85 # }86 #}87 88 81 post-destroot { 89 # foreach c { ${contrib} } {90 # system "cd ${destroot.dir} && make -C contrib/src/${c} install ${destroot.destdir}"91 # }92 82 xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 93 # xinstall -m 644 -W ${workpath}/${distname}-${version} \ 94 # install-mac.txt install-mgl.txt install-motif.txt \ 95 # INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \ 96 # readme-gtk.txt readme-mac.txt \ 97 # readme-mgl.txt readme-motif.txt readme-x11.txt \ 98 # ${destroot}${prefix}/share/doc/${name} 99 # if {$build_arch == "x86_64" || $build_arch == "ppc64"} { 100 # reinplace "s|-L${build.dir}/lib||" ${destroot}${prefix}/lib/${sub}/wx/config/osx_cocoa-unicode-${installtype}-2.9 101 # } else { 102 # reinplace "s|-L${build.dir}/lib||" ${destroot}${prefix}/lib/${sub}/wx/config/osx_carbon-unicode-${installtype}-2.9 103 # } 83 # set final lib directory in dylibs 84 set libdir ${prefix}/lib 85 if { [string length ${sub}] != 0 } { 86 set libdir ${libdir}/${sub} 87 } 88 set destrootlibdir ${destroot}/${prefix}/lib/${sub} 89 set oldlibpath ${worksrcpath}/lib 90 foreach lib [glob -directory ${destrootlibdir} *.dylib*] { 91 if [string match "link" [file type ${lib}]] { 92 continue 93 } 94 exec install_name_tool -id ${libdir}/[string replace ${lib} 0 [string last "/" ${lib}]] ${lib} 95 foreach dep [exec otool -L ${lib}] { 96 if [string match "${oldlibpath}*" ${dep}] { 97 exec install_name_tool -change ${dep} ${libdir}/[string replace ${dep} 0 [string last "/" ${dep}]] ${lib} 98 } 99 } 100 } 104 101 } 105 102 106 103 variant nonmonolithic description {build libraries separately} { … … 109 106 110 107 variant debug description {add debug info to libraries} { 111 108 configure.args-append --enable-debug 109 configure.args-append --enable-debug_gdb 110 configure.args-append --disable-optimise 112 111 set installtype debug 113 112 } 114 113 114 variant stl description {use STL for containers} { 115 configure.args-append --enable-stl 116 } 117 118 variant std_string description {use standard C++ string classes} { 119 configure.args-append --enable-std_string 120 } 121 122 variant std_iostreams description {use standard C++ stream classes} { 123 configure.args-append --enable-std_iostreams 124 } 125 115 126 livecheck.type regex 116 127 livecheck.url http://biolpc22.york.ac.uk/pub/ 117 128 livecheck.regex (2.\[0-9\]+.\[0-9a-z.-\]+)/