aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/pgsphere/Makefile23
-rw-r--r--databases/pgsphere/pkg-descr2
2 files changed, 14 insertions, 11 deletions
diff --git a/databases/pgsphere/Makefile b/databases/pgsphere/Makefile
index 318d8314f5fe..eebc3e15d12e 100644
--- a/databases/pgsphere/Makefile
+++ b/databases/pgsphere/Makefile
@@ -11,29 +11,32 @@ MASTER_SITES= http://pgfoundry.org/frs/download.php/2558/ \
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Spherical data types, functions, and operators for PostgreSQL
-DATADIR= ${PREFIX}/share/postgresql
-DOCSDIR?= ${PREFIX}/share/doc/postgresql
+LICENSE= BSD
-USES= gmake
+OPTIONS_DEFINE= DOCS
+
+MAKE_ARGS= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 docdir=${DOCSDIR}
USE_LDCONFIG= yes
USE_PGSQL= yes
+USES= gmake
-MAKE_ARGS+= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 docdir=${DOCSDIR}
-.if defined(NOPORTDOCS)
-MAKE_ARGS+= DOCS=""
-.endif
-
+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
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PLIST_FILES+= %%DOCSDIR%%/contrib/README.pg_sphere \
%%DOCSDIR%%/contrib/COPYRIGHT.pg_sphere
PLIST_DIRS+= %%DOCSDIR%%/contrib
+.else
+MAKE_ARGS+= DOCS=""
.endif
-#regression-test:
+#regression-test test: build
# @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} installcheck
.include <bsd.port.mk>
diff --git a/databases/pgsphere/pkg-descr b/databases/pgsphere/pkg-descr
index 5df29c27368f..83693e345521 100644
--- a/databases/pgsphere/pkg-descr
+++ b/databases/pgsphere/pkg-descr
@@ -1,3 +1,3 @@
pgSphere provides spherical data types, functions, and operators for PostgreSQL.
-WWW: http://pgsphere.projects.postgresql.org/
+WWW: http://pgsphere.projects.postgresql.org/