diff options
author | girgen <girgen@FreeBSD.org> | 2005-01-31 00:35:55 +0000 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2005-01-31 00:35:55 +0000 |
commit | ca9d0e2291f677879c1b36a416eb2ad271850cbc (patch) | |
tree | 339f4530a6f0b38252173ddc8ba47c21226501d3 /databases/p5-postgresql-plperl | |
parent | cbe074a01a678ad3149123153f48962b4b035576 (diff) | |
download | FreeBSD-ports-ca9d0e2291f677879c1b36a416eb2ad271850cbc.zip FreeBSD-ports-ca9d0e2291f677879c1b36a416eb2ad271850cbc.tar.gz |
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 'databases/p5-postgresql-plperl')
4 files changed, 23 insertions, 26 deletions
diff --git a/databases/p5-postgresql-plperl/Makefile b/databases/p5-postgresql-plperl/Makefile index 3e2747b..a9e83c8 100644 --- a/databases/p5-postgresql-plperl/Makefile +++ b/databases/p5-postgresql-plperl/Makefile @@ -5,27 +5,37 @@ # $FreeBSD$ # -PORTREVISION= 1 +PORTNAME= postgresql CATEGORIES= databases perl5 -PKGNAMEPREFIX= p5- PKGNAMESUFFIX= -plperl MAINTAINER= girgen@FreeBSD.org -COMMENT= A module for using Perl5 to write SQL functions +COMMENT= Write SQL functions for PostgreSQL using Perl5 -POSTGRESQL_PORT?= databases/postgresql7 -POSTGRESQL_SUBPORT=YES -.include "../../${POSTGRESQL_PORT}/Makefile" +MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server -RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT} +RUN_DEPENDS= postgres:${.CURDIR}/../postgresql${PGSQL_VER}-server + +DEFAULT_PGSQL_VER?=74 + +# can't include <bsd.port.pre.mk> in a slave port +# so set these instead: +LOCALBASE?= ${DESTDIR}/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/postmaster.*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 -MAKE_ARGS+= -C src/pl/plperl -MAKEFILE= GNUmakefile - -post-install: - @ ${CAT} ${PKGMESSAGE} +BUILD_DIRS= src/pl/plperl +SLAVE_ONLY= yes -.include <bsd.port.mk> +.include "${MASTERDIR}/Makefile" diff --git a/databases/p5-postgresql-plperl/files/patch-src-makefiles-Makefile.freebsd b/databases/p5-postgresql-plperl/files/patch-src-makefiles-Makefile.freebsd deleted file mode 100644 index 9760f2c..0000000 --- a/databases/p5-postgresql-plperl/files/patch-src-makefiles-Makefile.freebsd +++ /dev/null @@ -1,8 +0,0 @@ ---- src/makefiles/Makefile.freebsd.orig Wed Aug 29 21:14:40 2001 -+++ src/makefiles/Makefile.freebsd Mon Sep 1 10:16:26 2003 -@@ -23,3 +23,5 @@ - endif - - sqlmansect = 7 -+ -+allow_nonpic_in_shlib = yes diff --git a/databases/p5-postgresql-plperl/pkg-message b/databases/p5-postgresql-plperl/pkg-message deleted file mode 100644 index 5d0c839..0000000 --- a/databases/p5-postgresql-plperl/pkg-message +++ /dev/null @@ -1,3 +0,0 @@ -PL/Perl has been installed. Check the createlang(l) manpage for more -info. You can install PL/Perl as trusted or untrusted, by using either -"createlang plperl" or "createlang plperlu". diff --git a/databases/p5-postgresql-plperl/pkg-plist b/databases/p5-postgresql-plperl/pkg-plist deleted file mode 100644 index 56bb750..0000000 --- a/databases/p5-postgresql-plperl/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -lib/postgresql/plperl.so -@unexec rmdir %D/lib/postgresql 2>/dev/null || true |