2015-04-25 16:24:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2015/04/25 14:25:18 tnn Exp $
|
2013-12-13 15:38:34 +01:00
|
|
|
|
2014-12-30 18:23:45 +01:00
|
|
|
DISTNAME= qtwebkit-opensource-src-${QTVERSION}
|
2013-12-13 15:38:34 +01:00
|
|
|
PKGNAME= qt5-qtwebkit-${QTVERSION}
|
2015-04-25 16:24:44 +02:00
|
|
|
PKGREVISION= 4
|
2013-12-13 15:38:34 +01:00
|
|
|
COMMENT= Qt5 WebView module
|
|
|
|
|
2013-12-15 01:09:22 +01:00
|
|
|
BUILD_DEPENDS+= gperf-[0-9]*:../../devel/gperf
|
|
|
|
|
2014-07-28 01:04:30 +02:00
|
|
|
USE_TOOLS+= bison flex pkg-config sed
|
2014-12-30 18:23:45 +01:00
|
|
|
REPLACE_PERL+= Source/WebKit2/Scripts/generate-forwarding-headers.pl
|
2013-12-13 15:38:34 +01:00
|
|
|
|
|
|
|
MAKE_ENV+= QTDIR=${QTDIR}
|
|
|
|
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
|
|
|
|
INSTALLATION_DIRS+= lib/pkgconfig
|
|
|
|
|
2015-01-15 14:03:13 +01:00
|
|
|
.include "../../x11/qt5-qtbase/Makefile.common"
|
|
|
|
|
2014-12-01 12:30:41 +01:00
|
|
|
.if ${USE_CWRAPPERS:Uno} == "yes"
|
2014-12-30 18:23:45 +01:00
|
|
|
BUILDLINK_TRANSFORM+= R:${WRKSRC}/lib:${QTDIR}/lib
|
2014-12-01 12:30:41 +01:00
|
|
|
.else
|
2014-12-30 18:23:45 +01:00
|
|
|
BUILDLINK_TRANSFORM+= rpath:${WRKSRC}/lib:${QTDIR}/lib
|
2014-12-01 12:30:41 +01:00
|
|
|
.endif
|
2013-12-13 15:38:34 +01:00
|
|
|
|
2015-03-31 18:00:21 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_CPU:U} == "arm"
|
|
|
|
LDFLAGS+= -Wl,-no-keep-memory -Wl-reduce-memory
|
|
|
|
.endif
|
|
|
|
|
2013-12-13 15:38:34 +01:00
|
|
|
post-install:
|
2014-12-30 18:23:45 +01:00
|
|
|
.for i in Qt5WebKit.pc Qt5WebKitWidgets.pc
|
|
|
|
cd ${DESTDIR}${PREFIX}/lib/pkgconfig && \
|
|
|
|
ln -f -s ${QTPREFIX}/lib/pkgconfig/${i} ${i}
|
2013-12-13 15:38:34 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
2014-08-10 15:25:40 +02:00
|
|
|
.if ${OPSYS} == "Darwin" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
|
2014-08-10 15:24:54 +02:00
|
|
|
.include "../../devel/libexecinfo/buildlink3.mk"
|
|
|
|
.endif
|
2013-12-13 15:38:34 +01:00
|
|
|
.include "../../graphics/libwebp/buildlink3.mk"
|
2015-01-15 14:03:13 +01:00
|
|
|
.include "../../textproc/icu/buildlink3.mk"
|
2013-12-13 15:38:34 +01:00
|
|
|
.include "../../textproc/libxslt/buildlink3.mk"
|
2014-04-23 09:05:31 +02:00
|
|
|
.if ${OPSYS} != "Darwin"
|
|
|
|
.include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
|
2013-12-14 08:35:04 +01:00
|
|
|
.include "../../x11/libXcomposite/buildlink3.mk"
|
2014-04-23 09:05:31 +02:00
|
|
|
.endif
|
2013-12-13 15:38:34 +01:00
|
|
|
.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
|
|
|
|
.include "../../x11/qt5-qtlocation/buildlink3.mk"
|
|
|
|
.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
|
|
|
|
.include "../../x11/qt5-qtsensors/buildlink3.mk"
|
2015-04-19 16:50:11 +02:00
|
|
|
.include "../../x11/qt5-qtwebchannel/buildlink3.mk"
|
2014-03-15 06:26:17 +01:00
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
2013-12-13 15:38:34 +01:00
|
|
|
.include "../../lang/python/tool.mk"
|
|
|
|
.include "../../lang/ruby/buildlink3.mk"
|
2014-03-15 06:26:17 +01:00
|
|
|
BUILDLINK_DEPMETHOD.${RUBY_BASE}= build
|
2013-12-13 15:38:34 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|