ports/databases/postgresql-plproxy/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

39 lines
1,008 B
Makefile

# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$
PORTNAME= plproxy
PORTVERSION= 2.4
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/3274/
PKGNAMEPREFIX= postgresql-
MAINTAINER= skv@FreeBSD.org
COMMENT= PL/Proxy is database partitioning system
USE_PGSQL= yes
USE_GMAKE= yes
USES= bison
PORTSCOUT= site:http://pgfoundry.org/frs/?group_id=1000207
MAKE_ARGS+= CFLAGS+=-DSYS_SOCKET_H
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
${SED} -En 's/.*PostgreSQL[^0-9]*([0-9]+)\.([0-9]+)\..*/\1\2/p'
.elif exists(${LOCALBASE}/bin/pg_config)
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | \
${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)[^0-9].*/\1\2/p'
.else
PGSQL_VER= ${DEFAULT_PGSQL_VER}
.endif
.if ${PGSQL_VER} > 91
PLIST_SUB+= NEW_CONTRIB_DIR="" OLD_CONTRIB_DIR="@comment "
.else
PLIST_SUB+= NEW_CONTRIB_DIR="@comment " OLD_CONTRIB_DIR=""
.endif
.include <bsd.port.post.mk>