Ticket #18801: Portfile.diff
File Portfile.diff, 1.9 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 42046 2008-11-13 21:49:32Z nox@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.0 4 5 5 6 name tiff 6 7 version 3.8.2 7 revision 28 revision 3 8 9 categories graphics 9 10 maintainers waqar@macports.org 10 11 description Library and tools for dealing with Tag Image File Format … … 31 32 sha1 549e67b6a15b42bfcd72fe17cda7c9a198a393eb \ 32 33 rmd160 1b4d825e3be08764e953fc58246d0c25ab4dd17d 33 34 35 # Turn on OpenGL with --with-apple-opengl-framework. 36 patchfiles patch-configure.diff 37 34 38 depends_lib port:jpeg port:zlib 35 39 36 40 test.run yes … … 54 58 } 55 59 56 60 platform macosx { 57 configure.args-append --with-apple-opengl-framework 58 if {[variant_isset universal]} { 59 patchfiles-append patch-universal-pre-configure.diff 60 } 61 post-configure { 62 if {[variant_isset universal]} { 63 system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch-universal-post-configure.diff" 61 if { ![variant_isset universal] } { 62 configure.args-append --with-apple-opengl-framework 63 } else { 64 # Tiger does not have 64-bit OpenGL. 65 if { ${os.major} > 8 } { 66 configure.args-append --with-apple-opengl-framework 67 } else { 68 global merger_configure_args 69 array set merger_configure_args { 70 ppc --with-apple-opengl-framework 71 i386 --with-apple-opengl-framework 72 } 64 73 } 65 74 } 66 75 } 67 76 68 platform darwin 9 {69 configure.ldflags-append -dylib_file \70 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\71 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib72 }73 74 77 livecheck.check regex 75 78 livecheck.url http://www.remotesensing.org/libtiff/ 76 79 livecheck.regex {v(\d+(?:\.\d+)*)</a>}