summaryrefslogtreecommitdiff
path: root/x11/qt4-tools/Makefile
blob: a8a423b0860f4d6ad4c11d180523e2102b531f00 (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
# $NetBSD: Makefile,v 1.4 2006/02/28 18:03:41 adam Exp $

.include "../../x11/qt4-libs/Makefile.common"

PKGNAME=	qt4-tools-${QTVERSION}
COMMENT=	QT GUI (WYSIWYG) builder and other tools

CONFIGURE_ARGS+=	-I${QTDIR}/include -L${QTDIR}/lib

BUILD_TARGET=		sub-tools

BUILD_QT4=		yes
UNLIMIT_RESOURCES=	datasize

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 assistant linguist lrelease lupdate qm2ts qmake qt3to4
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${QTPREFIX}/bin/
.endfor
.for prog in designer qtconfig
	${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} \
		${QTPREFIX}/bin
.endfor
	cd ${WRKSRC}/tools/assistant/lib && env ${MAKE_ENV} \
		${MAKE_PROGRAM} -f Makefile.Release install_assistant_headers
	cd ${WRKSRC}/tools/designer/src/lib && env ${MAKE_ENV} \
		${MAKE_PROGRAM} -f Makefile.Release install_designer_headers
	cd ${WRKSRC}/tools/qtestlib/src && env ${MAKE_ENV} \
		${MAKE_PROGRAM} -f Makefile install_qtestlib_headers
	${INSTALL_LIB} ${WRKSRC}/lib/libQtAssistantClient.a ${QTPREFIX}/lib/
.for lib in QtDesigner QtDesignerComponents QtTest
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
		${QTPREFIX}/lib/
.endfor
	${INSTALL_DATA} ${WRKSRC}/lib/QtTest.pc ${PREFIX}/lib/pkgconfig/
	${INSTALL_LIB_DIR} ${QTPREFIX}/plugins/designer
	${LIBTOOL} --mode=install ${INSTALL_LIB} \
		${WRKSRC}/plugins/designer/libqt3supportwidgets.la \
		${QTPREFIX}/plugins/designer/
	${INSTALL_DATA_DIR} ${QTPREFIX}/phrasebooks
	${INSTALL_DATA} ${WRKSRC}/tools/linguist/phrasebooks/*.qph \
		${QTPREFIX}/phrasebooks/
	${INSTALL_DATA_DIR} ${QTPREFIX}/mkspecs
	${CP} -R ${WRKSRC}/mkspecs ${QTPREFIX}

.include "../../converters/libiconv/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"