wok annotate seamonkey/receipt @ rev 11527

netsurf: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 24 15:02:02 2011 +0100 (2011-12-24)
parents 83dde2fb901c
children 74f549cde3eb
rev   line source
pankso@2747 1 # SliTaz package receipt.
pankso@2747 2
pankso@2747 3 PACKAGE="seamonkey"
devl547@11335 4 VERSION="2.5"
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"
devl547@11335 9 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt curl libnotify libevent libvpx"
devl547@11335 10 BUILD_DEPENDS="gtk+-dev zip libIDL coreutils xorg-libXft-dev libevent-dev libvpx-dev \
devl547@11335 11 perl alsa-lib alsa-lib-dev findutils python python-dev wireless_tools-dev mesa-dev \
devl547@11335 12 yasm libnotify-dev curl-dev"
pankso@2747 13 WEB_SITE="http://www.seamonkey-project.org/"
devl547@11335 14 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/source/$TARBALL"
pankso@2747 15
pankso@2747 16 # Rules to configure and make the package.
pankso@2747 17 compile_rules()
pankso@2747 18 {
pascal@8974 19 cp -a $stuff/seamonkey.mozconfig $src/.mozconfig
pankso@2747 20 cd $src
pascal@8974 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
devl547@11335 29 patch -Np1 -i $stuff/seamonkey-2.0-lang.patch
devl547@11335 30 patch -Np1 -i $stuff/seamonkey-install-dir.patch
devl547@11335 31 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey"
slaxemulator@8729 32 make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
slaxemulator@8729 33 make -j1 -f client.mk DESTDIR=$DESTDIR install
pankso@2747 34 }
pankso@2747 35
pankso@2747 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2747 37 genpkg_rules()
pankso@2747 38 {
pankso@2747 39 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
pankso@2747 40 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
devl547@11335 41 cp -a $_pkg/usr/lib/seamonkey $fs/usr/lib
pankso@2747 42 # Home page, bookmarks file and branding.
pascal@8974 43 cp -a $stuff/bookmarks.html \
devl547@11335 44 $fs/usr/lib/$PACKAGE/defaults/profile
pankso@2747 45 # User preference.
pascal@8974 46 cp -a $stuff/userChrome.css \
devl547@11335 47 $fs/usr/lib/$PACKAGE/defaults/profile/chrome
pankso@2747 48 # Move default config to /etc/seamonkey (/usr maybe read-only)
devl547@11335 49 mv -f $fs/usr/lib/$PACKAGE/defaults $fs/etc/$PACKAGE
devl547@11335 50 ln -sf /etc/$PACKAGE $fs/usr/lib/$PACKAGE/defaults
pankso@2747 51 # Remove unecessary file and set permissions.
pankso@2747 52 rm -rf $fs/etc/seamonkey/profile/US
pankso@2747 53 chown -R root.root $fs/etc
erjo@4826 54
erjo@4826 55 # Create default user preference file
pascal@8974 56 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
pankso@2747 57 }