blob: f3597132b211f20bfed89a9acd72f520d9b84906 (
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
|
# $NetBSD: Makefile,v 1.29 1999/10/07 17:42:01 tron Exp $
#
DISTNAME= qt-1.44
CATEGORIES= x11
MASTER_SITES= ftp://ftp.troll.no/qt/source/ \
ftp://ftp.fu-berlin.de/unix/X11/gui/Qt/source/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.troll.no/products/qt.html
CONFLICTS= qt-1.*
USE_X11BASE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
MAKE_ENV= QTDIR=${WRKSRC}
ALL_TARGET= src
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
DEPENDS+= egcs-1.1.2:../../lang/egcs
CXX= ${LOCALBASE}/egcs/bin/g++
.endif
do-configure:
@cd ${WRKSRC} && ${MAKE} QTDIR=${WRKSRC} ${LOWER_OPSYS}-g++-static
.if defined(USE_GIF)
pre-build:
cd ${WRKSRC} && ${PATCH} <${FILESDIR}/enablegif.patch
.endif
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 \
${RM} -f ${PREFIX}/man/man3/$${PAGE}; \
${LN} -s `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"
|