2017-11-23 18:19:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.121 2017/11/23 17:20:20 wiz Exp $
|
2006-02-20 13:07:12 +01:00
|
|
|
|
2006-02-25 10:25:00 +01:00
|
|
|
PKGNAME= qt4-libs-${QTVERSION}
|
2017-11-23 18:19:40 +01:00
|
|
|
PKGREVISION= 9
|
2006-02-25 10:25:00 +01:00
|
|
|
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
|
|
|
|
2011-08-18 14:34:26 +02:00
|
|
|
# kdelibs4 requires openssl support!
|
|
|
|
CONFIGURE_ARGS+= -openssl-linked
|
|
|
|
|
2016-02-01 11:28:20 +01:00
|
|
|
CONFIGURE_ARGS+= -iconv
|
|
|
|
|
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
|
2013-07-07 20:13:56 +02:00
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/imports/Qt/labs/shaders
|
2010-11-15 14:05:44 +01:00
|
|
|
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
|
|
|
|
2012-01-23 05:14:26 +01:00
|
|
|
SUBST_CLASSES+= no-libtool
|
|
|
|
SUBST_MESSAGE.no-libtool= Removing unwanted libtool link command.
|
|
|
|
SUBST_STAGE.no-libtool= post-configure
|
|
|
|
SUBST_FILES.no-libtool= translations/Makefile
|
|
|
|
SUBST_SED.no-libtool= -e '/@: IGNORE THIS LINE/s,=.*$$,= @:,'
|
|
|
|
|
2006-02-20 13:07:12 +01:00
|
|
|
do-install:
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in moc rcc uic
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${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/
|
2013-07-07 20:13:56 +02:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/imports/Qt/labs/shaders/libqmlshadersplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/Qt/labs/shaders/
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2010-11-15 14:05:44 +01:00
|
|
|
${WRKSRC}/imports/QtWebKit/libqmlwebkitplugin.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/imports/QtWebKit/
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in corelib declarative gui multimedia network opengl qt3support script scripttools sql svg testlib xml xmlpatterns 3rdparty/webkit/Source/WebKit/qt
|
|
|
|
cd ${WRKSRC}/src/${f} && 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
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in Qt3Support QtCore QtDeclarative QtGui QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns jscore webcore
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/lib${f}.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" \
|
2014-08-13 11:17:35 +02:00
|
|
|
${WRKSRC}/lib/pkgconfig/${f}.pc | ${AWK} '!x[$$0]++' > ${WRKDIR}/${f}.pc
|
2013-07-07 20:13:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${f}.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}
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in qtaccessiblecompatwidgets qtaccessiblewidgets
|
2006-02-20 13:07:12 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2013-07-07 20:13:56 +02:00
|
|
|
${WRKSRC}/plugins/accessible/lib${f}.la \
|
2008-02-04 19:07:53 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/accessible/
|
2006-02-20 13:07:12 +01:00
|
|
|
.endfor
|
2013-07-07 20:13:56 +02:00
|
|
|
#.for f in qcorewlanbearer qgenericbearer
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/bearer/libqcorewlanbearer.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/plugins/bearer/
|
|
|
|
.endif
|
2010-11-15 14:05:44 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
|
|
${WRKSRC}/plugins/bearer/libqgenericbearer.la \
|
|
|
|
${DESTDIR}${QTPREFIX}/plugins/bearer/
|
2013-07-07 20:13:56 +02:00
|
|
|
#.endfor
|
|
|
|
.for f in qcncodecs qjpcodecs qkrcodecs qtwcodecs
|
2010-01-29 19:19:09 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2013-07-07 20:13:56 +02:00
|
|
|
${WRKSRC}/plugins/codecs/lib${f}.la \
|
2010-01-29 19:19:09 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/codecs/
|
|
|
|
.endfor
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in qglgraphicssystem qtracegraphicssystem
|
2010-01-29 19:19:09 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2013-07-07 20:13:56 +02:00
|
|
|
${WRKSRC}/plugins/graphicssystems/lib${f}.la \
|
2010-01-29 19:19:09 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/plugins/graphicssystems/
|
|
|
|
.endfor
|
2013-07-07 20:13:56 +02:00
|
|
|
.for f in qsvgicon
|
2010-01-29 19:19:09 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2013-07-07 20:13:56 +02:00
|
|
|
${WRKSRC}/plugins/iconengines/lib${f}.la \
|
2010-01-29 19:19:09 +01:00
|
|
|
${DESTDIR}/${QTPREFIX}/plugins/iconengines/
|
2013-07-07 20:13:56 +02:00
|
|
|
.endfor
|
|
|
|
.for f in qgif qico qjpeg qsvg qtga
|
2006-02-20 13:07:12 +01:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
2013-07-07 20:13:56 +02:00
|
|
|
${WRKSRC}/plugins/imageformats/lib${f}.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
|
|
|
|
|
2016-02-01 11:28:20 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2011-01-12 08:07:06 +01:00
|
|
|
.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"
|
2011-08-18 14:34:26 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2006-02-20 13:07:12 +01:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|