aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/gnash/APKBUILD
blob: 12a9a468b8a9ee1081c3aa5aa05ad6e3ad916e8e (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnash
pkgver=0.8.10
pkgrel=7
pkgdesc="GNU flash player implementation"
url="http://www.gnashdev.org/"
arch="all"
license="GPL"
depends=
depends_dev="agg-dev cairo-dev gstreamer-dev gst-plugins-base-dev
	mesa-dev gtk+-dev sdl-dev boost-dev giflib-dev
	speex-dev libxml2-dev jpeg-dev xulrunner-dev gtkglext-dev
	curl-dev libxmu-dev libx11-dev"
makedepends="$depends_dev libtool"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-mozilla $pkgname-sdl
	$pkgname-fb $pkgname-lang"
source="http://ftp.gnu.org/pub/gnu/gnash/$pkgver/gnash-$pkgver.tar.bz2
	gnash-ffmpeg.patch
	aslr-fix.patch
	gnash-0.8.10-giflib5.patch"

_builddir="$srcdir"/gnash-$pkgver
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
	# append system-mt to avoid underlinking
	sed -i -e 's/^[[:space:]]\+boost_libs="\(.*\)"/boost_libs="\1 system-mt"/' configure
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-media=gst \
		--without-gconf \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/gnash/*.la || return 1
}

sdl() {
	pkgdesc="$pkgdesc (sdl player)"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/sdl-gnash "$subpkgdir"/usr/bin
}

fb() {
	pkgdesc="$pkgdesc (framebuffer player)"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/fb-gnash "$subpkgdir"/usr/bin
}

mozilla() {
	depends="gnash"
	pkgdesc="$pkgdesc (mozilla plugin)"
	mkdir -p "$subpkgdir"/usr/lib/mozilla/plugins
	mv "$_builddir"/plugin/npapi/.libs/libgnashplugin.so "$subpkgdir"/usr/lib/mozilla/plugins
}

md5sums="63e9f79c41d93d48c5a2fa94856548c4  gnash-0.8.10.tar.bz2
b324b3fee1e017d8fcc4d991146266f8  gnash-ffmpeg.patch
64cea4c0b4963b7fd5308beb1b20fed6  aslr-fix.patch
d83b151957d2ecbe49321193b90422dd  gnash-0.8.10-giflib5.patch"
sha256sums="9625072e45df92baa2c28fc9999d4e2deb66bc827530baedfad2e4e2292d1224  gnash-0.8.10.tar.bz2
8be32eb434fba546eddc2699939bd5e2d43898ff6953cac0ceb0a8ee781fcf69  gnash-ffmpeg.patch
13bde56f92492c5cec4f7f60ce7c58042aa5b8d28195db8c34ae47794e3495d7  aslr-fix.patch
d1597ce496d95913a7d5873a0a3c58e4f40fa4ec6e3fc7ae939a66f1362b3e57  gnash-0.8.10-giflib5.patch"
sha512sums="4937782809b086dddd4c290de3893e8d8af677ac4d73bd37143aca2f210979222166f9ccb029f43a63f70c2e0820bb2432447067097fa1dfb1eba8365d07d85e  gnash-0.8.10.tar.bz2
b8b9739f01f7f2008e9c62dfcef2fc0732eab0ee7a587fa20da573e090d3cf965c1d607d7660386b946c4854aea13367fe6982698a2f2c5beac2565ff79f823c  gnash-ffmpeg.patch
1f93e114844607d7e2719dd5e10bc758f6e684f77ad70dcb64e2dba89d6e40849117ad6700baa8497860494bfc43d637a33a85927135e140e5c4c90098295596  aslr-fix.patch
8fb96df3ba38297dc66277c1d15d7a93e91b10c24f0ac94f1a19375eee8c5dc7e16d24ac2d6bc1fd07166e7ae0c1eda1b9e7dd093d667ec397539fef9fffa6b4  gnash-0.8.10-giflib5.patch"