wok-6.x annotate seamonkey/receipt @ rev 8914

gtk+: add wget in BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 17:00:32 2011 +0100 (2011-02-28)
parents 0b4cf0d9e1b5
children 940b5937e496
rev   line source
pankso@2747 1 # SliTaz package receipt.
pankso@2747 2
pankso@2747 3 PACKAGE="seamonkey"
slaxemulator@7585 4 VERSION="2.0.11"
pankso@2747 5 CATEGORY="network"
pankso@2747 6 SHORT_DESC="Seamonkey suite (browser, mail, news reader)."
pankso@2747 7 MAINTAINER="pankso@slitaz.org"
pankso@2747 8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
slaxemulator@6336 9 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt GConf curl"
slaxemulator@6336 10 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils xorg-libXft-dev perl alsa-lib alsa-lib-dev findutils python python-dev curl-dev"
pankso@2747 11 WEB_SITE="http://www.seamonkey-project.org/"
pascal@5484 12 WGET_URL="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/source/$TARBALL"
pankso@2747 13
pankso@2747 14 # Rules to configure and make the package.
pankso@2747 15 compile_rules()
pankso@2747 16 {
slaxemulator@8729 17 #mv mozilla $PACKAGE-$VERSION 2>/dev/null || exit 1
erjo@4806 18 mv comm-1.9.1 $PACKAGE-$VERSION 2>/dev/null
pankso@2747 19 cp -a stuff/seamonkey.mozconfig $src/.mozconfig
pankso@2747 20 cd $src
slaxemulator@8729 21 #patch -p1 -i ../stuff/google-breakpad.u || exit 1
slaxemulator@8729 22 cat >> mozilla/layout/build/Makefile.in << "EOF"
pankso@2747 23 ifdef MOZ_ENABLE_CANVAS
pankso@2747 24 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
pankso@2747 25 endif
pankso@2747 26 EOF
slaxemulator@8729 27 unset CFLAGS
slaxemulator@8729 28 unset CXXFLAGS
slaxemulator@8729 29
slaxemulator@8729 30 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey-$VERSION"
slaxemulator@8729 31 make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
slaxemulator@8729 32 make -j1 -f client.mk DESTDIR=$DESTDIR install
pankso@2747 33 }
pankso@2747 34
pankso@2747 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2747 36 genpkg_rules()
pankso@2747 37 {
pankso@2747 38 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
pankso@2747 39 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
pankso@2747 40 cp -a $_pkg/usr/lib/seamonkey-* $fs/usr/lib
pankso@2747 41 # Home page, bookmarks file and branding.
pankso@2747 42 cp -a stuff/bookmarks.html \
pankso@2747 43 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
pankso@2747 44 # User preference.
pankso@2747 45 cp -a stuff/userChrome.css \
pankso@2747 46 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
pankso@2747 47 # Move default config to /etc/seamonkey (/usr maybe read-only)
pankso@2747 48 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
pankso@2747 49 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
pankso@2747 50 # Remove unecessary file and set permissions.
pankso@2747 51 rm -rf $fs/etc/seamonkey/profile/US
pankso@2747 52 chown -R root.root $fs/etc
erjo@4826 53
erjo@4826 54 # Create default user preference file
erjo@4826 55 cp stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
erjo@4826 56
pankso@2747 57 }
pankso@2747 58
pankso@2747 59 clean_wok()
pankso@2747 60 {
pankso@2747 61 rm -rf build
pankso@2747 62 }