blob: 4cd895d17f2a4f76d98cd970f5f2800a82d35725 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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>
|