summaryrefslogtreecommitdiff
path: root/databases/postgresql91-docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql91-docs/Makefile')
-rw-r--r--databases/postgresql91-docs/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/databases/postgresql91-docs/Makefile b/databases/postgresql91-docs/Makefile
new file mode 100644
index 000000000000..295a10bbd542
--- /dev/null
+++ b/databases/postgresql91-docs/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: PostgreSQL docs
+# Date created: August 26, 2002
+# Whom: Palle Girgensohn <girgen@pingpong.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= postgresql
+PORTREVISION= 0
+PKGNAMESUFFIX= -docs
+
+MAINTAINER= pgsql@FreeBSD.org
+COMMENT= The PostgreSQL documentation set
+
+MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
+
+USE_PGSQL= YES
+WANT_PGSQL_VER?=91
+
+SLAVE_ONLY= YES
+
+PGDOCSREL?= ${DOCSDIR_REL}/release-${PGSQL_VER}
+PGDOCSDIR?= ${PREFIX}/${PGDOCSREL}
+
+sgmldir= ${LOCALBASE}/share/sgml
+dbdir= ${sgmldir}/docbook
+
+BUILD_DEPENDS+= onsgmls:${PORTSDIR}/textproc/opensp \
+ openjade:${PORTSDIR}/textproc/openjade \
+ ${sgmldir}/iso8879/catalog:${PORTSDIR}/textproc/iso8879 \
+ ${dbdir}/dsssl/modular/catalog:${PORTSDIR}/textproc/dsssl-docbook-modular \
+ ${dbdir}/4.2/docbook.dtd:${PORTSDIR}/textproc/docbook-420
+
+do-build:
+ ${GMAKE} -C ${WRKSRC} html
+
+do-install:
+ @ $(MKDIR) ${PGDOCSDIR}
+ ( cd ${WRKSRC}/doc/src/sgml/html && \
+ ${COPYTREE_SHARE} \* ${PGDOCSDIR} )
+
+post-install:
+ @(cd ${PREFIX} && ${FIND} ${PGDOCSREL} -type f) >> ${TMPPLIST}
+ @(cd ${PREFIX} && ${FIND} ${PGDOCSREL} -type d) | ${SORT} -r | \
+ ${SED} 's,.*,@unexec rmdir %D/& 2>/dev/null || true,' >>${TMPPLIST}
+
+
+.include "${MASTERDIR}/Makefile"