Ticket #6743: Portfile.diff
File Portfile.diff, 3.7 KB (added by g3zi7y.wu72nfp@…, 19 years ago) |
---|
-
Portfile
old new 9 9 maintainers mww@opendarwin.org blb@opendarwin.org 10 10 description mature cross-platform C++ GUI framework 11 11 long_description wxWidgets is a mature open-source cross-platform C++ \ 12 13 14 15 16 12 GUI framework for MacOS, Unix, Linux, Windows. It can \ 13 make use of a variety of native widget sets as well as \ 14 its own widget set: MacOS, GTK+, Motif, WIN32. \ 15 wxWidgets will even run on embedded systems using \ 16 Linux and X11. 17 17 18 18 homepage http://www.wxwidgets.org/ 19 master_sites ftp://biolpc22.york.ac.uk/pub/${version}/ \19 master_sites ftp://biolpc22.york.ac.uk/pub/${version}/ \ 20 20 sourceforge:wxwindows 21 21 dist_subdir ${name}/${version} 22 22 checksums md5 ee0aa211febd992c8540e6c9df749b51 23 23 use_bzip2 yes 24 worksrcdir ${name}-${version} 24 25 25 26 depends_lib port:jpeg \ 26 27 28 29 30 31 32 27 port:tiff \ 28 port:libpng \ 29 port:zlib \ 30 port:libiconv \ 31 port:expat \ 32 port:libsdl \ 33 port:libsdl_mixer 33 34 34 set worksrcdir build35 35 36 36 post-extract { 37 file mkdir ${worksrcpath}37 file mkdir ${workpath}/build 38 38 } 39 39 40 configure.cmd ../${name}-${version}/configure 40 configure.cmd ../${worksrcdir}/configure 41 41 42 configure.env CPPFLAGS="-I${prefix}/include" \ 42 CFLAGS="-I${prefix}/include" \ 43 LDFLAGS="-L${prefix}/lib" 43 CFLAGS="-I${prefix}/include" \ 44 LDFLAGS="-L${prefix}/lib" 45 44 46 configure.args --mandir=${prefix}/share/man \ 45 --with-libiconv-prefix=${prefix} \ 46 --with-libjpeg \ 47 --with-libtiff \ 48 --with-libpng \ 49 --with-zlib \ 50 --with-sdl \ 51 --with-opengl \ 52 --with-mac \ 53 --disable-sdltest \ 54 --enable-unicode \ 55 --enable-display \ 56 --enable-monolithic 47 --with-libiconv-prefix=${prefix} \ 48 --with-libjpeg \ 49 --with-libtiff \ 50 --with-libpng \ 51 --with-zlib \ 52 --with-sdl \ 53 --with-opengl \ 54 --disable-sdltest \ 55 --enable-unicode \ 56 --enable-display \ 57 --enable-monolithic 58 59 platform darwin 7 { 60 # OS 10.3.9, Xcode 1.5, and November2004gccupdater 61 # gcc version 3.3 20030304 (Apple Computer, Inc. build 1671) 62 # variant 'mac' (carbon): QuickTime 7.0.1 and 7.0.3 tested 63 # variant 'cocoa': QuickTime 7.0.1 and 7.0.4 tested 64 65 configure.env-append CFLAGS="-I/usr/include" \ 66 CXXFLAGS="-I/usr/include" \ 67 LDFLAGS="-L${workpath}/build/lib" 68 } 57 69 58 70 platform darwin 8 { 59 71 configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 60 72 } 61 73 74 default_variants +mac 75 76 variant mac { 77 configure.args-append --with-mac \ 78 --without-cocoa 79 } 80 81 variant cocoa { 82 configure.args-append --with-cocoa \ 83 --without-mac 84 default_variants-delete +mac 85 } 86 87 #variant gtk {} 88 #variant x11 {} 89 #variant motif {} 90 91 62 92 set contrib "animate gizmos stc" 63 93 64 94 build.target … … 73 103 system "cd ${destroot.dir} && make -C contrib/src/${target} install ${destroot.destdir}" 74 104 } 75 105 xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 76 xinstall -m 644 -W ${workpath}/${ name}-${version} BuildCVS.txt CHANGES.txt \106 xinstall -m 644 -W ${workpath}/${worksrcdir} BuildCVS.txt CHANGES.txt \ 77 107 COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt \ 78 108 INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README-MAC.txt \ 79 109 README-MGL.txt README-MOTIF.txt README-X11.txt README.txt \ … … 81 111 system "cd ${destroot}${prefix}/bin && \ 82 112 ln -sf ${prefix}/lib/wx/config/mac-unicode-release-2.6 wx-config" 83 113 } 114