Update databases/postgresql12-server to version 12.2_2
[dports.git] / databases / pgsphere / Makefile
1 # Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2 # $FreeBSD$
3
4 PORTNAME=       pgsphere
5 PORTVERSION=    1.1.5
6 PORTREVISION=   2
7 CATEGORIES=     databases geography
8
9 MAINTAINER=     sunpoet@FreeBSD.org
10 COMMENT=        Spherical data types, functions, and operators for PostgreSQL
11
12 LICENSE=        BSD3CLAUSE
13 LICENSE_FILE=   ${WRKSRC}/COPYRIGHT.pg_sphere
14
15 OPTIONS_DEFINE= DOCS
16
17 USES=           gmake pgsql
18 LLD_UNSAFE=     yes
19 USE_LDCONFIG=   yes
20 MAKE_ARGS=      PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 \
21                 docdir=${DOCSDIR} \
22                 install_bin=/usr/bin/install
23 TEST_TARGET=    installcheck
24
25 DATADIR=        ${PREFIX}/share/postgresql
26 DOCSDIR?=       ${PREFIX}/share/doc/postgresql
27
28 GH_TAGNAME=     f36ffd6
29 USE_GITHUB=     yes
30
31 DOCS_MAKE_ARGS_OFF=     DOCS=""
32
33 post-patch:
34         @${REINPLACE_CMD} -e 's|int4|int32|g' ${WRKSRC}/line.c ${WRKSRC}/line.h
35
36 post-install:
37         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pg_sphere.so
38
39 .include <bsd.port.mk>