2004-06-18 00:13:35 +02:00
|
|
|
# New ports collection makefile for: PostGIS
|
|
|
|
# Date created: June 09, 2004
|
|
|
|
# Whom: Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= postgis
|
2010-04-08 19:12:59 +02:00
|
|
|
PORTVERSION= 1.5.1
|
2007-07-22 21:33:55 +02:00
|
|
|
CATEGORIES= databases geography
|
2009-10-07 16:10:58 +02:00
|
|
|
MASTER_SITES= http://postgis.refractions.net/download/ \
|
|
|
|
http://www.postgis.org/download/
|
2004-06-18 00:13:35 +02:00
|
|
|
|
|
|
|
MAINTAINER= anderson@cnpm.embrapa.br
|
|
|
|
COMMENT= Adds support for geographic objects to PostgreSQL databases
|
|
|
|
|
2010-03-26 04:00:34 +01:00
|
|
|
LIB_DEPENDS= proj.6:${PORTSDIR}/graphics/proj \
|
|
|
|
geos.0:${PORTSDIR}/graphics/geos
|
2005-12-28 22:10:57 +01:00
|
|
|
RUN_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
2004-06-18 00:13:35 +02:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2005-12-12 22:01:32 +01:00
|
|
|
USE_PGSQL= yes
|
2010-03-26 04:00:34 +01:00
|
|
|
DEFAULT_PGSQL_VER= 83
|
2004-06-18 00:13:35 +02:00
|
|
|
USE_GMAKE= yes
|
2009-10-23 17:33:43 +02:00
|
|
|
USE_ICONV= yes
|
2007-08-31 12:32:16 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-06-18 00:13:35 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
|
|
|
|
INSTALL_TARGET= install
|
2005-01-13 23:53:39 +01:00
|
|
|
|
2005-12-28 22:10:57 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2010-03-26 04:00:34 +01:00
|
|
|
USE_GNOME= libxml2
|
2009-10-07 16:10:58 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MAKE_ENV= DATADIR=${DATADIR} DOCSDIR=${DOCSDIR}
|
2009-11-20 23:53:09 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-10-07 16:10:58 +02:00
|
|
|
CONFIGURE_ARGS= --with-projdir=${LOCALBASE}
|
2005-01-13 23:53:39 +01:00
|
|
|
|
2005-12-12 22:01:32 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-01-13 23:53:39 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
|
2005-02-19 09:26:43 +01:00
|
|
|
${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
|
2009-10-07 16:10:58 +02:00
|
|
|
CONFIGURE_ARGS+= --with-xsldir=${LOCALBASE}/share/xsl/docbook
|
2005-12-28 22:10:57 +01:00
|
|
|
MAN1= pgsql2shp.1 shp2pgsql.1
|
2005-01-13 23:53:39 +01:00
|
|
|
PORTDOCS= *
|
2009-10-23 17:33:43 +02:00
|
|
|
.else
|
|
|
|
MAKE_ARGS+= NOPORTDOCS=yes
|
2005-01-13 23:53:39 +01:00
|
|
|
.endif
|
2004-06-18 00:13:35 +02:00
|
|
|
|
2009-10-07 16:10:58 +02:00
|
|
|
post-extract:
|
|
|
|
@${REINPLACE_CMD} -e 's#@ICONV_LDFLAGS@#-liconv -L${LOCALBASE}/lib#g' \
|
|
|
|
${WRKSRC}/loader/Makefile.in
|
2005-02-19 09:26:43 +01:00
|
|
|
|
2009-10-07 16:10:58 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#%PERL%#${PERL}#g' \
|
|
|
|
${WRKSRC}/postgis/Makefile.in
|
2005-01-13 23:53:39 +01:00
|
|
|
|
|
|
|
post-install:
|
2009-10-07 16:10:58 +02:00
|
|
|
@${MKDIR} ${DATADIR}/utils
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/create_undef.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/new_postgis_restore.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/profile_intersects.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/postgis_proc_upgrade.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/test_estimation.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/postgis_restore.pl ${DATADIR}/utils/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/test_joinestimation.pl ${DATADIR}/utils/
|
2005-12-28 22:10:57 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/postgresql
|
2010-04-08 19:12:59 +02:00
|
|
|
@${LN} -s ${PREFIX}/lib/postgresql/postgis-1.5.so ${PREFIX}/lib/postgresql/postgis.so
|
|
|
|
@${LN} -s ${PREFIX}/lib/postgresql/postgis-1.5.so ${PREFIX}/lib/postgresql/liblwgeom.so.1
|
|
|
|
@${LN} -s ${PREFIX}/lib/postgresql/postgis-1.5.so ${PREFIX}/lib/postgresql/liblwgeom.so
|
2004-06-18 00:13:35 +02:00
|
|
|
|
2005-01-13 23:53:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|