Annotation of pkgsrc/databases/postgresql-postgis2/Makefile, Revision 1.45
1.45 ! gdt 1: # $NetBSD: Makefile,v 1.44 2018/05/30 12:03:46 gdt Exp $
1.1 gdt 2:
1.45 ! gdt 3: MAJOR= 2.4
! 4: DISTNAME= postgis-${MAJOR}.4
1.1 gdt 5: PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
6: CATEGORIES= databases geography
1.37 ryoon 7: MASTER_SITES= https://download.osgeo.org/postgis/source/
1.1 gdt 8:
9: MAINTAINER= gdt@NetBSD.org
10: HOMEPAGE= http://postgis.net/
11: COMMENT= Spatial database capabilities for PostgreSQL
12:
13: LICENSE= gnu-gpl-v2
14:
1.37 ryoon 15: DEPENDS+= postgresql${PGSQL_VERSION}-server-[0-9]*:../../databases/postgresql${PGSQL_VERSION}-server
1.10 wiz 16: BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
1.1 gdt 17:
18: CONFLICTS= postgis-[0-9]*
19:
20: # TODO section
1.39 gdt 21: # 1. Update to upstream with fixes for:
1.1 gdt 22: # http://trac.osgeo.org/postgis/ticket/2909
1.39 gdt 23: # 2. Fix installation use of "install -o root" from pgxs.mk, when postgresql
1.9 gdt 24: # was built as root and postgis is built/installed as a non-root user.
25: # https://lists.osgeo.org/pipermail/postgis-devel/2015-July/025045.html
1.39 gdt 26: # 3. Recheck and fix or file upstream about MAKE_JOBS_SAFE.
1.1 gdt 27:
28: # gmake complains about adding + to parent rule
29: MAKE_JOBS_SAFE= no
30:
1.43 adam 31: PGSQL_VERSIONS_ACCEPTED= 96 95 94 93
1.1 gdt 32:
33: USE_GCC_RUNTIME= yes
34: USE_LANGUAGES= c c++ c99
35: USE_LIBTOOL= yes
36: USE_TOOLS+= gmake lex pax perl
37: GNU_CONFIGURE= yes
38: CONFIGURE_ARGS+= --enable-rpath
39: CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
40:
1.12 gdt 41: # The address standardizer needs more modules; see
42: # share/doc/postgresql/extension/README.address_standardizer
43: # for details. Until they are required, disable it to ensure
44: # repeatable builds.
45: CONFIGURE_ARGS+= --without-address-standardizer
46:
1.1 gdt 47: BUILD_TARGET= all docs
48: INSTALL_TARGET= install docs-install
49:
50: DOCDIR= ${PREFIX}/share/doc/postgis
51:
1.45 ! gdt 52: PLIST_SUBST+= MAJOR=${MAJOR}
! 53: PRINT_PLIST_AWK+= { gsub(/postgis-${MAJOR:S|/|\\/|g}/, "postgis-$${MAJOR}") }
! 54: PRINT_PLIST_AWK+= { gsub(/topology-${MAJOR:S|/|\\/|g}/, "topology-$${MAJOR}") }
! 55:
1.1 gdt 56: SUBST_CLASSES+= paths
57: SUBST_FILES.paths= extras/template_gis/profile \
58: extras/template_gis/createdb.postgis.1 \
59: extras/template_gis/mktemplate_gis.1 \
60: extras/template_gis/postgis_env.sh.in
61: SUBST_VARS.paths+= PKG_SYSCONFDIR
62: SUBST_STAGE.paths= pre-configure
63:
64: INSTALLATION_DIRS= ${DOCDIR} ${DOCDIR}/images ${PKGMANDIR}/man1
65:
66: REPLACE_PERL+= utils/postgis_restore.pl.in
1.18 gdt 67: REPLACE_PERL+= utils/create_spatial_ref_sys_config_dump.pl
1.1 gdt 68: #MAKE_ENV+= PERL5=${PERL5:Q}
69:
70: INSTALL_ENV+= mkinstalldirs=${INSTALL_DATA_DIR:Q}
71:
72: TEST_TARGET= check
73:
74: # TEST_DEPENDS
75: .include "../../devel/cunit/buildlink3.mk"
76:
77: # DOC DEPENDS
78: CONFIGURE_ARGS+= -with-xsldir=${PREFIX}/share/xsl/docbook
79: # By default xsltproc downloads DTDs. postgis tells it not to, but
80: # the dependencies are not packaged. The timing option, not needed,
81: # is to make the variable non-empty, to work around a
82: # defined/non-empty incorrect test in postgis.
83: MAKE_ENV+= "XSLTPROCFLAGS=--timing"
84:
85: # These are really all BUILD_DEPENDS.
86: .include "../../graphics/ImageMagick/buildlink3.mk"
87: .include "../../textproc/libxslt/buildlink3.mk"
88:
89: # NORMAL DEPENDS
90: .include "../../geography/gdal-lib/buildlink3.mk"
91: .include "../../geography/geos/buildlink3.mk"
92: .include "../../geography/proj/buildlink3.mk"
93: .include "../../textproc/libxml2/buildlink3.mk"
94: .include "../../mk/pgsql.buildlink3.mk"
95: .include "../../mk/pthread.buildlink3.mk"
96: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>