blob: 60184aa502dd3569a6b99f659aa67c53841da853 (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnash
pkgver=0.8.9
pkgrel=1
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
ffmpeg-dev mesa-dev gtk+-dev sdl-dev boost-dev giflib-dev
speex-dev libxml2-dev jpeg-dev xulrunner-dev gtkglext-dev
curl-dev"
makedepends="$depends_dev libtool"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-mozilla $pkgname-sdl $pkgname-fb"
source="http://mirrors.igsobe.com/gnu/gnash/$pkgver/gnash-$pkgver.tar.gz
gnash-ffmpeg.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
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || 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() {
pkgdesc="$pkgdesc (mozilla plugin)"
mkdir -p "$subpkgdir"/usr/lib/mozilla/plugins
mv "$_builddir"/plugin/npapi/.libs/libgnashplugin.so "$subpkgdir"/usr/lib/mozilla/plugins
}
md5sums="01d0420932eede07211e368d405aee9c gnash-0.8.9.tar.gz
b324b3fee1e017d8fcc4d991146266f8 gnash-ffmpeg.patch"
|