Ticket #19849: Portfile.diff
File Portfile.diff, 1.5 KB (added by tenomoto (Takeshi Enomoto), 15 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 name libgeotiff 5 5 version 1.2.1 6 revision 1 6 7 set libver 1 7 8 categories graphics 8 9 maintainers dementia.org:shadow … … 24 25 configure.args --with-zip=${prefix} --with-jpeg=${prefix} \ 25 26 --with-proj=${prefix} --enable-incode-epsg 26 27 28 post-configure { 29 reinplace "s|-lgeotiff|../libgeotiff.a|" ${worksrcpath}/bin/Makefile 30 } 31 27 32 destroot.destdir 28 build.env DESTDIR=${destroot} 33 build.env DESTDIR=${destroot} GEOTIFFDIR=${worksrcpath} 29 34 destroot.env DESTDIR=${destroot} 30 35 31 post-build { system "cd ${worksrcpath} && cc -dynamiclib -all_load \ 36 post-build {set ldflags_universal "" 37 if {[variant_isset universal]} { 38 set ldflags_universal ${configure.universal_ldflags} 39 } 40 system "cd ${worksrcpath} && cc -dynamiclib ${ldflags_universal} -all_load \ 32 41 -install_name ${prefix}/lib/libgeotiff.${version}.dylib \ 33 42 -compatibility_version ${version} \ 34 43 -o libgeotiff.${version}.dylib libgeotiff.a -L${prefix}/lib \ … … 39 48 post-destroot { delete ${destroot}${prefix}/lib/libgeotiff.a 40 49 xinstall -m 755 -d ${destroot}${prefix}/lib 41 50 xinstall -m 644 -W ${worksrcpath} \ 51 libgeotiff.a ${destroot}${prefix}/lib 52 xinstall -m 644 -W ${worksrcpath} \ 42 53 libgeotiff.${version}.dylib \ 43 54 ${destroot}${prefix}/lib 44 55 ln -sf libgeotiff.${version}.dylib \