Ticket #6743: Portfile.2.diff
File Portfile.2.diff, 1.9 KB (added by g3zi7y.wu72nfp@…, 19 years ago) |
---|
-
Portfile
old new 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 port:tiff \ … … 31 32 port:libsdl \ 32 33 port:libsdl_mixer 33 34 34 set worksrcdir build35 36 35 post-extract { 37 file mkdir ${work srcpath}36 file mkdir ${workpath}/build 38 37 } 39 38 40 configure.cmd ../${ name}-${version}/configure39 configure.cmd ../${worksrcdir}/configure 41 40 configure.env CPPFLAGS="-I${prefix}/include" \ 42 41 CFLAGS="-I${prefix}/include" \ 43 42 LDFLAGS="-L${prefix}/lib" … … 55 54 --enable-display \ 56 55 --enable-monolithic 57 56 57 platform darwin 7 { 58 # OS 10.3.9, Xcode 1.5, and November2004gccupdater 59 # gcc version 3.3 20030304 (Apple Computer, Inc. build 1671) 60 # variant 'mac' (carbon): QuickTime 7.0.1 and 7.0.3 tested 61 # variant 'cocoa': QuickTime 7.0.1 and 7.0.4 tested 62 63 configure.env-append CFLAGS="-I/usr/include" \ 64 CXXFLAGS="-I/usr/include" \ 65 LDFLAGS="-L${workpath}/build/lib" 66 } 67 58 68 platform darwin 8 { 59 69 configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 60 70 } 61 71 72 variant cocoa { 73 configure.args-delete --with-mac 74 configure.args-append --with-cocoa \ 75 --without-mac 76 } 77 78 #variant gtk {} 79 #variant x11 {} 80 #variant motif {} 81 82 62 83 set contrib "animate gizmos stc" 63 84 64 85 build.target … … 73 94 system "cd ${destroot.dir} && make -C contrib/src/${target} install ${destroot.destdir}" 74 95 } 75 96 xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} 76 xinstall -m 644 -W ${workpath}/${ name}-${version} BuildCVS.txt CHANGES.txt \97 xinstall -m 644 -W ${workpath}/${worksrcdir} BuildCVS.txt CHANGES.txt \ 77 98 COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt \ 78 99 INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README-MAC.txt \ 79 100 README-MGL.txt README-MOTIF.txt README-X11.txt README.txt \