aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/APKBUILD
blob: 41ec53f1b6c654035c31ef25a36f945f70e9fcd1 (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xulrunner
pkgver=26.0
_ffoxver=$pkgver
pkgrel=6
pkgdesc="runtime environment for xul-based applications"
url="http://developer.mozilla.org/en/XULRunner"
arch="all"
license="GPL LGPL MPL"
depends=
depends_dev="nspr-dev
	     nss-dev
	     gtk+-dev
	     dbus-glib-dev
	     alsa-lib-dev
	     gstreamer-dev
	     gst-plugins-base-dev
	     libvorbis-dev
	     libogg-dev
	     libtheora-dev
	     wireless-tools-dev
	     libnotify-dev
	     libevent-dev
	     libvpx-dev
	     libxt-dev
	     libjpeg-turbo-dev
	     bzip2-dev
	     hunspell-dev
	     startup-notification-dev
	     sqlite-dev
	     libidl-dev
	     mesa-dev"
makedepends="$depends_dev
	     autoconf2.13

	     python
	     zip
	     yasm
	     paxctl

	     autoconf
	     automake
	     libtool"
install=""
options=""
subpackages="$pkgname-dev $pkgname-dbg"
source="ftp://ftp.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2
	mozconfig
	0002-Use-C99-math-isfinite.patch
	0003-xulrunner-jemalloc-aslr.patch
	uclibc-malloc_usable_size.patch
	getchar.patch
	stat.patch
	moz-libc-filename.patch

	fix-ipc.patch
	fix-media.patch
	fix-netwerk.patch
	fix-toolkit.patch
	fix-tools.patch
	fix-gfx.patch
	mozilla-build-arm.patch

	stab.h
	"

# help our shared-object scanner to find the libs
ldpath="/usr/lib/xulrunner-$pkgver"

_builddir="${srcdir}/mozilla-release"
prepare() {
	local i

	cd "$_builddir"

	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	cp "${srcdir}/mozconfig" .mozconfig || return 1
	sed -e "s/#${CLIBC}#//g" -i .mozconfig

	cp "$srcdir"/stab.h toolkit/crashreporter/google-breakpad/src/
}

build() {
	cd "$_builddir"

	# mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope
	# for the best. --nenolod
	unset CFLAGS
	unset CXXFLAGS

	make -j1 -f client.mk build \
		MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
}

package() {
	cd "$_builddir"

	# only used for startupcache creation.
	local paxflags="-m"
	[ "$CARCH" = "x86" ] && paxflags="-msp"

	paxctl -c $paxflags */dist/bin/xpcshell || return 1

	make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1

	# make install does not install xpt.py but its needed by firefox
	mkdir -p "$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin
	cp xpcom/typelib/xpt/tools/xpt.py \
		"$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin/

	msg "Setting up compatibility symlinks..."
	ln -sf /usr/lib/xulrunner-${pkgver}/libxul.so "${pkgdir}"/usr/lib/libxul.so
	ln -sf /usr/lib/xulrunner-${pkgver}/libmozalloc.so "${pkgdir}"/usr/lib/libmozalloc.so
}

dev() {
	replaces="xulrunner"
	depends="xulrunner"

	mkdir -p "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/lib/xulrunner-devel-${pkgver} "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/lib/pkgconfig "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/include "${subpkgdir}"/usr/include
}

md5sums="91ce51cc6474f1269484e5327643a59c  firefox-26.0.source.tar.bz2
4332546696b520412b0dcf2ba8931c06  mozconfig
f43c1f0ae57aa8289b130c6de8caf3ce  0002-Use-C99-math-isfinite.patch
e8b3a22d670241bb5c038729ac49a975  0003-xulrunner-jemalloc-aslr.patch
d3d1e831185da3a3e9ddf56c33449c70  uclibc-malloc_usable_size.patch
507742325de8687529e4e81e31132ddf  getchar.patch
84b101ca9b5f91d3387851e1c42d3908  stat.patch
86b5eb4bb890a45808cc3a46b99cd8a5  moz-libc-filename.patch
38a9c0d5be155164d50a956ac131d991  fix-ipc.patch
960d56439a375998ce4e4597bf245375  fix-media.patch
e1d52fd12bfcf3142028a9ab547cf8d1  fix-netwerk.patch
c12ed36523df9eadb7e686db06d87511  fix-toolkit.patch
7d5294021091e861c6a830b2a2044d7a  fix-tools.patch
d26bf9e63cb3ccfbb3d1f6eac68dc929  fix-gfx.patch
5fd78a4d942ed6a2302418145954d3cb  mozilla-build-arm.patch
4383d038b8d8411ea46f4a109197c19e  stab.h"
sha256sums="31c4fb2792df63ae450e350380a5e18cf1c51487011a9da0b6cc4bffb69d9812  firefox-26.0.source.tar.bz2
a5ab8c12da5f266458e7f456205a58ea3bedcce717dae9e2087cf59db9598a64  mozconfig
2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039  0002-Use-C99-math-isfinite.patch
324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7  0003-xulrunner-jemalloc-aslr.patch
70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2  uclibc-malloc_usable_size.patch
d14357bf44f702d94b8d3ed79bdf81f6271370745c1ac8fa83522bd98be4adc4  getchar.patch
bcdfc27fb1561beb797ed8e3d14cb7c88de54a5aed2eb33bf84e331a2b0ec200  stat.patch
889856baa82413afb2f79b7b3e3add626e1ac181efd398e80c434836b793c294  moz-libc-filename.patch
059a69ff0dbceeaa5bbb1446aa4233bc578a047fcad22c0efa27dc64bbd72980  fix-ipc.patch
d582712c28a26679d728d21d2ef8964d119182edaf580a948f57a9e808ccc5cf  fix-media.patch
0cbb512c4526f0881253a38f1cc79061fba0fe6a0d8b321fb506be190a32e571  fix-netwerk.patch
7deba648e31c05ff0f85332499dad41d646d1a1850334594bcc523c61d9b5d29  fix-toolkit.patch
fabc0e5adca3cbd728c1f7dca2b5fd3b0973eff696656842c3564b96e28c7923  fix-tools.patch
0600b12275516c6062785ddb369f5a7e510f69aaa8ffdf3bbe35df6b516b6941  fix-gfx.patch
01df910900c8897579f19ddfa8768b41b98fae01672cc81c0eaf13936475c5f0  mozilla-build-arm.patch
960d82bbfdc88c95f5cb4f2e1c1bf23dae7519b3b7203914d7b3ddbff1ba4c28  stab.h"
sha512sums="c0933eeb39aa1d5d83d4c85885b87e0b817d945eec4fe8fc1b15256008f14308fbf98d5a83217c112e1ad247133f839f6ad74156eed7b159d32d0fce26532713  firefox-26.0.source.tar.bz2
4e3a392276d82a1006351a673b853bd6e7a57f4ae9ec5806edd9e7c8d51edcbaeb32111423088231a7e887490b755ec9701508fe58564fe69dda7eee7b147551  mozconfig
9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26  0002-Use-C99-math-isfinite.patch
46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b  0003-xulrunner-jemalloc-aslr.patch
9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc  uclibc-malloc_usable_size.patch
18f0696bf4d032c83041110b83ae6531b48474a778fc1deade3b06ba2ae1bfcc9891059287bfb78317c2f5ddc88f5b7ce957312acdb63d4902a57e0b40eb6520  getchar.patch
478bb56c8e87c5ce6ccf1dd31cfb48be8e1a817e77e3158f633cb48bd269692061f8728589b9cebfac04d484518c2525d61ba4988abe8ea274fdd419ee02ab34  stat.patch
005d603c4bb90b4ac0d91775cc500416ec218860971a0888316f4d6a92a51f3a67fa30eacbe12c826e589ac0e2ddf3e72eec451382653fd0d557804d4af1e9a6  moz-libc-filename.patch
3f360d4231355c268fc52e0fedbce5c4f73ad8d60d9424af8641733c0ae181e6226056e605f0d6653b729a9c8e4abe97a9fb2face25938651a7498d5753cea8b  fix-ipc.patch
58e0e7c1c368530b58aa143be0403d733c4b82cc1a9964c925278e5eff147b2ec2c8c34a6cb217387cb7e9f2ca13c2e299745015edaac510704963282dc68e79  fix-media.patch
38ebf7ae81d4b6dac0b6840a64f86759fc10e4a7ef26f1ebdc2b7c8d4aab3f95ddcb204a743b307e5dad0cd6c04b278c2311b1ac599e7bb287092c552ed26a51  fix-netwerk.patch
047f15471c6e906164d92d4476746ff4cd73e097f78e547c1391918e84edf4ac2e986a3f88e0402378e24e1ba6f30ee397ac0ebe0c396ce0e98c8e2489608582  fix-toolkit.patch
419d896ca3f5d35b82aa5aa161b09c14775ee5b11a5a226ce856c2c8176eeaf4b15bcd0473b6109a7bfb09aca44405cecbb3215402f859c1617758082cff6bc6  fix-tools.patch
7d47bcfb09f0e59740427e60357d4ceaaaa3a2359031a2c1508890ec3deff97a466a78933caeb0e22e02b2a13ace4a4d9d87c0872dae99d3830550a19dc9a8f3  fix-gfx.patch
76db19eef8ebcc8886ce7f5d299bbea1682bdc380e0a27e6b0c6ecd9bd9b0a253be60651f91ab7472c1e8d459605b4ed9db42f01a675feb4421ec55995901d0b  mozilla-build-arm.patch
0b3f1e4b9fdc868e4738b5c81fd6c6128ce8885b260affcb9a65ff9d164d7232626ce1291aaea70132b3e3124f5e13fef4d39326b8e7173e362a823722a85127  stab.h"