freebsd-ports/databases/postgis/Makefile
Thierry Thomas eb41f7c0f3 Upgrade to 0.9.0.
PR:		ports/72653
Submitted by:	maintainer.
2004-10-15 20:22:00 +00:00

41 lines
1.1 KiB
Makefile

# New ports collection makefile for: PostGIS
# Date created: June 09, 2004
# Whom: Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
#
# $FreeBSD$
#
PORTNAME= postgis
PORTVERSION= 0.9.0
CATEGORIES= databases
MASTER_SITES= http://postgis.refractions.net/
DISTNAME= postgis-${PORTVERSION}
MAINTAINER= anderson@cnpm.embrapa.br
COMMENT= Adds support for geographic objects to PostgreSQL databases
BUILD_DEPENDS= ${PGSQL_SRC}/src/Makefile.global:${PORTSDIR}/databases/postgresql7:configure
LIB_DEPENDS= proj.3:${PORTSDIR}/graphics/proj \
pq:${PORTSDIR}/databases/postgresql7
USE_GMAKE= yes
USE_PERL5_BUILD= yes
MAKE_ARGS= PGSQL_SRC=${PGSQL_SRC}
PGSQL_PORTDIR= ${WRKDIR}/../../../databases/postgresql7
WRKSRC= ${WRKDIR}/postgis-${PORTVERSION}
PGSQL_SRC= ${PGSQL_PORTDIR}/work/postgresql-7.4.5
INSTALL_TARGET= install
.if defined(WITH_GEOS)
LIB_DEPENDS+= geos.1:${PORTSDIR}/graphics/geos
.endif
post-extract:
.if ! defined(WITH_GEOS)
@ ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig ; \
${CAT} ${WRKSRC}/Makefile.orig | \
${SED} "s|USE_GEOS=1|USE_GEOS=0|g" > ${WRKSRC}/Makefile
.endif
.include <bsd.port.mk>