2013-08-21 19:42:57 +02:00
|
|
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
|
2010-02-12 20:26:43 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pgsphere
|
|
|
|
PORTVERSION= 1.1.1
|
2010-11-08 19:34:31 +01:00
|
|
|
PORTREVISION= 3
|
2010-02-12 20:26:43 +01:00
|
|
|
CATEGORIES= databases geography
|
|
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/2558/ \
|
2010-10-01 03:14:18 +02:00
|
|
|
LOCAL/sunpoet
|
2010-02-12 20:26:43 +01:00
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2010-02-12 20:26:43 +01:00
|
|
|
COMMENT= Spherical data types, functions, and operators for PostgreSQL
|
|
|
|
|
2013-12-26 22:42:05 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2010-02-12 20:26:43 +01:00
|
|
|
|
2013-08-25 18:16:32 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-09-18 17:16:39 +02:00
|
|
|
MAKE_ARGS= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 \
|
|
|
|
docdir=${DOCSDIR} \
|
|
|
|
install_bin=/usr/bin/install
|
2010-02-12 20:26:43 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-05-28 13:35:34 +02:00
|
|
|
USES= gmake pgsql
|
2010-02-12 20:26:43 +01:00
|
|
|
|
2013-08-25 18:16:32 +02:00
|
|
|
DATADIR= ${PREFIX}/share/postgresql
|
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/postgresql
|
2010-02-12 20:26:43 +01:00
|
|
|
PLIST_FILES= lib/postgresql/pg_sphere.so \
|
2010-06-30 13:39:47 +02:00
|
|
|
%%DATADIR%%/contrib/pg_sphere.sql
|
2014-09-30 17:23:15 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%/contrib
|
2010-02-12 20:26:43 +01:00
|
|
|
|
2014-03-01 19:28:26 +01:00
|
|
|
DOCS_MAKE_ARGS_OFF= DOCS=""
|
|
|
|
DOCS_PLIST_DIRS= %%DOCSDIR%%/contrib
|
|
|
|
DOCS_PLIST_FILES= %%DOCSDIR%%/contrib/README.pg_sphere \
|
|
|
|
%%DOCSDIR%%/contrib/COPYRIGHT.pg_sphere
|
2010-02-12 20:26:43 +01:00
|
|
|
|
2014-09-18 17:16:39 +02:00
|
|
|
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
|
|
|
|
|
2013-12-27 03:16:24 +01:00
|
|
|
regression-test test: build
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} installcheck
|
2010-02-12 20:26:43 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|