blob: 5de373e778760a279e6ef24739ca50440fd880ad (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.33 2000/04/28 10:09:53 drochner Exp $
#
DISTNAME= qt-2.0.2
PKGNAME= qt2-2.0.2
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
DEPENDS+= Mesa-*:../../graphics/Mesa
DEPENDS+= png-*:../../graphics/png
NOT_FOR_PLATFORM= *-*-alpha # builds, but programs linked to qt crash
HAS_CONFIGURE= yes
USE_X11BASE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ENV+= QTDIR=${WRKSRC}
CONFIGURE_ARGS+= -static -sm -system-zlib -system-libpng \
-I${LOCALBASE}/include -L${LOCALBASE}/lib \
MAKE_ENV+= QTDIR=${WRKSRC}
ALL_TARGET= src
.include "../../mk/bsd.prefs.mk"
.if defined(USE_GIF)
CONFIGURE_ARGS+= -gif
.endif
.if ${OPSYS} == "SunOS"
DEPENDS+= egcs-1.1.2:../../lang/egcs
CXX= ${LOCALBASE}/egcs/bin/g++
.endif
QTPREFIX= ${PREFIX}/qt2
do-install:
${INSTALL_DATA_DIR} ${QTPREFIX}
${INSTALL_PROGRAM_DIR} ${QTPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${QTPREFIX}/bin
${INSTALL_DATA_DIR} ${QTPREFIX}/lib
@${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/src/libqt.la ${QTPREFIX}/lib
${INSTALL_DATA_DIR} ${QTPREFIX}/include
${INSTALL_DATA} ${WRKSRC}/include/* ${QTPREFIX}/include
${INSTALL_MAN_DIR} ${QTPREFIX}/man/man1
${INSTALL_MAN_DIR} ${QTPREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${QTPREFIX}/man/man1
@cd ${WRKSRC}/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
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.QT \
${WRKSRC}/doc/* ${QTPREFIX}/doc
.include "../../mk/bsd.pkg.mk"
|