diff options
author | girgen <girgen@FreeBSD.org> | 2005-01-31 08:35:55 +0800 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2005-01-31 08:35:55 +0800 |
commit | ca9d0e2291f677879c1b36a416eb2ad271850cbc (patch) | |
tree | 339f4530a6f0b38252173ddc8ba47c21226501d3 /devel/prepstools | |
parent | cbe074a01a678ad3149123153f48962b4b035576 (diff) | |
download | freebsd-ports-gnome-ca9d0e2291f677879c1b36a416eb2ad271850cbc.tar.gz freebsd-ports-gnome-ca9d0e2291f677879c1b36a416eb2ad271850cbc.tar.zst freebsd-ports-gnome-ca9d0e2291f677879c1b36a416eb2ad271850cbc.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)
Diffstat (limited to 'devel/prepstools')
-rw-r--r-- | devel/prepstools/Makefile | 17 |
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> |