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" |
| 33 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |