2010-01-18 10:58:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.38 2010/01/18 09:59:43 wiz Exp $
|
2008-02-04 19:07:53 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2006-02-20 13:07:12 +01:00
|
|
|
|
|
|
|
.include "../../x11/qt4-libs/Makefile.common"
|
|
|
|
|
2006-02-25 10:25:00 +01:00
|
|
|
PKGNAME= qt4-libs-${QTVERSION}
|
2010-01-18 10:58:37 +01:00
|
|
|
PKGREVISION= 3
|
2006-02-25 10:25:00 +01:00
|
|
|
COMMENT= C++ X GUI toolkit
|
2006-02-20 13:07:12 +01:00
|
|
|
|
|
|
|
BUILD_TARGET= sub-src
|
2009-10-13 17:59:02 +02:00
|
|
|
INSTALL_TARGET= install_flat_headers install_targ_headers install_class_headers
|
2006-02-25 10:25:00 +01:00
|
|
|
|
2006-02-20 13:07:12 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
UNLIMIT_RESOURCES= datasize
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${QTPREFIX}
|
|
|
|
|
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
|
2007-09-03 11:35:15 +02:00
|
|
|
CONFIGURE_ARGS+= -no-sql-sqlite
|
2007-11-22 19:51:24 +01:00
|
|
|
CONFIGURE_ARGS+= -no-libtiff
|
2007-09-03 11:35:15 +02:00
|
|
|
|
2008-11-03 12:28:21 +01:00
|
|
|
INSTALLATION_DIRS= lib/pkgconfig
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/bin
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/include
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/lib
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/accessible
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/imageformats
|
|
|
|
INSTALLATION_DIRS+= ${QTPREFIX}/plugins/inputmethods
|
2008-02-04 19:07:53 +01:00
|
|
|
|
|
|
|
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q}
|
|
|
|
|
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 \
|
2008-02-04 19:07:53 +01:00
|
|
|
${DESTDIR}${QTPREFIX}/bin
|
2009-07-02 20:26:45 +02:00
|
|
|
.for incl in corelib gui network opengl qt3support script scripttools sql svg xml script testlib 3rdparty/webkit/WebCore
|
2008-02-04 19:07:53 +01:00
|
|
|
cd ${WRKSRC}/src/${incl} && env ${MAKE_ENV} ${INSTALL_ENV} \
|
2007-03-18 18:34:41 +01:00
|
|
|
${MAKE_PROGRAM} ${INSTALL_TARGET}
|
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
|
2009-07-02 20:26:45 +02:00
|
|
|
.for lib in Qt3Support QtCore QtGui QtNetwork QtOpenGL QtSql QtSvg QtXml QtScript QtScriptTools QtTest QtWebKit
|
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" \
|
2007-12-12 02:14:29 +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
|
2008-12-17 11:43:06 +01:00
|
|
|
.for plug in qgif qjpeg qmng 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
|
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
|
|
|
|
|
|
|
.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
|
|
|
|
|
2007-10-13 14:02:14 +02:00
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
2006-02-20 13:07:12 +01:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
|
|
|
.include "../../graphics/mng/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/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"
|
2006-02-20 13:07:12 +01:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|