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

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