wok rev 2827

Add netsurf (Fast and light web browser)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 29 21:33:46 2009 +0200 (2009-04-29)
parents 9ddd8d63344e
children ee1eaa7c9cc2
files netsurf/receipt netsurf/stuff/Makefile.defaults netsurf/stuff/netsurf.desktop netsurf/stuff/netsurf.png
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netsurf/receipt	Wed Apr 29 21:33:46 2009 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="netsurf"
     1.7 +VERSION="2.0"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="A simple, fast and light web browser using GTK."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="gtk+ openssl libpng jpeg lcms libparserutils hubbub libnsgif"
    1.12 +BUILD_DEPENDS="gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev re2c lemon \
    1.13 +libparserutils-dev hubbub-dev libnsgif-dev"
    1.14 +TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    1.15 +WEB_SITE="http://www.netsurf-browser.org/"
    1.16 +WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	cp -a ../stuff/Makefile.defaults .
    1.23 +	make
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
    1.30 +	cp -RL $src/gtk/res $fs/usr/share/netsurf
    1.31 +	cp $src/nsgtk $fs/usr/lib/netsurf
    1.32 +	cp $src/netsurf $fs/usr/bin
    1.33 +	sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
    1.34 +		$fs/usr/bin/netsurf
    1.35 +	sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
    1.36 +		$fs/usr/bin/netsurf
    1.37 +	# Remove files to save some space
    1.38 +	rm -rf $fs/usr/share/netsurf/docs
    1.39 +	rm -rf $fs/usr/share/netsurf/*.xpm
    1.40 +	rm -rf $fs/usr/share/netsurf/license
    1.41 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/netsurf/stuff/Makefile.defaults	Wed Apr 29 21:33:46 2009 +0200
     2.3 @@ -0,0 +1,230 @@
     2.4 +#
     2.5 +# NetSurf default build configuration
     2.6 +#
     2.7 +# Some of these options support an 'AUTO' option, as well as YES and NO.
     2.8 +# When an option is set to AUTO, the Makefile will attempt to detect if that
     2.9 +# feature is available, enabling it if possible.
    2.10 +#
    2.11 +# Options marked "highly recommended" have a severe impact on NetSurf's
    2.12 +# use as a web browser and should be set to YES unless there is a particularly
    2.13 +# good reason not to.
    2.14 +#
    2.15 +# This file should be treated as INVIOLATE and only altered to alter
    2.16 +# the defaults by a core developer. If you wish to configure the build
    2.17 +# of NetSurf then instead please create a file called Makefile.config
    2.18 +# and simply override the statements you require in that.  Remember
    2.19 +# that Makefile.config cannot override the TARGET. That must be set on
    2.20 +# the commandline. i.e. 'make TARGET=framebuffer' However
    2.21 +# Makefile.config can use the TARGET variable to control what to set
    2.22 +# the configuration options to.
    2.23 +#
    2.24 +
    2.25 +# ----------------------------------------------------------------------------
    2.26 +# Options relating to all versions of NetSurf
    2.27 +# ----------------------------------------------------------------------------
    2.28 +
    2.29 +# Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs
    2.30 +# Valid options: YES, NO
    2.31 +NETSURF_USE_BMP := NO
    2.32 +
    2.33 +# Enable NetSurf's use of libnsgif for displaying GIFs
    2.34 +# Valid options: YES, NO				  (highly recommended)
    2.35 +NETSURF_USE_GIF := YES
    2.36 +
    2.37 +# Enable NetSurf's use of libjpeg for displaying JPEGs
    2.38 +# Valid options: YES, NO				  (highly recommended)
    2.39 +NETSURF_USE_JPEG := YES
    2.40 +
    2.41 +# Enable NetSurf's use of libpng for displaying PNGs.  If MNG and PNG
    2.42 +# are both enabled then NetSurf will choose libpng for PNGs, leaving
    2.43 +# MNGs and JNGs to libmng.
    2.44 +# Valid options: YES, NO	  (at least one of PNG/MNG highly recommended)
    2.45 +NETSURF_USE_PNG := YES
    2.46 +
    2.47 +# Enable NetSurf's use of libmng for displaying MNGs, JNGs and PNGs
    2.48 +# Valid options: YES, NO	  (at least one of PNG/MNG highly recommended)
    2.49 +NETSURF_USE_MNG := NO
    2.50 +
    2.51 +# Enable NetSurf's use of libharu for PDF export and GTK printing support.
    2.52 +# There is no auto-detection available for this, as it does not have a
    2.53 +# pkg-config file.
    2.54 +# Valid options: YES, NO
    2.55 +NETSURF_USE_HARU_PDF := NO
    2.56 +
    2.57 +# Enable stripping the NetSurf binary
    2.58 +# Valid options: YES, NO
    2.59 +NETSURF_STRIP_BINARY := YES
    2.60 +
    2.61 +# Template used for constructing the User Agent: string.  The first two
    2.62 +# replacements are major/minor version, second two are OS and architecture.
    2.63 +# Please don't be tempted to mention Mozilla here!  Let's let that lie die.
    2.64 +NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)"
    2.65 +
    2.66 +# Default home page, if one is not defined by the user.  Note that this
    2.67 +# option does not apply to the RISC OS version, as it has its own local
    2.68 +# home page, and it can be changed by editing the end of gui_init2() in
    2.69 +# riscos/gui.c
    2.70 +NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"
    2.71 +
    2.72 +# Force using glibc internal iconv implementation instead of external libiconv
    2.73 +# Valid options: YES, NO
    2.74 +NETSURF_USE_LIBICONV_PLUG := YES
    2.75 +
    2.76 +# Initial CFLAGS. Optimisation level etc. tend to be target specific.
    2.77 +CFLAGS := 
    2.78 +
    2.79 +# Default installation/execution prefix
    2.80 +PREFIX := /usr
    2.81 +
    2.82 +# ----------------------------------------------------------------------------
    2.83 +# RISC OS-specific options
    2.84 +# ----------------------------------------------------------------------------
    2.85 +ifeq ($(TARGET),riscos)
    2.86 +
    2.87 +  # Enable NetSurf's use of libsvgtiny for displaying SVGs
    2.88 +  # Valid options: YES, NO
    2.89 +  NETSURF_USE_NSSVG := YES
    2.90 +
    2.91 +  # Enable NetSurf's use of pencil for Drawfile export
    2.92 +  # Valid options: YES, NO
    2.93 +  NETSURF_USE_DRAW := YES
    2.94 +
    2.95 +  # Enable NetSurf's support for displaying RISC OS Sprites
    2.96 +  # Valid options: YES, NO
    2.97 +  NETSURF_USE_SPRITE := YES
    2.98 +
    2.99 +  # Enable NetSurf's use of AWRender for displaying ArtWorks files
   2.100 +  # Valid options: YES, NO
   2.101 +  NETSURF_USE_ARTWORKS := YES
   2.102 +
   2.103 +  # Enable NetSurf's support for the Acorn plugin protocol
   2.104 +  # Valid options: YES, NO
   2.105 +  NETSURF_USE_PLUGINS := NO
   2.106 +
   2.107 +  # Optimisation levels
   2.108 +  CFLAGS += -O2 -Wuninitialized
   2.109 +
   2.110 +endif
   2.111 +
   2.112 +# ----------------------------------------------------------------------------
   2.113 +# GTK-specific options
   2.114 +# ----------------------------------------------------------------------------
   2.115 +ifeq ($(TARGET),gtk)
   2.116 +
   2.117 +  # Where to search for NetSurf's resources after looking in ~/.netsurf and
   2.118 +  # $NETSURFRES.  It must have a trailing /
   2.119 +  NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/
   2.120 +
   2.121 +  # Where to install the netsurf binary
   2.122 +  NETSURF_GTK_BIN := $(PREFIX)/bin/
   2.123 +
   2.124 +  # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs
   2.125 +  # Valid options: YES, NO, AUTO
   2.126 +  NETSURF_USE_RSVG := AUTO
   2.127 +
   2.128 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   2.129 +  # Valid options: YES, NO, AUTO
   2.130 +  NETSURF_USE_ROSPRITE := AUTO
   2.131 +
   2.132 +  # Configuration overrides for Mac OS X
   2.133 +  ifeq ($(HOST),macosx)
   2.134 +    NETSURF_USE_LIBICONV_PLUG := NO
   2.135 +    NETSURF_USE_HARU_PDF := NO
   2.136 +  endif
   2.137 +
   2.138 +  # Optimisation levels
   2.139 +  CFLAGS += -O2 -Wuninitialized
   2.140 +
   2.141 +endif
   2.142 +
   2.143 +# ----------------------------------------------------------------------------
   2.144 +# BeOS-specific options
   2.145 +# ----------------------------------------------------------------------------
   2.146 +ifeq ($(TARGET),beos)
   2.147 +
   2.148 +
   2.149 +  # Where to install the netsurf binary
   2.150 +  NETSURF_BEOS_BIN := /boot/apps/netsurf/
   2.151 +
   2.152 +  # TODO:HAIKU -- not sure if ~/.netsurf applies in beos
   2.153 +  # Where to search for NetSurf's resources after looking in ~/.netsurf and
   2.154 +  # $NETSURFRES.  It must have a trailing /
   2.155 +  NETSURF_BEOS_RESOURCES := /boot/apps/netsurf/res/
   2.156 +
   2.157 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   2.158 +  # Valid options: YES, NO, AUTO
   2.159 +  NETSURF_USE_ROSPRITE := AUTO
   2.160 +
   2.161 +  # Enable NetSurf's use of libharu for PDF export.
   2.162 +  # Valid options: YES, NO
   2.163 +  NETSURF_USE_HARU_PDF := NO
   2.164 +
   2.165 +  # Force using glibc internal iconv implementation instead of external libiconv
   2.166 +  # Valid options: YES, NO
   2.167 +  NETSURF_USE_LIBICONV_PLUG := NO
   2.168 +
   2.169 +  # Optimisation levels
   2.170 +  CFLAGS += -O2 -Wuninitialized
   2.171 +
   2.172 +endif
   2.173 +
   2.174 +# ----------------------------------------------------------------------------
   2.175 +# Amiga-specific options
   2.176 +# ----------------------------------------------------------------------------
   2.177 +ifeq ($(TARGET),amiga)
   2.178 +
   2.179 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   2.180 +  # Valid options: YES, NO, AUTO
   2.181 +  NETSURF_USE_ROSPRITE := YES
   2.182 +
   2.183 +  # Enable NetSurf's use of libsvgtiny for displaying SVGs
   2.184 +  # (NB: Requires NETSURF_AMIGA_USE_CAIRO)
   2.185 +  # Valid options: YES, NO
   2.186 +  NETSURF_USE_NSSVG := NO
   2.187 +
   2.188 +  # Enable NetSurf's use of libcairo for some plotter functions
   2.189 +  # This will also link NetSurf with shared objects, and
   2.190 +  # requires AmigaOS 4.1 or higher to run the resulting executable
   2.191 +  # Valid options: YES, NO
   2.192 +  NETSURF_AMIGA_USE_CAIRO := NO
   2.193 +
   2.194 +  # Optimisation levels
   2.195 +  CFLAGS += -O2 -Wuninitialized
   2.196 +
   2.197 +endif
   2.198 +
   2.199 +# ----------------------------------------------------------------------------
   2.200 +# Framebuffer-target-specific options
   2.201 +# ----------------------------------------------------------------------------
   2.202 +ifeq ($(TARGET),framebuffer)
   2.203 +  # Optimisation levels
   2.204 +  CFLAGS += -O2 -Wuninitialized
   2.205 +
   2.206 +  # Framebuffer frontend.
   2.207 +  # Valid values are: linux, sdl, vnc, able
   2.208 +  NETSURF_FB_FRONTEND := linux
   2.209 +
   2.210 +  # Use libharu to enable PDF export and GTK printing support.
   2.211 +  # Valid options: YES, NO
   2.212 +  NETSURF_USE_HARU_PDF := NO
   2.213 +
   2.214 +  # Library to use for font plotting 
   2.215 +  # Valid options: internal, freetype
   2.216 +  NETSURF_FB_FONTLIB := internal
   2.217 +
   2.218 +  # Framebuffer frontends may have differing root paths for resources
   2.219 +  # As such, these specify the resource path and config path.
   2.220 +  NETSURF_FB_RESPATH_linux := $(PREFIX)/share/netsurf/
   2.221 +  NETSURF_FB_RESPATH_able := (tftpboot)/
   2.222 +  NETSURF_FB_RESPATH_dummy := ./
   2.223 +  NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/
   2.224 +  NETSURF_FB_RESPATH_vnc := $(PREFIX)/share/netsurf/
   2.225 +
   2.226 +  NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND))
   2.227 +  NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/
   2.228 +
   2.229 +endif
   2.230 +
   2.231 +# Include any local configuration
   2.232 +-include Makefile.config
   2.233 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/netsurf/stuff/netsurf.desktop	Wed Apr 29 21:33:46 2009 +0200
     3.3 @@ -0,0 +1,10 @@
     3.4 +[Desktop Entry]
     3.5 +Name=Netsurf Web Browser
     3.6 +Name[de]=Netznavigator Netsurf
     3.7 +Name[fr]=Navigateur Web Netsurf
     3.8 +Name[pt_PT]=Navegador Web Netsurf
     3.9 +Type=Application
    3.10 +Categories=Network;
    3.11 +MimeType=text/html;application/xhtml+xml;
    3.12 +Exec=netsurf %u
    3.13 +Icon=netsurf.png
     4.1 Binary file netsurf/stuff/netsurf.png has changed