blob: 14cdbad8c9a08195ff40c6dfe1f28f08f9a6444a (
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
|
# $NetBSD: Makefile,v 1.22 1998/12/29 19:34:47 tron Exp $
#
DISTNAME= qt-1.42
CATEGORIES= x11
MASTER_SITES= ftp://ftp.troll.no/qt/source/ \
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.troll.no/products/qt.html
CONFLICTS= qt-*
USE_X11= yes
USE_GMAKE= yes
USE_LIBTOOL= 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/
@${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"
|