Ticket #25585: tiff-3.9.4.diff
File tiff-3.9.4.diff, 2.5 KB (added by jmroot (Joshua Root), 14 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup muniversal 1.06 5 PortGroup xcodeversion 1.0 7 6 8 7 name tiff 9 version 3.9.2 10 revision 3 8 version 3.9.4 11 9 categories graphics 12 10 maintainers waqar 13 11 description Library and tools for dealing with Tag Image File Format … … 26 24 esoteric portions of the 6.0 TIFF spec. 27 25 homepage http://www.remotesensing.org/libtiff 28 26 platforms darwin 29 master_sites ftp://ftp.remotesensing.org/pub/libtiff/ \ 27 master_sites http://download.osgeo.org/libtiff/ \ 28 ftp://ftp.remotesensing.org/pub/libtiff/ \ 30 29 http://dl.maptools.org/dl/libtiff/ \ 31 30 freebsd 32 31 33 checksums md5 93e56e421679c591de7552db13384cb8\34 sha1 5c054d31e350e53102221b7760c3700cf70b4327\35 rmd160 22716e0bcee93a654a704900f3e19f41600f3d1832 checksums md5 2006c1bdd12644dbf02956955175afd6 \ 33 sha1 a4e32d55afbbcabd0391a9c89995e8e8a19961de \ 34 rmd160 3e0a74b6294297c16fb983ad68056a1dfbbdb1de 36 35 37 # Turn on OpenGL with --with-apple-opengl-framework.38 patchfiles patch-configure.diff39 40 36 depends_lib port:jpeg port:zlib 41 37 42 38 test.run yes … … 50 46 --with-zlib-include-dir=${prefix}/include \ 51 47 --with-zlib-lib-dir=${prefix}/lib 52 48 49 post-configure { 50 if {[variant_isset universal]} { 51 system "cd ${worksrcpath}/libtiff \ 52 && ed - tif_config.h < ${filespath}/libtiff__tif_config.h.ed \ 53 && ed - tiffconf.h < ${filespath}/libtiff__tiffconf.h.ed \ 54 && touch stamp-h1 && touch stamp-h2" 55 } 56 } 57 53 58 use_parallel_build yes 54 59 55 60 post-destroot { … … 61 66 } 62 67 63 68 platform macosx { 64 if { ![variant_isset universal] } { 69 # Tiger does not have 64-bit OpenGL. 70 if {${os.major} > 8 || (![variant_isset universal] && ![string match *64* $build_arch]) 71 || ([variant_isset universal] && ![string match *64* $universal_archs])} { 65 72 configure.args-append --with-apple-opengl-framework 66 } else {67 # Tiger does not have 64-bit OpenGL.68 if { ${os.major} > 8 } {69 configure.args-append --with-apple-opengl-framework70 } else {71 global merger_configure_args72 array set merger_configure_args {73 ppc --with-apple-opengl-framework74 i386 --with-apple-opengl-framework75 }76 }77 73 } 78 74 } 79 75