summaryrefslogtreecommitdiffstats
path: root/devel/libpreps
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
committergirgen <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
commitca9d0e2291f677879c1b36a416eb2ad271850cbc (patch)
tree339f4530a6f0b38252173ddc8ba47c21226501d3 /devel/libpreps
parentcbe074a01a678ad3149123153f48962b4b035576 (diff)
downloadFreeBSD-ports-ca9d0e2291f677879c1b36a416eb2ad271850cbc.zip
FreeBSD-ports-ca9d0e2291f677879c1b36a416eb2ad271850cbc.tar.gz
Split the postgresql ports into a server and a client part.
All ports depending on postgresql shall use the USE_PGSQL=yes knob defined in Mk/bsd.ports.mk. Bumping portrevisions where needed. PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors)
Diffstat (limited to 'devel/libpreps')
-rw-r--r--devel/libpreps/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/devel/libpreps/Makefile b/devel/libpreps/Makefile
index 9dd09f9..e654478 100644
--- a/devel/libpreps/Makefile
+++ b/devel/libpreps/Makefile
@@ -14,10 +14,9 @@ DIST_SUBDIR= prep
MAINTAINER= shadow@psoft.net
COMMENT= Problem reporting system
-LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7
-
CONFLICTS= libpreps-devel-1.9.*
+USE_PGSQL= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GNOME= glib12
@@ -29,6 +28,8 @@ CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_SERVER)
CONFIGURE_ARGS+=--disable-server
PKGNAMESUFFIX= -client
@@ -36,6 +37,16 @@ PLIST_SUB+= SERVER="@comment "
.else
MAN1= create_prepsdb.1 update_prepsdb.1
PLIST_SUB+= SERVER=""
+# Setting/finding PostgreSQL version we want.
+. if exists(${LOCALBASE}/bin/postmaster)
+PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
+ ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
+. else
+PGSQL_VER= ${DEFAULT_PGSQL_VER}
+. endif
+PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
+BUILD_DEPENDS+= postgres:${PGSQL_PORT}
+RUN_DEPENDS+= postgres:${PGSQL_PORT}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud