2010-10-21 07:47:31 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
pkgname=gnash
|
|
|
|
pkgver=0.8.8
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="GNU flash player and kpath plugin for KDE4"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.gnu.org/software/gnash/"
|
|
|
|
license=('GPL')
|
2010-10-21 09:28:16 +08:00
|
|
|
depends=('agg' 'ffmpeg' 'libjpeg' 'libpng' 'giflib' 'zlib' 'curl' 'giflib' 'boost' 'libldap' 'sdl'
|
|
|
|
'speex' 'fontconfig' 'libva' 'libxinerama' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg')
|
2010-10-21 07:47:31 +08:00
|
|
|
provides=('gnash' 'gnash-common')
|
|
|
|
conflicts=('flashplugin' 'flashplugin-square')
|
|
|
|
source=(http://ftp.gnu.org/pub/gnu/gnash/$pkgver/gnash-$pkgver.tar.gz)
|
|
|
|
md5sums=('aec414ee3bebb8901054818fae735214')
|
2010-10-21 09:28:16 +08:00
|
|
|
options=(!libtool !emptydirs)
|
|
|
|
backup=(etc/gnashrc etc/gnashpluginrc)
|
2010-10-21 07:47:31 +08:00
|
|
|
build () {
|
|
|
|
cd $startdir/src/gnash-$pkgver
|
|
|
|
./autogen.sh
|
|
|
|
sed -i "s/moc-qt4/moc/g; s/uic-qt4/uic/g" configure
|
|
|
|
./configure --enable-renderer=agg \
|
|
|
|
--enable-media=ffmpeg \
|
|
|
|
--enable-gui=kde4 \
|
|
|
|
--enable-gif \
|
|
|
|
--enable-jpeg \
|
|
|
|
--enable-png \
|
|
|
|
--enable-z \
|
2010-10-21 09:28:16 +08:00
|
|
|
--with-plugins-install=system \
|
|
|
|
--with-npapi-plugindir=/usr/lib/mozilla/plugins \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc
|
2010-10-21 07:47:31 +08:00
|
|
|
|
2010-10-21 09:28:16 +08:00
|
|
|
sed -i "s:KDE4_APPSDATADIR =.*:KDE4_APPSDATADIR = /usr/share/apps:" ./plugin/klash4/Makefile
|
|
|
|
sed -i "s:KDE4_SERVICESDIR =.*:KDE4_SERVICESDIR = /usr/share/kde4/services:" ./plugin/klash4/Makefile
|
|
|
|
sed -i "s:KDE4_PLUGINDIR =.*:KDE4_PLUGINDIR = /usr/lib/kde4:" ./plugin/klash4/Makefile
|
2010-10-21 07:47:31 +08:00
|
|
|
make || return 1
|
2010-10-21 09:28:16 +08:00
|
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
|
|
make DESTDIR="$pkgdir" install-plugins || return 1
|
2010-10-21 07:47:31 +08:00
|
|
|
}
|