2013-03-21 08:45:11 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2013/03/21 08:45:17 ajacoutot Exp $
|
2007-12-08 19:47:47 +00:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= geographic objects support for PostgreSQL
|
2012-11-24 08:54:34 +00:00
|
|
|
DISTNAME= postgis-2.0.1
|
2007-12-08 19:47:47 +00:00
|
|
|
CATEGORIES= geo databases
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.postgis.org/
|
|
|
|
|
2012-11-24 08:54:34 +00:00
|
|
|
MAINTAINER= Landry Breuil <landry@openbsd.org>
|
2012-09-24 19:54:54 +00:00
|
|
|
|
2007-12-08 19:47:47 +00:00
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}download/
|
|
|
|
|
2010-11-17 08:05:12 +00:00
|
|
|
WANTLIB= c geos_c m pq>=5.3 proj xml2 z
|
2012-11-24 08:54:34 +00:00
|
|
|
WANTLIB += com_err crypto curl expat gdal geos geotiff gif idn
|
|
|
|
WANTLIB += jasper jpeg json png pthread ssl stdc++ tiff
|
2010-11-04 13:45:54 +00:00
|
|
|
|
2012-11-24 08:54:34 +00:00
|
|
|
MODULES = devel/gettext
|
2007-12-08 19:47:47 +00:00
|
|
|
|
2012-11-24 08:54:34 +00:00
|
|
|
LIB_DEPENDS= geo/gdal \
|
|
|
|
devel/json-c
|
2010-11-17 08:05:12 +00:00
|
|
|
RUN_DEPENDS= databases/postgresql,-server
|
2012-11-24 08:54:34 +00:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
|
|
textproc/docbook-xsl \
|
2013-02-24 14:45:08 +00:00
|
|
|
textproc/wdg-sgml-lib \
|
2012-11-24 08:54:34 +00:00
|
|
|
graphics/ImageMagick
|
2007-12-08 19:47:47 +00:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2012-11-24 08:54:34 +00:00
|
|
|
#for iconv.h
|
|
|
|
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib \
|
2009-08-06 10:30:20 +00:00
|
|
|
CFLAGS=-I${LOCALBASE}/include
|
2007-12-08 19:47:47 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2012-11-24 08:54:34 +00:00
|
|
|
CONFIGURE_ARGS= --with-xsldir=${PREFIX}/share/xsl/docbook/ \
|
2007-12-08 19:47:47 +00:00
|
|
|
--libdir=${PREFIX}/lib/postgresql
|
|
|
|
|
2012-11-24 08:54:34 +00:00
|
|
|
DOCDIR = ${PREFIX}/share/doc/postgresql/postgis/
|
2007-12-08 19:47:47 +00:00
|
|
|
|
2012-11-24 08:54:34 +00:00
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}/doc && WRKINST=${WRKINST} ${MAKE_PROGRAM} docs-install man-install
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/images/
|
|
|
|
$(INSTALL_DATA) ${WRKSRC}/doc/html/style.css ${DOCDIR}/
|
|
|
|
$(INSTALL_DATA) ${WRKSRC}/doc/html/images/* ${DOCDIR}/images/
|
|
|
|
|
|
|
|
# the garden regress suite needs postgis installed
|
|
|
|
# no the regular test suite
|
|
|
|
# some tests are known to fail, hence the || to stop the db
|
2013-03-11 11:02:49 +00:00
|
|
|
do-test:
|
2012-11-24 08:54:34 +00:00
|
|
|
regdir=$$(mktemp -t -d postgis-regress.XXXX) && \
|
|
|
|
LC_CTYPE=C initdb -D $${regdir} && \
|
|
|
|
LD_PRELOAD=libpthread.so pg_ctl -D $${regdir} -o '-p 12341' -l $${regdir}/log start && \
|
|
|
|
cd ${WRKSRC}/regress && PGPORT=12341 ${MAKE_PROGRAM} check || \
|
|
|
|
pg_ctl -D $${regdir} -o '-p 12341' stop -m fast
|
2007-12-08 19:47:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|