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
|
2012-02-26 20:07:56 +08:00
|
|
|
pkgver=0.8.10
|
|
|
|
pkgrel=1
|
2011-05-10 09:25:04 +08:00
|
|
|
pkgdesc="GNU Flash player and kpath plugin for KDE 4."
|
2010-10-21 07:47:31 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.gnu.org/software/gnash/"
|
|
|
|
license=('GPL')
|
2011-06-26 06:23:47 +08:00
|
|
|
depends=('agg' 'ffmpeg' 'libjpeg' 'libpng' 'giflib' 'zlib' 'curl' 'giflib' 'boost-libs' 'libldap' 'sdl'
|
2011-05-27 23:12:02 +08:00
|
|
|
'speex' 'fontconfig' 'libva' 'libxinerama' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg'
|
2011-11-18 04:46:42 +08:00
|
|
|
'libdca' 'kdebase' 'xulrunner' 'hicolor-icon-theme' 'desktop-file-utils' 'pkgconfig' 'libtool')
|
2012-02-26 20:07:56 +08:00
|
|
|
makedepends=('boost')
|
2010-10-21 07:47:31 +08:00
|
|
|
provides=('gnash' 'gnash-common')
|
|
|
|
conflicts=('flashplugin' 'flashplugin-square')
|
2010-10-21 09:28:16 +08:00
|
|
|
options=(!libtool !emptydirs)
|
2012-02-26 20:07:56 +08:00
|
|
|
backup=(etc/gnashrc etc/gnashthumbnailrc)
|
2012-01-16 08:44:42 +08:00
|
|
|
source=("http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2"
|
2012-02-26 20:07:56 +08:00
|
|
|
"nodebug.patch")
|
|
|
|
md5sums=('63e9f79c41d93d48c5a2fa94856548c4'
|
|
|
|
'371a91b3eb90df268607b731e7ec03c2')
|
2011-05-10 09:25:04 +08:00
|
|
|
|
|
|
|
build() {
|
2012-01-16 08:44:42 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
2012-02-26 20:07:56 +08:00
|
|
|
patch -Np1 -i "$srcdir/nodebug.patch"
|
2011-05-10 09:25:04 +08:00
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
sed -i "s/moc-qt4/moc/g; s/uic-qt4/uic/g" configure
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--enable-renderer=agg \
|
2012-01-16 08:44:42 +08:00
|
|
|
--enable-media=gst \
|
2011-05-10 09:25:04 +08:00
|
|
|
--enable-gui=kde4 \
|
2012-02-26 20:07:56 +08:00
|
|
|
--enable-sound=sdl \
|
|
|
|
--enable-hwaccel=vaapi \
|
|
|
|
--without-gconf \
|
2011-05-10 09:25:04 +08:00
|
|
|
--with-plugins-install=system \
|
|
|
|
--with-npapi-plugindir=/usr/lib/mozilla/plugins \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc
|
|
|
|
|
|
|
|
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
|
2011-11-18 04:46:42 +08:00
|
|
|
make
|
2011-05-10 09:25:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-01-16 08:44:42 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2011-05-10 09:25:04 +08:00
|
|
|
|
2011-11-18 04:46:42 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
make DESTDIR="${pkgdir}" install-plugins
|
2011-05-10 09:25:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|