1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/databases/p5-postgresql-plperl/Makefile
Philip M. Gollucci ccc701e40b - Fix RUN_DEPENDS for slave postgresql ports
- Change default pgsql version to 82 matching Mk/ defaults
- Bump PORTREVISIONs

PR:             ports/148055
Submitted by:   Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Approved by:    maintainer timeout (grigen ; > 2.5 months)
2010-08-30 20:42:23 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: PostgreSQL PL/Perl
# Date created: January 14, 2002
# Whom: Palle Girgensohn <girgen@partitur.se>
#
# $FreeBSD$
#
PORTNAME= postgresql
PORTREVISION= 2
CATEGORIES= databases perl5
PKGNAMESUFFIX= -plperl
MAINTAINER= girgen@FreeBSD.org
COMMENT= Write SQL functions for PostgreSQL using Perl5
MASTERDIR= ${.CURDIR}/../../databases/postgresql${PGSQL_VER}-server
RUN_DEPENDS= postgres:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
DEFAULT_PGSQL_VER?=82
# can't include <bsd.port.pre.mk> in a slave port
# so set these instead:
LOCALBASE?= /usr/local
SED?= /usr/bin/sed
# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][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]*\)\..*/\1\2/p'
.else
PGSQL_VER= ${DEFAULT_PGSQL_VER}
.endif
USE_PERL5= yes
CONFIGURE_ARGS= --with-perl
BUILD_DIRS= src/pl/plperl
SLAVE_ONLY= yes
.include "${MASTERDIR}/Makefile"