summaryrefslogtreecommitdiffstats
path: root/databases/postgresql91-docs/Makefile
blob: 505e9d5ffec6191b33bb93ed7d44ed3317773553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Palle Girgensohn <girgen@pingpong.net>
# $FreeBSD$

PORTNAME=	postgresql
PORTREVISION=	0
PKGNAMESUFFIX?=	${DISTV:S/.//}-docs
DISTV=	${DISTVERSION:R}

MAINTAINER=	pgsql@FreeBSD.org
COMMENT=	The PostgreSQL documentation set

MASTERDIR=	${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER:S/.//}-server

USES+=		pgsql:${WANT_PGSQL_VER}
WANT_PGSQL_VER?=9.1

SLAVE_ONLY=	YES
COMPONENT=	-docs

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 \
		docbook-sgml>0:${PORTSDIR}/textproc/docbook-sgml

do-build:
	${MAKE_CMD} -C ${WRKSRC} html

do-install:
	@ $(MKDIR) ${STAGEDIR}${PGDOCSDIR}
	( cd ${WRKSRC}/doc/src/sgml/html && \
		${COPYTREE_SHARE} . ${STAGEDIR}${PGDOCSDIR} )

post-install:
	@(cd ${STAGEDIR}${PREFIX} && ${FIND} ${PGDOCSREL} -type f) >> ${TMPPLIST}
	@(cd ${STAGEDIR}${PREFIX} && ${FIND} ${PGDOCSREL} -type d) | ${SORT} -r | \
	     ${SED} 's,.*,@unexec rmdir %D/& 2>/dev/null || true,' >>${TMPPLIST}


.include "${MASTERDIR}/Makefile"
OpenPOWER on IntegriCloud