wok view seamonkey/receipt @ rev 13523

seamonkey: update for libvpx >= 1.0.0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 20 01:13:10 2012 +0200 (2012-10-20)
parents 74f549cde3eb
children 6b09507225ec
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.7.2"
5 CATEGORY="network"
6 SHORT_DESC="Seamonkey suite (browser, mail, news reader)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
9 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt curl libnotify libevent libvpx"
10 BUILD_DEPENDS="gtk+-dev zip libIDL coreutils xorg-libXft-dev libevent-dev libvpx-dev \
11 perl alsa-lib alsa-lib-dev findutils python python-dev wireless_tools-dev mesa-dev \
12 yasm libnotify-dev curl-dev"
13 WEB_SITE="http://www.seamonkey-project.org/"
14 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/source/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cp -a $stuff/seamonkey.mozconfig $src/.mozconfig
20 cd $src
21 sed -i -e 's/USE_INPUT_PARTITION/USE_INPUT_FRAGMENTS/' \
22 -e 's/0.9.7/1.0.0/' mozilla/configure.in mozilla/configure
23 #patch -p1 -i $stuff/google-breakpad.u || exit 1
24 cat >> mozilla/layout/build/Makefile.in << "EOF"
25 ifdef MOZ_ENABLE_CANVAS
26 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
27 endif
28 EOF
29 unset CFLAGS
30 unset CXXFLAGS
31 patch -Np1 -i $stuff/seamonkey-2.0-lang.patch
32 patch -Np1 -i $stuff/seamonkey-install-dir.patch
33 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey"
34 ./configure $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
43 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
44 cp -a $_pkg/usr/lib/seamonkey $fs/usr/lib
45 # Home page, bookmarks file and branding.
46 cp -a $stuff/bookmarks.html \
47 $fs/usr/lib/$PACKAGE/defaults/profile
48 # User preference.
49 cp -a $stuff/userChrome.css \
50 $fs/usr/lib/$PACKAGE/defaults/profile/chrome
51 # Move default config to /etc/seamonkey (/usr maybe read-only)
52 mv -f $fs/usr/lib/$PACKAGE/defaults $fs/etc/$PACKAGE
53 ln -sf /etc/$PACKAGE $fs/usr/lib/$PACKAGE/defaults
54 # Remove unecessary file and set permissions.
55 rm -rf $fs/etc/seamonkey/profile/US
56 chown -R root.root $fs/etc
58 # Create default user preference file
59 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
60 }