summaryrefslogtreecommitdiff
path: root/databases/p5-postgresql-plperl
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
commit34fa6c853efa04ca648d3d4187d4aec40a00fc0d (patch)
tree3445b3e9b6e7650fd127ec078394a0d7a8e79076 /databases/p5-postgresql-plperl
parentSplit the postgresql ports into a server and a client part. (diff)
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)
Notes
Notes: svn path=/head/; revision=127737
Diffstat (limited to 'databases/p5-postgresql-plperl')
-rw-r--r--databases/p5-postgresql-plperl/Makefile36
-rw-r--r--databases/p5-postgresql-plperl/files/patch-src-makefiles-Makefile.freebsd8
-rw-r--r--databases/p5-postgresql-plperl/pkg-message3
-rw-r--r--databases/p5-postgresql-plperl/pkg-plist2
4 files changed, 23 insertions, 26 deletions
diff --git a/databases/p5-postgresql-plperl/Makefile b/databases/p5-postgresql-plperl/Makefile
index 3e2747b93f13..a9e83c84802e 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 9760f2ca7fa0..000000000000
--- 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 5d0c83920563..000000000000
--- 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 56bb75060a28..000000000000
--- 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