wok view seamonkey/receipt @ rev 17269

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