blob: c1e202f8e7ed01be7c1a348714e63679de6c7dbe (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.2 2010/02/10 19:34:06 joerg Exp $
DISTNAME= postgis-1.4.1
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= databases geography
MASTER_SITES= http://postgis.refractions.net/download/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://postgis.refractions.net/
COMMENT= Spatial database capabilities for PostgreSQL
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
PGSQL_VERSIONS_ACCEPTED= 84 83
DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
CONFLICTS= postgis-[0-9]*
# gmake complains about adding + to parent rule
MAKE_JOBS_SAFE= no
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake lex pax perl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-rpath
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
TEST_TARGET= check
DOCDIR= ${PREFIX}/share/doc/postgis
SUBST_CLASSES+= paths
SUBST_FILES.paths= extras/template_gis/profile \
extras/template_gis/createdb.postgis.1 \
extras/template_gis/mktemplate_gis.1 \
extras/template_gis/postgis_env.sh.in
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_STAGE.paths= pre-configure
INSTALLATION_DIRS= ${DOCDIR} ${DOCDIR}/images ${PKGMANDIR}/man1
post-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/liblwgeom/liblwgeom.la ${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${BUILD_DIRS:Q}/README.postgis ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/postgis.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/style.css ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/images/* ${DESTDIR}${DOCDIR}/images
${INSTALL_DATA} ${BUILD_DIRS:Q}/postgis_comments.sql ${DESTDIR}${PREFIX}/share/postgresql/contrib
${INSTALL_MAN} ${BUILD_DIRS:Q}/doc/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../geography/geos/buildlink3.mk"
.include "../../misc/proj/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|