Ticket #17684: patch_postgis_universal

File patch_postgis_universal, 740 bytes (added by Veence (Vincent), 16 years ago)
Line 
1--- /usr/pkg/var/macports/sources/rsync.macports.org/release/ports/databases/postgis/Portfile   2008-10-15 00:26:23.000000000 +0200
2+++ Portfile_postgis_universal  2008-12-17 21:05:09.000000000 +0100
3@@ -25,6 +25,8 @@
4 
5 depends_lib            port:geos port:proj port:libiconv
6 
7+universal_variant      yes
8+
9 configure.args         --datadir=${prefix}/share/${name} \
10                        --with-geos=${prefix}/bin/geos-config \
11                        --with-proj=${prefix}
12@@ -54,3 +56,8 @@
13        configure.args-append   --libdir=${prefix}/lib/postgresql82/ \
14                                --with-pgsql=${prefix}/lib/postgresql82/bin/pg_config
15 }
16+
17+variant universal {
18+  configure.args-append  CC="/usr/bin/gcc ${configure.universal_cflags}"
19+  configure.args-append  CXXFLAGS="/usr/bin/g++ ${configure.universal_cxxflags}"
20+}