mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
2a42319cd5
Source/JavaScriptCore/API/JSStringRef.cpp:40:12: error: no matching function for call to 'create' return OpaqueJSString::create(chars, numChars).leakRef(); ^~~~~~~~~~~~~~~~~~~~~~ ./Source/JavaScriptCore/API/OpaqueJSString.h:44:39: note: candidate function not viable: no known conversion from 'const JSChar *' (aka 'const unsigned short *') to 'const LChar *' (aka 'const unsigned char *') for 1st argument static PassRefPtr<OpaqueJSString> create(const LChar* characters, unsigned length) ^ ./Source/JavaScriptCore/API/OpaqueJSString.h:49:39: note: candidate function not viable: no known conversion from 'const JSChar *' (aka 'const unsigned short *') to 'const UChar *' (aka 'const char16_t *') for 1st argument static PassRefPtr<OpaqueJSString> create(const UChar* characters, unsigned length) ^ ./Source/JavaScriptCore/API/OpaqueJSString.h:39:39: note: candidate function not viable: requires 0 arguments, but 2 were provided static PassRefPtr<OpaqueJSString> create() ^ ./Source/JavaScriptCore/API/OpaqueJSString.h:54:57: note: candidate function not viable: requires 1 argument, but 2 were provided JS_EXPORT_PRIVATE static PassRefPtr<OpaqueJSString> create(const String&); ^ Source/JavaScriptCore/API/JSStringRef.cpp:65:35: error: no matching function for call to 'createWithoutCopying' return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars)).leakRef(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Source/WTF/wtf/text/StringImpl.h:393:54: note: candidate function not viable: no known conversion from 'const JSChar *' (aka 'const unsigned short *') to 'const UChar *' (aka 'const char16_t *') for 1st argument WTF_EXPORT_STRING_API static PassRef<StringImpl> createWithoutCopying(const UChar* characters, unsigned length); ^ ./Source/WTF/wtf/text/StringImpl.h:394:54: note: candidate function not viable: no known conversion from 'const JSChar *' (aka 'const unsigned short *') to 'const LChar *' (aka 'const unsigned char *') for 1st argument WTF_EXPORT_STRING_API static PassRef<StringImpl> createWithoutCopying(const LChar* characters, unsigned length); ^ Source/JavaScriptCore/API/JSStringRef.cpp:86:12: error: cannot initialize return object of type 'const JSChar *' (aka 'const unsigned short *') with an rvalue of type 'const UChar *' (aka 'const char16_t *') return string->characters(); ^~~~~~~~~~~~~~~~~~~~ PR: 218788 Obtained from: upstream (rebased)
115 lines
3.3 KiB
Makefile
115 lines
3.3 KiB
Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= webkit
|
|
PORTVERSION= 2.4.11
|
|
PORTREVISION= 12
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://webkitgtk.org/releases/
|
|
PKGNAMESUFFIX= -gtk2
|
|
DISTNAME= ${PORTNAME}gtk-${PORTVERSION}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Opensource browser engine using the GTK+ 2 toolkit
|
|
|
|
BUILD_DEPENDS= gtkdoc-rebase:textproc/gtk-doc \
|
|
p5-Switch>0:lang/p5-Switch \
|
|
python:lang/python \
|
|
geoclue>=0:net/geoclue
|
|
LIB_DEPENDS= libenchant.so:textproc/enchant \
|
|
libsecret-1.so:security/libsecret \
|
|
libicutu.so:devel/icu \
|
|
libharfbuzz.so:print/harfbuzz \
|
|
libharfbuzz-icu.so:print/harfbuzz-icu \
|
|
libpng16.so:graphics/png \
|
|
libwebp.so:graphics/webp \
|
|
libcurl.so:ftp/curl \
|
|
libsoup-2.4.so:devel/libsoup \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libgstbase-1.0.so:multimedia/gstreamer1 \
|
|
libgstreamer-1.0.so:multimedia/gstreamer1
|
|
RUN_DEPENDS= geoclue>=0:net/geoclue
|
|
|
|
PORTSCOUT= limit:^2\.4\.
|
|
|
|
USE_GSTREAMER1= yes
|
|
USE_XORG= x11 xcomposite xdamage xfixes xrender xt
|
|
USES= bison compiler:c++11-lib gettext gmake gperf jpeg libtool \
|
|
localbase pathfix perl5 pkgconfig shebangfix sqlite tar:xz
|
|
PATHFIX_MAKEFILEIN= GNUmakefile.in
|
|
USE_RUBY= yes
|
|
RUBY_NO_RUN_DEPENDS=yes
|
|
USE_GNOME= cairo gdkpixbuf2 gtk20 introspection:build libxslt
|
|
USE_GL= gl
|
|
USE_PERL5= build
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= AR=/usr/bin/ar \
|
|
ac_cv_path_DOLT_BASH=""
|
|
INSTALL_TARGET= install-strip
|
|
CONFIGURE_ARGS= --with-gtk=2.0 \
|
|
--enable-svg-fonts \
|
|
--enable-geolocation \
|
|
--enable-introspection \
|
|
--disable-webkit2 \
|
|
--with-html-dir=${PREFIX}/share/gtk-doc/html/webkit1
|
|
MAKEFILE= GNUmakefile
|
|
MAKE_ENV= XDG_CACHE_HOME=${WRKDIR}
|
|
|
|
CONFIGURE_ARGS+=--disable-egl \
|
|
--disable-gles2
|
|
SHEBANG_FILES= \
|
|
Source/JavaScriptCore/create_hash_table \
|
|
Source/JavaScriptCore/inspector/scripts/xxd.pl \
|
|
Source/WebCore/css/*.pl \
|
|
Source/WebCore/dom/*.pl \
|
|
Source/WebCore/make-hash-tools.pl \
|
|
Source/WebCore/page/make_settings.pl \
|
|
Source/WebCore/platform/text/mac/make-charset-table.pl \
|
|
Source/WebKit2/Scripts/generate-forwarding-headers.pl \
|
|
Source/WebCore/bindings/scripts/*.p[lm] \
|
|
Source/JavaScriptCore/create_hash_table
|
|
|
|
BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk2
|
|
#_BROWSER_PLUGINS_DIR= ${BROWSER_PLUGINS_DIR:S|^/|"|:S|/|", "|g}",
|
|
|
|
OPTIONS_DEFINE= DEBUG FULLDEBUG
|
|
DEBUG_DESC= Just enable debug symbols
|
|
FULLDEBUG_DESC= Enable asserts and other debug support
|
|
|
|
FULLDEBUG_CONFIGURE_ENABLE= debug
|
|
DEBUG_CONFIGURE_ON= --enable-debug-symbols=yes
|
|
DEBUG_CONFIGURE_OFF= --disable-debug-symbols
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc64 || ${ARCH} == powerpc || ${ARCH} == sparc64
|
|
CONFIGURE_ARGS+= --disable-jit
|
|
CFLAGS+= -DENABLE_YARR_JIT=0
|
|
.endif
|
|
|
|
.if ${ARCH} == powerpc64
|
|
CFLAGS+= -mminimal-toc
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
CXXFLAGS+= -Wno-c++11-extensions # Shutup warning spam
|
|
CXXFLAGS+= -Qunused-arguments
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
|
|
${WRKSRC}/Source/WebCore/plugins/PluginDatabase.cpp
|
|
# Since ruby 2.2 there is no ruby symlink
|
|
@${REINPLACE_CMD} -e 's|ruby|${RUBY_NAME}|g' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Programs/GtkLauncher \
|
|
${STAGEDIR}${PREFIX}/bin/GtkLauncher-1
|
|
|
|
.include <bsd.port.post.mk>
|