wok-next annotate xine-plugin/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
rev   line source
al@20475 1 # SliTaz package receipt v2.
pascal@1653 2
pascal@1653 3 PACKAGE="xine-plugin"
pascal@1653 4 VERSION="1.0.2"
pascal@1653 5 CATEGORY="multimedia"
al@20475 6 SHORT_DESC="Xine media player Firefox plugin"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@21032 9 WEB_SITE="http://xinehq.de/"
al@20475 10
pascal@1653 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20475 12 WGET_URL="$SF_MIRROR/xine/$TARBALL"
pascal@1653 13
al@20617 14 BUILD_DEPENDS="shared-mime-info xine-lib xine-lib-dev xorg-dev gfortran"
pascal@15000 15
al@20475 16 compile_rules() {
al@21020 17 mkdir -p $install/root/.mozilla/plugins
al@20604 18
al@20475 19 ./configure $CONFIGURE_ARGS &&
al@20604 20 fix libtool &&
pascal@1653 21 make &&
al@21020 22 make DESTDIR=$install install || return 1
al@20475 23
al@20475 24 mkdir -p $install/usr/share/xine
al@20633 25 # There's something different, don't know why
al@20633 26 if [ -d $install/root ]; then
al@20633 27 # in next64
al@20633 28 echo "Found $install/root/.mozilla/plugins/"
al@20633 29 mv $install/root/.mozilla/plugins/* $install/usr/share/xine/
al@20633 30 rm -r $install/root/
al@20633 31 else
al@20633 32 # in next
al@20633 33 echo "Found $install/.mozilla/plugins/"
al@20633 34 mv $install/.mozilla/plugins/* $install/usr/share/xine/
al@20633 35 rm -r $install/.mozilla
al@20633 36 fi
pascal@1653 37 }
pascal@1653 38
al@20475 39 genpkg_rules() {
al@20475 40 copy *.so
al@20475 41 DEPENDS="xine-lib firefox"
pascal@1653 42 }
pascal@1653 43
al@20475 44 post_install() {
pascal@18730 45 ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/
pascal@18730 46 ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/"
pascal@1653 47 }