blob: 46d647982e5abc1968260e0d35916031a1a2cc3b (
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
|
# $NetBSD: Makefile,v 1.16 2004/04/12 02:21:00 snj Exp $
#
PKGNAME= qt2-docs-${QTVERSION}
PKGREVISION= 2
COMMENT= Documentation for the QT C++ X GUI toolkit
.include "../qt2-libs/Makefile.common"
USE_BUILDLINK3= yes
NO_CONFIGURE= yes
NO_BUILD= yes
do-install:
${INSTALL_DATA_DIR} ${QTPREFIX}/doc
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.QT ${QTPREFIX}/doc
${INSTALL_DATA_DIR} ${QTPREFIX}/man
${INSTALL_MAN_DIR} ${QTPREFIX}/man/man3
@cd ${WRKSRC}/doc/man/man3; PAGES="`ls -1 | ${SED} -e 's,3qt$$,3,'`"; \
(for PAGE in $$PAGES; do \
${ECHO} installing ${QTPREFIX}/man/man3/$${PAGE}; \
set - X `head -1 $${PAGE}qt`; \
if [ $$# -eq 3 ] && [ "$$2" = .so ]; then \
${LN} -fs `basename $$3 | ${SED} s/qt$$//` \
${QTPREFIX}/man/man3/$${PAGE}; \
else \
${INSTALL_MAN} $${PAGE}qt ${QTPREFIX}/man/man3/$${PAGE}; \
fi; \
done)
${INSTALL_DATA_DIR} ${QTPREFIX}/doc/html
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.QT ${QTPREFIX}/doc/html
cd ${WRKSRC}; \
DOCDIRS="`${FIND} doc/html -type d -print | ${SORT}`"; \
(for d in $${DOCDIRS}; do \
${ECHO} installing ${QTPREFIX}/$${d}; \
${INSTALL_DATA_DIR} ${QTPREFIX}/$${d}; \
done) ; \
DOCFILES="`${FIND} doc/html -type f -print | ${SORT}`"; \
(for f in $${DOCFILES}; do \
${ECHO} installing ${QTPREFIX}/$${f}; \
${INSTALL_DATA} $${f} ${QTPREFIX}/$${f}; \
done)
.include "../../x11/qt2-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|