Ticket #45377: lensfun-Portfile.patch

File lensfun-Portfile.patch, 3.5 KB (added by help@…, 10 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 121269 2014-06-21 20:18:42Z jeremyhu@macports.org $
    33
    44PortSystem          1.0
    5 PortGroup           muniversal 1.0
     5PortGroup           cmake 1.0
    66
    77name                lensfun
    8 version             0.2.8
    9 revision            1
     8version             0.3.0
    109categories          graphics
    1110platforms           darwin
    1211maintainers         gmail.com:julians37
     
    1918                    functions to correct images based on intimate knowledge \
    2019                    of lens characteristics and calibration data.
    2120
    22 homepage            http://lensfun.berlios.de/
    23 master_sites        http://download.berlios.de/lensfun/
     21homepage            http://lensfun.sourceforge.net/
     22master_sites        sourceforge
    2423use_bzip2           yes
    2524
    26 checksums           rmd160  527b4ca0e9ce40f514e7340548d0d0635bdc875e \
    27                     sha256  f88f97fbc78259a2b2edddef295caf50770901107c8469e54bb5e9699faa1a48
     25checksums           rmd160  dc39f4708b2632ed6795052d368f3ad847c6704f \
     26                    sha256  c2c3c03873cb549d49d42f118fcb0ffa95d1e45b9ff395e19facb63bf699bec1
    2827
    29 depends_build       port:pkgconfig bin:makedep:gccmakedep
     28depends_build       port:pkgconfig
    3029
    31 depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2
     30depends_lib         port:glib2 port:libpng port:zlib
    3231
    33 # Ensure lensfun.pc is created
    34 patchfiles          patch-pkgconfig.diff
    35 
    36 # Set the correct library install_name and current_version
    37 patchfiles-append   patch-build-tibs-target-mac-mak.diff
    38 post-patch {
    39     reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/build/tibs/target/mac.mak
    40 }
    41 
    42 set cxx_stdlibflags {}
    43 if {[string match *clang* ${configure.cxx}]} {
    44     set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
    45 }
    46 
    47 configure.args      -v
    48 configure.env       LD="${configure.cxx} ${cxx_stdlibflags}"
    49 
    50 platform darwin 8 {
    51     # lensfun requires make >= 3.81; Tiger comes with 3.80
    52     depends_build-append port:gmake
    53     # fix configure script check which is hardcoded to using "make"
    54     post-extract {
    55         xinstall -d ${workpath}/bin
    56         ln -s ${prefix}/bin/gmake ${workpath}/bin/make
    57     }
    58     configure.env PATH=${workpath}/bin:$env(PATH)
    59     # fix build and destroot
    60     build.cmd ${prefix}/bin/gmake
    61 }
    62 
    63 if {[variant_isset universal]} {
    64     foreach arch ${configure.universal_archs} {
    65         set merger_host($arch) ""
    66     }
    67     set merger_configure_args(ppc64)  "--target=mac.powerpc64.G5 --vectorization=''"
    68     set merger_configure_args(ppc)    "--target=mac.powerpc.powerpc --vectorization=''"
    69     set merger_configure_args(i386)   "--target=mac.x86.i686"
    70     set merger_configure_args(x86_64) "--target=mac.x86_64.generic"
    71 } elseif {${build_arch} eq "ppc64"} {
    72     configure.args-append --target=mac.powerpc64.G5 --vectorization=''
    73 } elseif {${build_arch} eq "ppc"} {
    74     configure.args-append --target=mac.powerpc.powerpc --vectorization=''
    75 } elseif {${build_arch} eq "i386"} {
    76     configure.args-append --target=mac.x86.i686
    77 } elseif {${build_arch} eq "x86_64"} {
    78     configure.args-append --target=mac.x86_64.generic
    79 }
    80 
    81 configure.universal_args-delete --disable-dependency-tracking
    82 
    83 build.args          V=1 GCC.LD="${configure.cxx} ${cxx_stdlibflags}"
    84 
    85 livecheck.type      regex
    86 livecheck.url       http://developer.berlios.de/project/showfiles.php?group_id=9034
    87 livecheck.regex     "lensfun-(\\d+(?:\\.\\d+)*).tar"
     32livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}