514261f1d3
Make sure we pick up the correct formatting utilities by prefixing the correct directory into the path. Minor whitespace corrections
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2002/06/28 11:36:05 agc Exp $
|
|
|
|
DISTNAME= kdelibs-2.2.2
|
|
PKGNAME= ${DISTNAME:S/kdelib/kdelibdoc/}
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11 devel
|
|
COMMENT= KDE library documentation
|
|
|
|
.include "../../x11/kde2/Makefile.kde2"
|
|
|
|
BUILD_DEPENDS+= kdoc>=2.2.2:../../textproc/kdoc
|
|
DEPENDS+= qt2-docs>=2.3.1nb2:../../x11/qt2-docs
|
|
|
|
USE_X11BASE= yes
|
|
NO_CONFIGURE= yes
|
|
|
|
EVAL_PREFIX+= QT2DIR=qt2
|
|
DOCINSTALLDIR= ${X11PREFIX}/share/doc/kde/HTML/en
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKDIR}/kdelibs
|
|
${SETENV} PATH=${LOCALBASE}/bin:${PATH} ${LOCALBASE}/bin/qt2kdoc \
|
|
--outdir=${WRKDIR}/kdelibs/kdoc-reference \
|
|
${QT2DIR}/qt2/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"
|