Ticket #37580: pdftk-2.01.diff
File pdftk-2.01.diff, 3.1 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name pdftk 7 version 1.447 version 2.01 8 8 categories textproc graphics pdf 9 9 maintainers ryandesign 10 10 platforms darwin … … 35 35 Uncompress and Re-Compress Page Streams \ 36 36 Repair Corrupted PDF (Where Possible) 37 37 38 checksums sha1 7cb137dcba885caff32ff96b7e11c9dc4ce2cba7\39 rmd160 cacd286759005f002f5a46c0af28d3a1aaad73eb38 checksums rmd160 df0d693d18c5996f031e050bb548f12150cd800b \ 39 sha256 5784a3d937df778d2830e6015652456c67bbac28097a395ffadf16d4d300afd6 40 40 41 41 distname ${name}-${version}-src 42 42 worksrcdir ${name}-${version}-dist … … 44 44 depends_lib \ 45 45 port:libiconv 46 46 47 if {${os.platform} eq "darwin" && ${os.major} < 10} { 48 pre-fetch { 49 ui_error "Sorry, ${name} requires Mac OS X 10.6 or greater because" 50 ui_error "gcj does not work correctly on Mac OS X 10.5 and earlier." 51 return -code error "incompatible Mac OS X version" 52 } 53 } 54 47 55 build.dir ${worksrcpath}/${name} 48 56 49 57 patchfiles patch-Makefile.OSX-10.6.diff … … 54 62 55 63 set versuff "" 56 64 57 pre-configure {58 if {![file exists ${prefix}/bin/gcj${versuff}]} {59 return -code error "60 61 Cannot build ${name} because ${prefix}/bin/gcj${versuff}62 is missing, possibly because of this gcc bug:63 64 http://trac.macports.org/ticket/1355365 "66 }67 }68 69 65 pre-build { 70 66 build.args-append VERSUFF=${versuff} 71 67 } … … 81 77 ${destroot}${prefix}/share/man/man1 82 78 } 83 79 84 variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} { 85 patchfiles-append patch-gcj-4.2-and-older.diff 86 configure.compiler macports-gcc-4.2 87 depends_build-append port:fastjar 88 depends_lib-append port:gcc42 89 set versuff -mp-4.2 90 } 91 92 variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} { 80 variant gcc45 conflicts gcc47 description {Build using gcc45} { 93 81 configure.compiler macports-gcc-4.5 94 82 depends_lib-append port:gcc45 95 83 set versuff -mp-4.5 96 84 } 97 85 98 variant gcc47 conflicts gcc4 2 gcc45 description {Build using gcc47} {86 variant gcc47 conflicts gcc45 description {Build using gcc47} { 99 87 configure.compiler macports-gcc-4.7 100 88 depends_lib-append port:gcc47 101 89 set versuff -mp-4.7 102 90 } 103 91 104 if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} { 105 if {${os.platform} == "darwin"} { 106 if {${os.major} < 10} { 107 default_variants +gcc42 108 } elseif {${os.major} < 11} { 109 default_variants +gcc45 110 } else { 111 default_variants +gcc47 112 } 113 } else { 114 default_variants +gcc45 115 } 92 if {![variant_isset gcc45] && ![variant_isset gcc47]} { 93 default_variants +gcc47 116 94 } 117 95 118 96 livecheck.type regex