the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: postgis%type_pkg[postgresql]
Version: 1.5.3
Revision: 1
Distribution: <<
(%type_pkg[postgresql] = 84) 10.4, (%type_pkg[postgresql] = 84) 10.5, (%type_pkg[postgresql] = 84) 10.6,
(%type_pkg[postgresql] = 90) 10.4, (%type_pkg[postgresql] = 90) 10.5, (%type_pkg[postgresql] = 90) 10.6, (%type_pkg[postgresql] = 90) 10.7
<<
Description: PostgreSQL geographic object support
Type: postgresql (8.4 9.0)
License: BSD
Maintainer: Benjamin Reed
Depends: <<
libgeos3.3.0-shlibs (>= 3.3.0-1),
libxml2-shlibs,
(%type_pkg[postgresql] != 90) postgresql%type_pkg[postgresql]-shlibs,
(%type_pkg[postgresql] = 90) postgresql%type_pkg[postgresql]-shlibs (>= 9.0.4-4),
proj-shlibs
<<
BuildDepends: <<
fink (>= 0.30.2-1),
jts,
libgeos3.3.0 (>= 3.3.0-1),
libiconv-dev,
libxml2,
(%type_pkg[postgresql] != 90) postgresql%type_pkg[postgresql]-dev,
(%type_pkg[postgresql] = 90) postgresql%type_pkg[postgresql]-dev (>= 9.0.4-4),
postgresql-java (>= %type_raw[postgresql]-1),
proj,
system-openssl-dev,
system-java (>= 1.5-1)
<<
GCC: 4.0
Source: http://postgis.refractions.net/download/postgis-%v.tar.gz
Source-MD5: 05a61df5e1b78bf51c9ce98bea5526fc
PatchFile: postgis.patch
PatchFile-MD5: 57494eeeb1e9036ca4ca1d994f880230
SetCPPFLAGS: -I%p/lib/system-openssl/include -DHAVE_OPTRESET -fno-common
SetLDFLAGS: -L%p/lib/system-openssl/lib
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: false
ConfigureParams: --with-pgconfig=%p/opt/postgresql-%type_raw[postgresql]/bin/pg_config --with-geosconfig=%p/opt/libgeos3.3.0/bin/geos-config --with-projdir=%p --with-xml2config=%p/bin/xml2-config
CompileScript: <<
#!/bin/sh -ev
if [ -x /usr/bin/gcc-4.2 ]; then
SQL_CPP="gcc-4.2 -E"
else
SQL_CPP="gcc -E"
fi
export lt_cv_sys_max_cmd_len=65536
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home"
export PATH="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin:$PATH"
./configure %c
make SQL_CPP="$SQL_CPP"
pushd java/jdbc
make
popd
<<
InstallScript: <<
#!/bin/sh -ev
make -j1 install DESTDIR=%d datadir=%p/share/doc/%N
<<
DocFiles: COPYING CREDITS ChangeLog NEWS README* TODO
SplitOff: <<
Package: %N-java
Depends: <<
jts,
postgresql-java (>= %type_raw[postgresql]-1)
<<
JarFiles: java/jdbc/postgis.jar java/pljava/postgis_pljava.jar
<<
PostInstScript: <<
for file in pgsql2shp shp2pgsql; do
%p/sbin/update-alternatives --install "%p/bin/$file" "$file" "%p/opt/postgresql-%type_raw[postgresql]/bin/$file" %type_pkg[postgresql]
done
cat <
your database!
If this is the first time you're using PostGIS in a particular database,
you must install the schema like so:
sudo %p/bin/pgsql.sh-%type_raw[postgresql] start
sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql -f %p/share/doc/%N/contrib/postgis-1.5/postgis.sql -d
If you are upgrading your database from a previous PostGIS version, you
need to upgrade the schema like so:
sudo %p/bin/pgsql.sh-%type_raw[postgresql] start
sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql -f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql -d
EOF
<<
PreRmScript: <<
if [ "$1" != "upgrade" ]; then
for file in pgsql2shp shp2pgsql; do
%p/sbin/update-alternatives --remove "$file" "%p/bin/$file-%type_raw[postgresql]"
done
fi
<<
Homepage: http://postgis.refractions.net/
DescDetail: <<
PostGIS adds support for geographic objects to the PostgreSQL
object-relational database. In effect, PostGIS "spatially enables" the
PostgreSQL server, allowing it to be used as a backend spatial database for
geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial
extension. PostGIS follows the OpenGIS "Simple Features Specification for
SQL" and has been certified as compliant with the "Types and Functions"
profile.
<<
DescUsage: <<
Note: This package does not do anything until you add it's schema to
your database!
If this is the first time you're using PostGIS in a particular database,
you must install the schema like so:
sudo %p/bin/pgsql.sh-%type_raw[postgresql] start
sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql \
-f %p/share/doc/%N/contrib/postgis-1.5/postgis.sql \
-d
If you are upgrading your database from a previous PostGIS version, you
need to upgrade the schema like so:
sudo %p/bin/pgsql.sh-%type_raw[postgresql] start
sudo -u postgres %p/opt/postgresql-%type_raw[postgresql]/bin/psql \
-f %p/share/doc/%N/contrib/postgis-1.5/postgis_upgrade_XX_to_15.sql \
-d
<<
<<
diff -Nurd postgis-1.5.3/postgis/Makefile.in postgis-1.5.3-new/postgis/Makefile.in
--- postgis-1.5.3/postgis/Makefile.in 2010-01-08 17:48:29.000000000 -0500
+++ postgis-1.5.3-new/postgis/Makefile.in 2011-07-21 12:07:54.000000000 -0400
@@ -19,6 +19,7 @@
# SQL objects (files requiring C pre-processing)
SQL_OBJS=postgis.sql.in uninstall_postgis.sql.in
+SQL_CPP=$(CPP)
# PostgreSQL objects
PG_OBJS=lwgeom_pg.o \
@@ -68,8 +69,8 @@
# to an existing liblwgeom.so in the PostgreSQL $libdir supplied by an
# older version of PostGIS, rather than with the static liblwgeom.a
# supplied with newer versions of PostGIS
-PG_CPPFLAGS+=@CPPFLAGS@ -I../liblwgeom
-SHLIB_LINK+=@SHLIB_LINK@ ../liblwgeom/liblwgeom.a
+PG_CPPFLAGS+=@CPPFLAGS@ @PGSQL_FE_CPPFLAGS@ -I../liblwgeom
+SHLIB_LINK+=@SHLIB_LINK@ @PGSQL_FE_LDFLAGS@ ../liblwgeom/liblwgeom.a
# Extra files to remove during 'make clean'
EXTRA_CLEAN=$(SQL_OBJS)
@@ -116,5 +117,5 @@
# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor
$(SQL_OBJS): %.in: %.in.c
- $(CPP) -traditional-cpp $< | grep -v '^#' > $@
+ $(SQL_CPP) -traditional-cpp $< | grep -v '^#' > $@
diff -Nurd postgis-1.5.3/topology/Makefile.in postgis-1.5.3-new/topology/Makefile.in
--- postgis-1.5.3/topology/Makefile.in 2008-11-06 10:15:06.000000000 -0500
+++ postgis-1.5.3-new/topology/Makefile.in 2011-07-21 12:08:01.000000000 -0400
@@ -7,6 +7,7 @@
# SQL objects (files requiring C pre-processing)
SQL_OBJS=topology.sql.in
+SQL_CPP=$(CPP)
# Extra files to remove during 'make clean'
EXTRA_CLEAN=$(SQL_OBJS)
@@ -24,5 +25,5 @@
# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor
$(SQL_OBJS): %.in: %.in.c
- $(CPP) -traditional-cpp $< | grep -v '^#' > $@
+ $(SQL_CPP) -traditional-cpp $< | grep -v '^#' > $@