blob: c6cf9e62902280aef6212aed827bfd7aa115c1c2 (
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
69
|
# $NetBSD: Makefile,v 1.36 2010/11/15 13:05:47 adam Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../x11/qt4-libs/Makefile.common"
PKGNAME= qt4-tools-${QTVERSION}
COMMENT= QT GUI (WYSIWYG) builder and other tools
DEPENDS+= libtool-base-[0-9]*:../../devel/libtool-base
CONFIGURE_ARGS+= -I${QTDIR}/include -L${QTDIR}/lib
CONFIGURE_ARGS+= -DQT_NO_DBUS
# XXX this is to test what really gets installed when 'do-install' is disabled
INSTALL_DIRS+= tools
BUILD_TARGET= sub-tools-bootstrap sub-tools
BUILD_QT4= yes
UNLIMIT_RESOURCES= datasize
INSTALLATION_DIRS= lib/pkgconfig
INSTALLATION_DIRS+= ${QTPREFIX}/bin
INSTALLATION_DIRS+= ${QTPREFIX}/lib
INSTALLATION_DIRS+= ${QTPREFIX}/phrasebooks
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/designer
INSTALLATION_DIRS+= ${QTPREFIX}/mkspecs
INSTALLATION_DIRS+= ${QTPREFIX}/tools/qdoc3
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
post-configure:
ln -s ${QTPREFIX}/bin/moc ${WRKSRC}/bin/moc
ln -s ${QTPREFIX}/bin/uic ${WRKSRC}/bin/uic
ln -s ${QTPREFIX}/bin/rcc ${WRKSRC}/bin/rcc
do-install:
.for prog in lconvert lrelease lupdate pixeltool qdoc3 qmake qmlviewer qt3to4 qtconfig qttracereplay xmlpatterns xmlpatternsvalidator
${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/
.endfor
.for prog in assistant designer linguist qcollectiongenerator qhelpconverter qhelpgenerator
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} \
${DESTDIR}${QTPREFIX}/bin
.endfor
cd ${WRKSRC}/tools/assistant/lib && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_flat_headers install_targ_headers install_class_headers
cd ${WRKSRC}/tools/designer/src/lib && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_designer_headers
cd ${WRKSRC}/tools/designer/src/uitools && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_quitools_headers
.for lib in QtCLucene QtDesigner QtDesignerComponents QtHelp QtUiTools
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
${DESTDIR}${QTPREFIX}/lib/
sed -e "s:${WRKSRC}:${QTPREFIX}:g" \
${WRKSRC}/lib/pkgconfig/${lib}.pc > ${WRKDIR}/${lib}.pc
${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/
.endfor
.for lib in qdeclarativeview qt3supportwidgets qwebview
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/designer/lib${lib}.la \
${DESTDIR}${QTPREFIX}/plugins/designer/
.endfor
${INSTALL_DATA} ${WRKSRC}/tools/linguist/phrasebooks/*.qph \
${DESTDIR}${QTPREFIX}/phrasebooks/
cp -R ${WRKSRC}/mkspecs ${DESTDIR}${QTPREFIX}
.include "../../converters/libiconv/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|