summaryrefslogtreecommitdiffstats
path: root/webkit/Pkgfile
blob: c5e8e1ec0adeb965837cc14367c0ffd85ccc0394 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Description: Moteur de rendu Web libre pour les navigateurs web
# URL: http://webkitgtk.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk3, curl, dbus, gperf, gst-plugins-base, icu, enchant, libsoup, gobject-introspection, libxslt, xorg-libxt, gobject-introspection, geoclue
# Run on: gtk3,curl,dbus,gst-plugins-base,icu,enchant,libsoup,libxslt,xorg-libxt,geoclue

name=webkit
version=1.7.91
release=1
source=(http://webkitgtk.org/$name-$version.tar.xz
	python.patch
	parallel-make-hack.patch)

buildwebkit() {
	PYTHON=/usr/bin/python2 ../configure --prefix=/usr \
		--enable-introspection \
		--enable-spellcheck \
		--enable-geolocation \
		--enable-video \
		--enable-jit \
		--disable-schemas-compile \
		--with-font-backend=freetype \
		--with-unicode-backend=icu \
		"$@"
	make all-built-sources-local
	make all-ltlibraries-local
	make all-programs-local
	make all-data-local
	make stamp-po
	make DESTDIR=$PKG install
	
}

build() {
	cd $name-$version
	patch -p1 < ../python.patch
	patch -p1 < ../parallel-make-hack.patch
	autoreconf -I Source/autotools -fi
	mkdir build-gtk{2,3}

	(
		cd build-gtk2
		buildwebkit --with-gtk=2.0
		mkdir -p $PKG/usr/lib/$name
		install -m 755 Programs/GtkLauncher $PKG/usr/lib/$name
	)
	(
		cd build-gtk3
		buildwebkit --with-gtk=3.0
		mkdir -p $PKG/usr/lib/${name}3
		install -m 755 Programs/GtkLauncher $PKG/usr/lib/${name}3
	)
}
#	cp -r $name-$version $name-3-$version
#
#	cd $name-$version
#	./configure --prefix=/usr \
#		--sysconfdir=/etc \
#		--localstatedir=/var \
#		--enable-introspection \
#		--enable-video \
#		--enable-jit \
#		--disable-schemas-compile \
#		--with-font-backend=freetype \
#		--with-unicode-backend=icu \
#		--with-gtk=2.0
#	make -j1
#	make DESTDIR=$PKG install
#	mkdir $PKG/usr/lib/$name
#	install -m755 Programs/GtkLauncher $PKG/usr/lib/$name
#
#	cd $SRC/$name-3-$version
#	./configure --prefix=/usr \
#		--sysconfdir=/etc \
#		--localstatedir=/var \
#		--enable-introspection \
#		--enable-video \
#		--enable-jit \
#		--disable-schemas-compile \
#		--with-font-backend=freetype \
#		--with-unicode-backend=icu \
#		--with-gtk=3.0
#	make -j1
#	make DESTDIR=$PKG install
#	mkdir $PKG/usr/lib/${name}3
#	install -m755 Programs/GtkLauncher $PKG/usr/lib/${name}3
#}
#
#		--enable-3d-rendering \
#		--enable-webgl \
#		--enable-channel-messaging \
#		--enable-notifications \
#		--enable-meter-tag \
#		--enable-page-visibility-api
#		--enable-progress-tag \
#		--enable-javascript-debugger \
#		--enable-datagrid \
#		--enable-data-transfer-items \
#		--enable-offline-web-applications \
#		--enable-dom-storage \
#		--enable-indexed-database \
#		--enable-input-color \
#		--enable-input-speech \
#		--enable-sql-database \
#		--enable-icon-database \
#		--enable-image-resizer \
#		--enable-datalist \
#		--enable-sandbox \
#		--enable-media-source
#		--enable-media-statistics \
#		--enable-fullscreen-api \
#		--enable-xhtmlmp \
#		--enable-xpath \
#		--enable-xslt \
#		--enable-geolocation \
#		--enable-client-based-geolocation \
#		--enable-mathml \
#		--enable-svg \
#		--enable-wcss \
#		--enable-shared-workers \
#		--enable-workers \
#		--enable-directory-upload \
#		--enable-file-system \
#		--enable-quota \
#		--enable-filters \
#		--enable-svg-fonts \
#		--enable-web-sockets \
#		--enable-web-timing \
#		--enable-blob \
#		--enable-fast-mobile-scrolling \
#		--enable-jit \
#		--enable-link-prefetch \
#		--enable-introspection \
#		--enable-animation-api \
#		--enable-touch-icon-loading \
#		--enable-register-protocol-handler \
#		--enable-device-orientation \
#		--enable-plugin-process \
#		--enable-video \
#		--enable-video-track \
#		--enable-media-stream
#		--enable-web-audio \