diff options
Diffstat (limited to 'devel/libpreps/Makefile')
-rw-r--r-- | devel/libpreps/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/devel/libpreps/Makefile b/devel/libpreps/Makefile index 9dd09f9a921a..e6544784ed1b 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> |