aboutsummaryrefslogtreecommitdiff
path: root/databases/pgsphere/Makefile
blob: 80c4b9f88e18952f17063cb8853d8ac13d0af3f5 (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
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
# $FreeBSD$

PORTNAME=	pgsphere
PORTVERSION=	1.1.1
PORTREVISION=	3
CATEGORIES=	databases geography
MASTER_SITES=	http://pgfoundry.org/frs/download.php/2558/ \
		LOCAL/sunpoet

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

LICENSE=	BSD3CLAUSE

OPTIONS_DEFINE=	DOCS

MAKE_ARGS=	PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 docdir=${DOCSDIR}
USE_LDCONFIG=	yes
USE_PGSQL=	yes
USES=		gmake

DATADIR=	${PREFIX}/share/postgresql
DOCSDIR?=	${PREFIX}/share/doc/postgresql
PLIST_FILES=	lib/postgresql/pg_sphere.so \
		%%DATADIR%%/contrib/pg_sphere.sql
PLIST_DIRSTRY=	%%DATADIR%%/contrib

DOCS_MAKE_ARGS_OFF=	DOCS=""
DOCS_PLIST_DIRS=	%%DOCSDIR%%/contrib
DOCS_PLIST_FILES=	%%DOCSDIR%%/contrib/README.pg_sphere \
			%%DOCSDIR%%/contrib/COPYRIGHT.pg_sphere

regression-test test: build
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} installcheck

.include <bsd.port.mk>