freebsd-ports/databases/pgsphere/Makefile
Sylvio Cesar Teixeira fd545c8de8 - Fix deinstallation when NOPORTDOCS is set.
PR:		ports/148135
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
Feature safe:	yes
2010-06-30 11:39:47 +00:00

42 lines
1 KiB
Makefile

# New ports collection makefile for: pgsphere
# Date created: 2010-02-09
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
#
# $FreeBSD$
#
PORTNAME= pgsphere
PORTVERSION= 1.1.1
CATEGORIES= databases geography
MASTER_SITES= http://pgfoundry.org/frs/download.php/2558/ \
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet@sunpoet.net
COMMENT= Spherical data types, functions, and operators for PostgreSQL
DATADIR= ${PREFIX}/share/postgresql
DOCSDIR?= ${PREFIX}/share/doc/postgresql
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_PGSQL= yes
MAKE_ARGS+= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 docdir=${DOCSDIR}
.if defined(NOPORTDOCS)
MAKE_ARGS+= DOCS=""
.endif
PLIST_FILES= lib/postgresql/pg_sphere.so \
%%DATADIR%%/contrib/pg_sphere.sql
PLIST_DIRS= %%DATADIR%%/contrib
.if !defined(NOPORTDOCS)
PLIST_FILES+= %%DOCSDIR%%/contrib/README.pg_sphere \
%%DOCSDIR%%/contrib/COPYRIGHT.pg_sphere
PLIST_DIRS+= %%DOCSDIR%%/contrib
.endif
#regression-test:
# @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} installcheck
.include <bsd.port.mk>