wok-6.x annotate netsurf/receipt @ rev 15327
libmng: remove automake depricated automatic de-ANSI-fication support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 28 09:30:43 2013 +0000 (2013-09-28) |
parents | 27f52fdaa413 |
children | 91654f4ca530 |
rev | line source |
---|---|
pankso@2827 | 1 # SliTaz package receipt. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
slaxemulator@6531 | 4 VERSION="2.6" |
pankso@2827 | 5 CATEGORY="network" |
pankso@2827 | 6 SHORT_DESC="A simple, fast and light web browser using GTK." |
pankso@2827 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@15002 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pascal@15002 | 10 WEB_SITE="http://www.netsurf-browser.org/" |
pascal@15002 | 11 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL" |
pascal@15002 | 12 TAGS="browser" |
pascal@15002 | 13 |
pankso@4334 | 14 DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \ |
slaxemulator@6531 | 15 libcurl libglade librsvg libgsf libcss libmng zlib libxml2" |
slaxemulator@6531 | 16 BUILD_DEPENDS="$DEPENDS gtk+-dev libglade-dev openssl-dev libpng-dev jpeg-dev lcms-dev \ |
erjo@5932 | 17 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \ |
pascal@11527 | 18 libcss-dev libwapcaplet-dev libmng-dev zlib-dev libxml2-dev libcroco" |
pankso@2827 | 19 |
pankso@2827 | 20 # Rules to configure and make the package. |
pankso@2827 | 21 compile_rules() |
pankso@2827 | 22 { |
pankso@4175 | 23 mv netsurf $PACKAGE-$VERSION 2>/dev/null |
pankso@2827 | 24 cd $src |
slaxemulator@9241 | 25 sed -i 's#GtkNotebookPage#GtkWidget#' gtk/gtk_tabs.c |
slaxemulator@9241 | 26 sed -i 's#GTK_WIDGET_SET_FLAGS(GTK_WIDGET(g->layout), GTK_CAN_FOCUS);#gtk_widget_set_can_focus(GTK_WIDGET(g->layout), true);#' \ |
slaxemulator@9241 | 27 gtk/gtk_window.c |
slaxemulator@9241 | 28 |
slaxemulator@9700 | 29 cp -a $stuff/Makefile.config . |
erjo@5932 | 30 |
erjo@5932 | 31 # Fix install target |
erjo@5932 | 32 sed -i 's/cp -vRL/cp -RL/' Makefile |
erjo@5932 | 33 sed -i 's/cp -v/cp /' Makefile |
erjo@5932 | 34 sed -i 's|/usr/local|/usr|' Makefile.defaults |
erjo@5932 | 35 |
pascal@15002 | 36 make install DESTDIR=$DESTDIR PREFIX=/usr |
slaxemulator@9241 | 37 |
pankso@2827 | 38 } |
pankso@2827 | 39 |
pankso@2827 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2827 | 41 genpkg_rules() |
pankso@2827 | 42 { |
erjo@5932 | 43 mkdir -p $fs/usr/share \ |
erjo@5932 | 44 $fs/usr/lib/netsurf |
erjo@5932 | 45 |
pascal@15002 | 46 cp -a $install/usr/bin $fs/usr |
pascal@15002 | 47 cp -a $install/usr/share/netsurf $fs/usr/share |
erjo@5932 | 48 |
erjo@5932 | 49 |
pankso@2827 | 50 # Remove files to save some space |
pankso@2827 | 51 rm -rf $fs/usr/share/netsurf/docs |
pankso@2827 | 52 rm -rf $fs/usr/share/netsurf/*.xpm |
pankso@2827 | 53 rm -rf $fs/usr/share/netsurf/license |
pankso@2835 | 54 # Webhome |
pankso@2835 | 55 cp -a stuff/webhome $fs/usr/share |
pankso@2835 | 56 chown -R root.root $fs |
pankso@2827 | 57 } |