56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.47 2018/08/09 20:38:36 naddy Exp $
|
|
|
|
V = 2.4.4
|
|
COMMENT= geographic objects support for PostgreSQL
|
|
DISTNAME= postgis-${V}
|
|
REVISION= 0
|
|
CATEGORIES= geo databases
|
|
|
|
SHARED_LIBS += lwgeom 0.0 lwgeom-2.4 0.0 # 4.0
|
|
|
|
HOMEPAGE= http://www.postgis.org/
|
|
|
|
MAINTAINER= Landry Breuil <landry@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c crypto curl expat freexl gdal geos geos_c geotiff gif iconv intl
|
|
WANTLIB += jasper jpeg json-c lzma m nghttp2 openjp2 pcre png pq>=5.3
|
|
WANTLIB += proj pthread qhull spatialite sqlite3 ssl ${COMPILER_LIBCXX} tiff webp xml2 z
|
|
|
|
MASTER_SITES= http://download.osgeo.org/postgis/source/
|
|
|
|
MODULES = databases/postgresql
|
|
|
|
LIB_DEPENDS= databases/sqlite3 \
|
|
geo/gdal \
|
|
devel/gettext \
|
|
devel/json-c
|
|
RUN_DEPENDS= databases/postgresql,-server
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
textproc/docbook-xsl \
|
|
textproc/wdg-sgml-lib \
|
|
graphics/ImageMagick
|
|
|
|
USE_GMAKE= Yes
|
|
USE_LIBTOOL = Yes
|
|
#for iconv.h
|
|
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib \
|
|
CFLAGS=-I${LOCALBASE}/include
|
|
CONFIGURE_ENV+= ac_cv_header_CUnit_CUnit_h=no
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --with-xsldir=${PREFIX}/share/xsl/docbook/ \
|
|
--libdir=${PREFIX}/lib/postgresql
|
|
|
|
SUBST_VARS += V
|
|
DOCDIR = ${PREFIX}/share/doc/postgresql/postgis/
|
|
|
|
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/
|
|
|
|
.include <bsd.port.mk>
|