2011-05-17 00:13:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.61 2011/05/16 22:13:46 cheusov Exp $
|
2008-02-04 19:07:53 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2006-02-20 13:07:12 +01:00
|
|
|
|
2006-02-25 10:25:00 +01:00
|
|
|
PKGNAME= qt4-libs-${QTVERSION}
|
|
|
|
COMMENT= C++ X GUI toolkit
|
2006-02-20 13:07:12 +01:00
|
|
|
|
2011-05-17 00:13:46 +02:00
|
|
|
.include "../../x11/qt4-libs/Makefile.common"
|
|
|
|
|
2010-01-29 19:19:09 +01:00
|
|
|
# XXX this is to test what really gets installed when 'do-install' is disabled
|
|
|
|
INSTALL_DIRS+= src
|
|
|
|
|
2006-02-20 13:07:12 +01:00
|
|
|
BUILD_TARGET= sub-src
|
2006-02-25 10:25:00 +01:00
|
|
|
|
2006-02-20 13:07:12 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
UNLIMIT_RESOURCES= datasize
|
2010-01-29 19:19:09 +01:00
|
|
|
BUILDLINK_PASSTHRU_DIRS+=${QTPREFIX}
|
2006-02-20 13:07:12 +01:00
|
|
|
|
2006-02-25 10:25:00 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST ${PKGDIR}/PLIST
|
|
|
|
|
2007-11-22 19:51:24 +01:00
|
|
|
# built as plugins
|
2010-02-02 15:05:59 +01:00
|
|
|
CONFIGURE_ARGS+= -no-dbus
|
|
|
|
CONFIGURE_ARGS+= -no-libmng
|
2007-11-22 19:51:24 +01:00
|
|
|
CONFIGURE_ARGS+= -no-libtiff
|
2010-02-02 15:05:59 +01:00
|
|
|
CONFIGURE_ARGS+= -no-sql-sqlite
|
2007-09-03 11:35:15 +02:00
|
|
|
|
2008-11-03 12:28:21 +01:00
|
|
|
INSTALLATION_DIRS= lib/pkgconfig
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/bin
|
2010-11-15 14:05:44 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/folderlistmodel
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/gestures
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/particles
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/imports/QtWebKit
|
2008-11-03 12:28:21 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/include
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/lib
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/accessible
|
2010-11-15 14:05:44 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/bearer
|
2010-01-29 19:19:09 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/codecs
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/graphicssystems
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/iconengines
|
2008-11-03 12:28:21 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/imageformats
|
2011-01-12 08:07:06 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/qt_menu.nib
|
|
|
|
.else
|
2008-11-03 12:28:21 +01:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/inputmethods
|
2011-01-12 08:07:06 +01:00
|
|
|
.endif
|
2008-02-04 19:07:53 +01:00
|
|
|
|
2010-01-29 19:19:09 +01:00
|
|
|
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
|
2008-02-04 19:07:53 +01:00
|
|
|
|
2006-02-20 13:07:12 +01:00
|
|
|
do-install:
|
|
|
|
.for prog in moc rcc uic
|
2008-02-04 19:07:53 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2007-10-04 22:43:52 +02:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/uic3 \
|
2010-11-15 14:05:44 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/bin/
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/Qt/labs/folderlistmodel/
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/imports/Qt/labs/gestures/libqmlgesturesplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/Qt/labs/gestures/
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/imports/Qt/labs/particles/libqmlparticlesplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/Qt/labs/particles/
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/imports/QtWebKit/libqmlwebkitplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/QtWebKit/
|
|
|
|
.for incl in corelib declarative gui multimedia network opengl qt3support script scripttools sql svg testlib xml xmlpatterns 3rdparty/webkit/WebCore
|
2008-02-04 19:07:53 +01:00
|
|
|
cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} ${INSTALL_ENV} \
|
2010-02-02 15:05:59 +01:00
|
|
|
${MAKE_PROGRAM} install_flat_headers install_targ_headers install_class_headers
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2008-02-04 19:07:53 +01:00
|
|
|
cd ${DESTDIR}${PREFIX} && find qt4/include -type f -print > ${WRKDIR}/PLIST
|
2011-01-12 15:40:42 +01:00
|
|
|
.for lib in Qt3Support QtCore QtDeclarative QtGui QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns jscore
|
2006-02-20 13:07:12 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
|
2008-02-04 19:07:53 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/lib/
|
2007-12-17 23:19:43 +01:00
|
|
|
sed -e "s:${WRKSRC}:${QTPREFIX}:g" \
|
2010-02-02 15:05:59 +01:00
|
|
|
-e "s:${QTPREFIX}/lib/lib\\([A-Za-z3]*\\)\\.la:-l\\1:g" \
|
2007-12-12 12:51:41 +01:00
|
|
|
${WRKSRC}/lib/pkgconfig/${lib}.pc > ${WRKDIR}/${lib}.pc
|
2008-02-04 19:07:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2008-02-04 19:07:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/porting/src/q3porting.xml ${DESTDIR}${QTPREFIX}
|
2006-02-20 13:07:12 +01:00
|
|
|
.for plug in qtaccessiblecompatwidgets qtaccessiblewidgets
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/accessible/lib${plug}.la \
|
2008-02-04 19:07:53 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/accessible/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2010-11-15 14:05:44 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/bearer/libqgenericbearer.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/plugins/bearer/
|
2010-01-29 19:19:09 +01:00
|
|
|
.for codec in qcncodecs qjpcodecs qkrcodecs qtwcodecs
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/codecs/lib${codec}.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/plugins/codecs/
|
|
|
|
.endfor
|
2010-11-15 14:05:44 +01:00
|
|
|
.for plug in qglgraphicssystem qtracegraphicssystem
|
2010-01-29 19:19:09 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2010-11-15 14:05:44 +01:00
|
|
|
${WRKSRC}/plugins/graphicssystems/lib${plug}.la \
|
2010-01-29 19:19:09 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/graphicssystems/
|
|
|
|
.endfor
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/iconengines/libqsvgicon.la \
|
|
|
|
${DESTDIR}/${QTPREFIX}/plugins/iconengines/
|
2010-02-02 15:05:59 +01:00
|
|
|
.for plug in qgif qico qjpeg qsvg
|
2006-02-20 13:07:12 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/imageformats/lib${plug}.la \
|
2008-02-04 19:07:53 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/imageformats/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2011-01-12 08:07:06 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/gui/mac/qt_menu.nib/*.nib \
|
|
|
|
${DESTDIR}${QTPREFIX}/qt_menu.nib/
|
|
|
|
.else
|
2008-11-03 12:28:21 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/inputmethods/libqimsw-multi.la \
|
|
|
|
${DESTDIR}/${QTPREFIX}/plugins/inputmethods/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endif
|
|
|
|
|
2011-01-12 08:07:06 +01:00
|
|
|
.if ${OPSYS} != "Darwin"
|
2006-02-20 13:07:12 +01:00
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
2007-01-15 20:16:36 +01:00
|
|
|
.include "../../x11/libSM/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXcursor/buildlink3.mk"
|
|
|
|
.include "../../x11/libXft/buildlink3.mk"
|
2007-01-15 20:16:36 +01:00
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXrandr/buildlink3.mk"
|
2011-01-12 08:07:06 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2006-02-20 13:07:12 +01:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|