summaryrefslogtreecommitdiff
path: root/x11/kdelibdocs3/Makefile
blob: 90b62f39d93444bc0079609dbbdf5e2a3c8edef3 (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
# $NetBSD: Makefile,v 1.14 2004/01/15 09:57:13 markd Exp $

DISTNAME=	kdelibs-3.1.5
PKGNAME=	kdelibdocs-3.1.5
CATEGORIES=	x11 devel

COMMENT=	KDE library documentation

.include "../../meta-pkgs/kde3/Makefile.kde3"

BUILD_DEPENDS+=		kdoc>=3.0:../../textproc/kdoc
DEPENDS+=		qt3-docs>=3.1.1:../../x11/qt3-docs

NO_CONFIGURE=		yes

EVAL_PREFIX+=		QT3DIR=qt3-docs
DOCINSTALLDIR=		${PREFIX}/share/doc/kde/HTML/en

do-build:
	${MKDIR} ${WRKDIR}/kdelibs
	${SETENV} PATH=${LOCALBASE}/bin:${PATH} ${LOCALBASE}/bin/qt2kdoc \
		--outdir=${WRKDIR}/kdelibs/kdoc-reference		\
		${QT3DIR}/qt3/doc/html
	${SETENV} PATH=${LOCALBASE}/bin:${PATH} ${LOCALBASE}/bin/makekdedoc \
		--srcdir=${WRKSRC}					\
		--outputdir=${WRKDIR}/kdelibs				\
		--libdir=${WRKDIR}/kdelibs/kdoc-reference

do-install:
	cd ${WRKDIR};							\
	DOCDIRS="`${FIND} kdelibs -type d -print | ${SORT}`";		\
	for d in $${DOCDIRS}; do					\
	    ${ECHO} creating directory ${DOCINSTALLDIR}/$${d};		\
	    ${INSTALL_DATA_DIR} ${DOCINSTALLDIR}/$${d};			\
	done ;								\
	DOCFILES="`${FIND} kdelibs -type f -print | ${SORT}`";		\
	(for f in $${DOCFILES}; do					\
	    ${ECHO} installing ${DOCINSTALLDIR}/$${f};			\
	    ${INSTALL_DATA} $${f} ${DOCINSTALLDIR}/$${f};		\
	done)

.include "../../mk/bsd.pkg.mk"