53 lines
1.8 KiB
Makefile
53 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2007/09/25 10:03:54 hira Exp $
|
|
|
|
.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
|
|
|
|
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 lrelease lupdate qmake qt3to4
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${QTPREFIX}/bin/
|
|
.endfor
|
|
.for prog in designer linguist qtconfig
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} \
|
|
${QTPREFIX}/bin
|
|
.endfor
|
|
cd ${WRKSRC}/tools/assistant/lib && env ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} install_assistant_headers
|
|
cd ${WRKSRC}/tools/designer/src/lib && env ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} install_designer_headers
|
|
cd ${WRKSRC}/tools/qtestlib/src && env ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} install_qtestlib_headers
|
|
.for lib in QtAssistantClient QtDesigner QtDesignerComponents QtTest
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
|
|
${QTPREFIX}/lib/
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/lib/pkgconfig/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"
|