Changeset View
Changeset View
Standalone View
Standalone View
head/www/qt5-webkit/Makefile
| # $FreeBSD$ | # $FreeBSD$ | ||||
| PORTNAME= webkit | PORTNAME= webkit | ||||
| DISTVERSION= ${QT5_VERSION} | DISTVERSION= 5.212.0-alpha2 | ||||
| PORTREVISION= 1 | |||||
| CATEGORIES= www | CATEGORIES= www | ||||
| MASTER_SITE_SUBDIR= community_releases/${QT5_VERSION:R}/${QT5_VERSION}/ | MASTER_SITES= https://github.com/annulen/${PORTNAME}/releases/download/${DISTNAME}/ | ||||
| PKGNAMEPREFIX= qt5- | PKGNAMEPREFIX= qt5- | ||||
| DISTNAME= qt${PORTNAME}-${DISTVERSION} | |||||
| MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
| COMMENT= Qt WebKit implementation | COMMENT= QtWebKit with a more modern WebKit code base | ||||
| LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | ||||
| libgstapp-1.0.so:multimedia/gstreamer1-plugins \ | |||||
| libgstbase-1.0.so:multimedia/gstreamer1 \ | |||||
| libhyphen.so:textproc/hyphen \ | |||||
| libicui18n.so:devel/icu \ | libicui18n.so:devel/icu \ | ||||
| libleveldb.so:databases/leveldb \ | libpng16.so:graphics/png \ | ||||
| libpng.so:graphics/png \ | |||||
| libwebp.so:graphics/webp | libwebp.so:graphics/webp | ||||
| BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex | |||||
| DISTINFO_FILE= ${MASTERDIR}/distinfo | USES= bison cmake:outsource gperf jpeg pathfix perl5 pkgconfig \ | ||||
| python:build sqlite:3 tar:xz | |||||
| BROKEN_sparc64= cannot build: uses i386 assembler | USE_GNOME= glib20 libxml2 libxslt | ||||
| USE_GSTREAMER1= core | |||||
| USE_GL= gl | USE_QT5= core gui location network opengl printsupport \ | ||||
| USE_GNOME= libxml2 libxslt | qml quick sensors testlib webchannel widgets \ | ||||
| USE_PERL5= build | buildtools_build qmake_build | ||||
| USE_QT5= core gui network opengl printsupport qml quick sql \ | |||||
| widgets buildtools_build | |||||
| QT_DIST= ${PORTNAME} | |||||
| USE_RUBY= yes | USE_RUBY= yes | ||||
| RUBY_NO_RUN_DEPENDS= yes | |||||
| USE_XORG= x11 xcomposite xrender | USE_XORG= x11 xcomposite xrender | ||||
| USES= bison gperf jpeg perl5 pkgconfig python:build qmake:outsource \ | |||||
| sqlite | |||||
| # Use flex(1) from ports. | |||||
| MAKE_ENV= PATH="${LOCALBASE}/bin:${PATH}" | |||||
| # "all" builds many more targets. The default one is called "first" in | |||||
| # QtWebKit, and is invoked by default when make is called without arguments. | |||||
| ALL_TARGET= first | |||||
| USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL} | |||||
| QT_DEFINES= ACCESSIBILITY | # Fix pkgconfig install paths. | ||||
| QT_CONFIG= accessibility accessibility-atspi-bridge | PATHFIX_CMAKELISTSTXT= PlatformQt.cmake | ||||
| OPTIONS_DEFINE= GSTREAMER | RUBY_NO_RUN_DEPENDS= yes | ||||
| OPTIONS_DEFAULT=GSTREAMER | |||||
| GSTREAMER_USE= GNOME=glib20 GSTREAMER1=yes | CMAKE_ARGS= -DPORT:STRING="Qt" \ | ||||
| -DKDE_INSTALL_INCLUDEDIR:PATH="${QT_INCDIR_REL}" \ | |||||
| -DKDE_INSTALL_LIBDIR:PATH="${QT_LIBDIR_REL}" \ | |||||
| -DENABLE_OPENGL:BOOL=TRUE \ | |||||
| -DUSE_QT_MULTIMEDIA:BOOL=FALSE | |||||
| .include <bsd.port.pre.mk> | # Add -DNDEBUG to CXXFLAGS which in turn gets sucked into | ||||
| # CMAKE_CXX_FLAGS_RELEASE where we actually want to have it. | |||||
| # [for the ASSERT in Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp ] | |||||
| CXXFLAGS+= -DNDEBUG | |||||
| # Base ld(1) segfaults on PowerPC (inherited from Qt 4): | PLIST_SUB= FULLVER="${PORTVERSION:R}" | ||||
| # http://bugs.freebsd.org/173042 | |||||
| .if ${ARCH} == "powerpc" | |||||
| BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils | |||||
| .endif | |||||
| post-patch: | .include <bsd.port.mk> | ||||
| ${REINPLACE_CMD} -e 's,python,${PYTHON_VERSION},g' \ | |||||
| -e 's,$$$${PYTHON},${PYTHON_VERSION},g' \ | |||||
| ${WRKSRC}/Source/WebCore/DerivedSources.make \ | |||||
| ${WRKSRC}/Source/WebCore/DerivedSources.pri \ | |||||
| ${WRKSRC}/Source/WebKit2/DerivedSources.make \ | |||||
| ${WRKSRC}/Source/WebKit2/DerivedSources.pri \ | |||||
| ${WRKSRC}/Source/JavaScriptCore/DerivedSources.make \ | |||||
| ${WRKSRC}/Source/JavaScriptCore/DerivedSources.pri \ | |||||
| ${WRKSRC}/Tools/qmake/mkspecs/features/configure.prf | |||||
| pre-configure: | |||||
| @${REINPLACE_CMD} -Ee 's|linux-?\*|unix|g' \ | |||||
| ${WRKSRC}/Source/JavaScriptCore/DerivedSources.pri \ | |||||
| ${WRKSRC}/Source/JavaScriptCore/JavaScriptCore.pri \ | |||||
| ${WRKSRC}/Source/JavaScriptCore/Target.pri \ | |||||
| ${WRKSRC}/Source/WebCore/WebCore.pri \ | |||||
| ${WRKSRC}/Tools/qmake/mkspecs/features/features.prf | |||||
| .if ! ${PORT_OPTIONS:MGSTREAMER} | |||||
| @${REINPLACE_CMD} -e 's|packagesExist.*gstreamer.*|false {|' \ | |||||
| ${WRKSRC}/Tools/qmake/mkspecs/features/features.prf | |||||
| .endif | |||||
| .include <bsd.port.post.mk> | |||||