1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/devel/prepstools/Makefile
Palle Girgensohn 34fa6c853e 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)
2005-01-31 00:35:55 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: libpreps
# Date created: Fri Mar 19 14:27:30 EET 2004
# Whom: shadow@psoft.net
#
# $FreeBSD$
#
PORTNAME= libpreps
PORTVERSION= 1.6.6
CATEGORIES= devel
MASTER_SITES= http://webpages.charter.net/stuffle/linux/preps/
DIST_SUBDIR= prep
MAINTAINER= shadow@psoft.net
COMMENT= Problem reporting system
CONFLICTS= libpreps-devel-1.9.*
USE_PGSQL= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GNOME= glib12
USE_INC_LIBTOOL_VER=13
GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
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
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.post.mk>