aboutsummaryrefslogtreecommitdiff
path: root/devel/prepstools
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
commit34fa6c853efa04ca648d3d4187d4aec40a00fc0d (patch)
tree3445b3e9b6e7650fd127ec078394a0d7a8e79076 /devel/prepstools
parentae2c26ad44dba87dd1377d70dfb1906132114c7b (diff)
downloadports-34fa6c853efa04ca648d3d4187d4aec40a00fc0d.tar.gz
ports-34fa6c853efa04ca648d3d4187d4aec40a00fc0d.zip
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)
Notes
Notes: svn path=/head/; revision=127737
Diffstat (limited to 'devel/prepstools')
-rw-r--r--devel/prepstools/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/devel/prepstools/Makefile b/devel/prepstools/Makefile
index 9dd09f9a921a..e6544784ed1b 100644
--- a/devel/prepstools/Makefile
+++ b/devel/prepstools/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>