summaryrefslogtreecommitdiffstats
path: root/databases/postgresql-docs
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
committergirgen <girgen@FreeBSD.org>2005-01-31 00:35:55 +0000
commitca9d0e2291f677879c1b36a416eb2ad271850cbc (patch)
tree339f4530a6f0b38252173ddc8ba47c21226501d3 /databases/postgresql-docs
parentcbe074a01a678ad3149123153f48962b4b035576 (diff)
downloadFreeBSD-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/postgresql-docs')
-rw-r--r--databases/postgresql-docs/Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/databases/postgresql-docs/Makefile b/databases/postgresql-docs/Makefile
index 3db6ae7..a2ee5df 100644
--- a/databases/postgresql-docs/Makefile
+++ b/databases/postgresql-docs/Makefile
@@ -5,19 +5,33 @@
# $FreeBSD$
#
+PORTNAME= postgresql
PORTREVISION= 0
PKGNAMESUFFIX= -docs
MAINTAINER= girgen@FreeBSD.org
COMMENT= The PostgreSQL documentation set
-POSTGRESQL_SUBPORT= YES
-POSTGRESQL_PORT?= databases/postgresql7
-.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
+MASTERDIR= ${.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/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
+
DISTFILES= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
-.undef USE_GMAKE
-.undef GNU_CONFIGURE
NO_BUILD= YES
+SLAVE_ONLY= YES
+PATCHDIR= mustnotexist
do-install:
@ $(MKDIR) ${DOCSDIR}/html; \
@@ -32,4 +46,4 @@ post-install:
${ECHO} @dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html >> ${TMPPLIST} ;\
${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
OpenPOWER on IntegriCloud