blob: 724ee97c02df5ad5fdb5b0e7cf4eb87a75ff275d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# $NetBSD: Makefile,v 1.102 2015/10/25 16:48:23 leot Exp $
DISTNAME= webkitgtk-2.10.2
PKGNAME= ${DISTNAME:S/webkitgtk/webkit-gtk/}
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.webkitgtk.org/releases/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.webkitgtk.org/
COMMENT= GTK port of the WebKit browser engine
LICENSE= 2-clause-bsd AND gnu-lgpl-v2
# shm_open(3) and shm_unlink(3) appeared in NetBSD 7.0
NOT_FOR_PLATFORM= NetBSD-[1-6]*-*
BUILD_DEPENDS+= gettext-tools>=0.18:../../devel/gettext-tools
USE_CMAKE= yes
USE_LANGUAGES= c c++
#USE_LIBTOOL= yes
USE_TOOLS+= automake bison gmake perl:build pkg-config msgfmt
# GCC >= 4.7 or Clang >= 3.3
# XXX: Kludge, upstream needs GCC 4.9.0 for IndexedDB support.
# XXX: patches/patch-Source_cmake_OptionsGTK.cmake disables that to
# XXX: avoid requiring GCC 4.9.0.
GCC_REQD+= 4.7
# Using ld.gold subverts Pkgsrc wrappers, and this package also crashes buggy
# versions of ld.gold.
CMAKE_ARGS+= -DUSE_LD_GOLD=OFF
PKGCONFIG_OVERRIDE+= Source/JavaScriptCore/javascriptcoregtk.pc.in
PKGCONFIG_OVERRIDE+= Source/WebKit2/webkit2gtk.pc.in
PKGCONFIG_OVERRIDE+= Source/WebKit2/webkit2gtk-web-extension.pc.in
CMAKE_ARGS+= -DPORT=GTK
CMAKE_ARGS+= -DENABLE_X11_TARGET=ON
CMAKE_ARGS+= -DENABLE_MINIBROWSER=ON
CMAKE_ARGS+= -DENABLE_GEOLOCATION=OFF
CMAKE_ARGS+= -DUSE_LIBHYPHEN=OFF
REPLACE_PERL+= Source/JavaScriptCore/create_hash_table \
Source/WebCore/bindings/scripts/*.pl \
Source/WebCore/bindings/scripts/InFilesCompiler.pm \
Source/WebCore/bindings/scripts/InFilesParser.pm \
Source/WebCore/css/*.pl \
Source/WebCore/dom/*.pl \
Source/WebCore/make-hash-tools.pl
REPLACE_PYTHON+= Tools/gtk/*.py \
Tools/gtk/generate-gtkdoc
.include "../../lang/ruby/rubyversion.mk"
BUILD_DEPENDS+= ${RUBY_BASE}>=${RUBY_VERSION}:${RUBY_SRCDIR}
CMAKE_ARGS+= -DRUBY_EXECUTABLE=${RUBY}
PYTHON_FOR_BUILD_ONLY= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 1.10.2
.include "../../lang/python/application.mk"
CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHONBIN}
CXXFLAGS.SunOS+= -fpermissive
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11 -Wno-c++11-narrowing
.endif
.if !empty(MACHINE_PLATFORM:MSunOS-*-x86_64)
CMAKE_ARGS+= -DUSE_SYSTEM_MALLOC=ON # XXX: not completely sure (was --disable-fast-malloc)
.endif
.include "options.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=0.9.5
BUILDLINK_DEPMETHOD.gobject-introspection+= build
.include "../../devel/gobject-introspection/buildlink3.mk"
CMAKE_ARGS+= -DENABLE_INTROSPECTION=ON
.include "../../devel/zlib/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
# A correct Webkit build requires flex 2.5.33
.include "../../devel/flex/buildlink3.mk"
.include "../../devel/gperf/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo-gobject/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
BUILDLINK_API_DEPENDS.png+= png>=1.5.1beta08
.include "../../graphics/png/buildlink3.mk"
BUILDLINK_API_DEPENDS.gstreamer1+= gstreamer1>=1.0.3
.include "../../multimedia/gstreamer1/buildlink3.mk"
BUILDLINK_API_DEPENDS.gst-plugins1-base+= gst-plugins1-base>=1.0.3
.include "../../multimedia/gst-plugins1-base/buildlink3.mk"
BUILDLINK_API_DEPENDS.libsoup+= libsoup>=2.42.2nb3
.include "../../net/libsoup/buildlink3.mk"
.include "../../security/libsecret/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.24.17nb3
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|