aboutsummaryrefslogtreecommitdiff
path: root/databases/pgsphere/Makefile
blob: 47c23d3b157a46012bb1b7ea423d6ddb3087c550 (plain) (blame)
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
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>

PORTNAME=	pgsphere
PORTVERSION=	1.1.5
PORTREVISION=	4
CATEGORIES=	databases geography

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Spherical data types, functions, and operators for PostgreSQL

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYRIGHT.pg_sphere

OPTIONS_DEFINE=	DOCS

USES=		gmake pgsql
LLD_UNSAFE=	yes
USE_LDCONFIG=	yes
MAKE_ARGS=	PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 \
		docdir=${DOCSDIR} \
		install_bin=/usr/bin/install
TEST_TARGET=	installcheck

DATADIR=	${PREFIX}/share/postgresql
DOCSDIR?=	${PREFIX}/share/doc/postgresql

GH_TAGNAME=	e0b303d
USE_GITHUB=	yes

DOCS_MAKE_ARGS_OFF=	DOCS=""

post-patch:
	@${REINPLACE_CMD} -e 's|int4|int32|g' ${WRKSRC}/line.c ${WRKSRC}/line.h

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pg_sphere.so

.include <bsd.port.mk>