aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-09-18 15:16:39 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-09-18 15:16:39 +0000
commit4345955dc8f390ce2fccd576922c1ae5aae1bdc5 (patch)
treeb374d9ef406efcf889fc005b3afcd1900bf0966e
parenta479d725c0bcbbad5e116bcccb391ede4fddbf61 (diff)
downloadports-4345955dc8f390ce2fccd576922c1ae5aae1bdc5.tar.gz
ports-4345955dc8f390ce2fccd576922c1ae5aae1bdc5.zip
Notes
-rw-r--r--databases/pgsphere/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/databases/pgsphere/Makefile b/databases/pgsphere/Makefile
index db92f2a00a9e..92be926c0149 100644
--- a/databases/pgsphere/Makefile
+++ b/databases/pgsphere/Makefile
@@ -15,7 +15,9 @@ LICENSE= BSD3CLAUSE
OPTIONS_DEFINE= DOCS
-MAKE_ARGS= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 docdir=${DOCSDIR}
+MAKE_ARGS= PG_CONFIG=${LOCALBASE}/bin/pg_config USE_PGXS=1 \
+ docdir=${DOCSDIR} \
+ install_bin=/usr/bin/install
USE_LDCONFIG= yes
USES= gmake pgsql
@@ -30,6 +32,12 @@ DOCS_PLIST_DIRS= %%DOCSDIR%%/contrib
DOCS_PLIST_FILES= %%DOCSDIR%%/contrib/README.pg_sphere \
%%DOCSDIR%%/contrib/COPYRIGHT.pg_sphere
+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
+
regression-test test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} installcheck