blob: f7d490b71af4027538f7186a95910a10c99aaf5b (
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 1998/07/22 11:38:11 mycroft Exp $
# FreeBSD Id: Makefile,v 1.14 1997/10/30 05:15:19 jkh Exp
#
DISTNAME= qt-1.40
CATEGORIES= x11
MASTER_SITES= ftp://ftp.cdrom.com/pub/linux/sunsite/Incoming/ \
ftp://ftp.kde.org/pub/qt/TGZ/ \
ftp://ftp.troll.no/qt/source/
MAINTAINER= tron@netbsd.org
CONFLICTS= qt-1.33
BUILD_DEPENDS= ${LOCALBASE}/bin/libtool:../../devel/libtool
USE_X11= yes
MAKE_ENV= QTDIR=${WRKSRC}
ALL_TARGET= src
do-configure:
@cd ${WRKSRC} && ${MAKE} QTDIR=${WRKSRC} netbsd-g++-static
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin/
@${LOCALBASE}/bin/libtool ${INSTALL_DATA} ${WRKSRC}/src/libqt.la ${PREFIX}/lib/
${INSTALL_DATA_DIR} ${PREFIX}/include/qt
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/qt/
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${PREFIX}/man/man1/
@cd ${WRKSRC}/man/man3; PAGES="`ls -1 | ${SED} -e 's,3qt$$,3,'`"; \
(for PAGE in $$PAGES; do \
${ECHO} installing ${PREFIX}/man/man3/$${PAGE}; \
set - X `head -1 $${PAGE}qt`; \
if [ $$# -eq 3 ] && [ "$$2" = .so ]; then \
${LN} -sf `basename $$3 | ${SED} s/qt$$//` \
${PREFIX}/man/man3/$${PAGE}; \
else \
${INSTALL_MAN} $${PAGE}qt \
${PREFIX}/man/man3/$${PAGE}; \
fi; \
done)
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qt
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt/
.include "../../mk/bsd.pkg.mk"
|