mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:57:15 +08:00
59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
#
|
|
# 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.9
|
|
pkgrel=5
|
|
pkgdesc="GNU Flash player and kpath plugin for KDE 4."
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/gnash/"
|
|
license=('GPL')
|
|
depends=('agg' 'ffmpeg' 'libjpeg' 'libpng' 'giflib' 'zlib' 'curl' 'giflib' 'boost-libs' 'libldap' 'sdl'
|
|
'speex' 'fontconfig' 'libva' 'libxinerama' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg'
|
|
'libdca' 'kdebase' 'xulrunner' 'hicolor-icon-theme' 'desktop-file-utils' 'pkgconfig' 'libtool')
|
|
makedepend=('boost')
|
|
provides=('gnash' 'gnash-common')
|
|
conflicts=('flashplugin' 'flashplugin-square')
|
|
options=(!libtool !emptydirs)
|
|
backup=(etc/gnashrc)
|
|
source=("${pkgname}.zip")
|
|
# gentoo-ffmpeg-0.8.patch)
|
|
md5sums=('d0347a9d31c9c80759c6d4f384212f69')
|
|
#'a88de6b2de6d2b100ab7932e901a4b92')
|
|
|
|
build() {
|
|
cd "$srcdir/gnash"
|
|
# patch -Np1 -i "$srcdir/gentoo-ffmpeg-0.8.patch"
|
|
./autogen.sh
|
|
|
|
sed -i "s/moc-qt4/moc/g; s/uic-qt4/uic/g" configure
|
|
|
|
./configure \
|
|
--enable-renderer=agg \
|
|
--enable-media=gst,ffmpeg \
|
|
--enable-gui=kde4 \
|
|
--enable-sound=sdl \
|
|
--enable-hwaccel=vaapi \
|
|
--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
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/gnash"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
make DESTDIR="${pkgdir}" install-plugins
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|