pkgsrc/x11/qt4-libs/Makefile
adam a96a7a4a0a Changes 4.7.1:
Qt 4.7.1 is a bug-fix release. It maintains both forward and backward
compatibility (source and binary) with Qt 4.7.0.  For more details,
refer to the online documentation included in this distribution. The
documentation is also available online:

  http://qt.nokia.com/doc/4.7

The Qt version 4.7 series is binary compatible with the 4.6.x series.
Applications compiled for 4.6 will continue to run with 4.7.


Changes 4.7.0:
Qt 4.7 introduces many new features and improvements as well as bugfixes
over the 4.6.x series. For more details, refer to the online documentation
included in this distribution. The documentation is also available online:

  http://qt.nokia.com/doc/4.7

The Qt version 4.7 series is binary compatible with the 4.6.x series.
Applications compiled for 4.6 will continue to run with 4.7.
2010-11-15 13:05:44 +00:00

128 lines
5.1 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2010/11/15 13:05:45 adam Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../x11/qt4-libs/Makefile.common"
PKGNAME= qt4-libs-${QTVERSION}
COMMENT= C++ X GUI toolkit
# XXX this is to test what really gets installed when 'do-install' is disabled
INSTALL_DIRS+= src
BUILD_TARGET= sub-src
PTHREAD_OPTS+= require
UNLIMIT_RESOURCES= datasize
BUILDLINK_PASSTHRU_DIRS+=${QTPREFIX}
PLIST_SRC= ${WRKDIR}/PLIST ${PKGDIR}/PLIST
# built as plugins
CONFIGURE_ARGS+= -no-dbus
CONFIGURE_ARGS+= -no-libmng
CONFIGURE_ARGS+= -no-libtiff
CONFIGURE_ARGS+= -no-sql-sqlite
INSTALLATION_DIRS= lib/pkgconfig
INSTALLATION_DIRS+= ${QTPREFIX}/bin
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
INSTALLATION_DIRS+= ${QTPREFIX}/include
INSTALLATION_DIRS+= ${QTPREFIX}/lib
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/accessible
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/bearer
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/codecs
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/graphicssystems
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/iconengines
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/imageformats
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/inputmethods
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
do-install:
.for prog in moc rcc uic
${INSTALL_PROGRAM} ${WRKSRC}/bin/${prog} ${DESTDIR}${QTPREFIX}/bin/
.endfor
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/uic3 \
${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
cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} ${INSTALL_ENV} \
${MAKE_PROGRAM} install_flat_headers install_targ_headers install_class_headers
.endfor
cd ${DESTDIR}${PREFIX} && find qt4/include -type f -print > ${WRKDIR}/PLIST
.for lib in Qt3Support QtCore QtDeclarative QtGui QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns jscore
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${lib}.la \
${DESTDIR}${QTPREFIX}/lib/
sed -e "s:${WRKSRC}:${QTPREFIX}:g" \
-e "s:${QTPREFIX}/lib/lib\\([A-Za-z3]*\\)\\.la:-l\\1:g" \
${WRKSRC}/lib/pkgconfig/${lib}.pc > ${WRKDIR}/${lib}.pc
${INSTALL_DATA} ${WRKDIR}/${lib}.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/
.endfor
${INSTALL_DATA} ${WRKSRC}/tools/porting/src/q3porting.xml ${DESTDIR}${QTPREFIX}
.for plug in qtaccessiblecompatwidgets qtaccessiblewidgets
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/accessible/lib${plug}.la \
${DESTDIR}${QTPREFIX}/plugins/accessible/
.endfor
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/bearer/libqgenericbearer.la \
${DESTDIR}${QTPREFIX}/plugins/bearer/
.for codec in qcncodecs qjpcodecs qkrcodecs qtwcodecs
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/codecs/lib${codec}.la \
${DESTDIR}${QTPREFIX}/plugins/codecs/
.endfor
.for plug in qglgraphicssystem qtracegraphicssystem
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/graphicssystems/lib${plug}.la \
${DESTDIR}${QTPREFIX}/plugins/graphicssystems/
.endfor
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/iconengines/libqsvgicon.la \
${DESTDIR}/${QTPREFIX}/plugins/iconengines/
.for plug in qgif qico qjpeg qsvg
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/imageformats/lib${plug}.la \
${DESTDIR}${QTPREFIX}/plugins/imageformats/
.endfor
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/plugins/inputmethods/libqimsw-multi.la \
${DESTDIR}/${QTPREFIX}/plugins/inputmethods/
.if ${OPSYS} == "Darwin" && empty(MACHINE_PLATFORM:MDarwin-[567].*)
SUBST_CLASSES+= socklen
SUBST_MESSAGE.socklen= Correcting socklen_t.
SUBST_STAGE.socklen= pre-configure
SUBST_FILES.socklen= mkspecs/darwin-g++/qplatformdefs.h
SUBST_SED.socklen= -e 's/QT_SOCKLEN_T.*/QT_SOCKLEN_T socklen_t/'
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"