# HG changeset patch # User Christophe Lincoln # Date 1241033626 -7200 # Node ID 87b399540000fcf87796e4ad7e2665ace5fa3a12 # Parent 9ddd8d63344ed25385e286ce0a8cc9245108da7b Add netsurf (Fast and light web browser) diff -r 9ddd8d63344e -r 87b399540000 netsurf/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netsurf/receipt Wed Apr 29 21:33:46 2009 +0200 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="netsurf" +VERSION="2.0" +CATEGORY="network" +SHORT_DESC="A simple, fast and light web browser using GTK." +MAINTAINER="pankso@slitaz.org" +DEPENDS="gtk+ openssl libpng jpeg lcms libparserutils hubbub libnsgif" +BUILD_DEPENDS="gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev re2c lemon \ +libparserutils-dev hubbub-dev libnsgif-dev" +TARBALL="$PACKAGE-$VERSION-src.tar.gz" +WEB_SITE="http://www.netsurf-browser.org/" +WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + cp -a ../stuff/Makefile.defaults . + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf + cp -RL $src/gtk/res $fs/usr/share/netsurf + cp $src/nsgtk $fs/usr/lib/netsurf + cp $src/netsurf $fs/usr/bin + sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \ + $fs/usr/bin/netsurf + sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \ + $fs/usr/bin/netsurf + # Remove files to save some space + rm -rf $fs/usr/share/netsurf/docs + rm -rf $fs/usr/share/netsurf/*.xpm + rm -rf $fs/usr/share/netsurf/license +} diff -r 9ddd8d63344e -r 87b399540000 netsurf/stuff/Makefile.defaults --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netsurf/stuff/Makefile.defaults Wed Apr 29 21:33:46 2009 +0200 @@ -0,0 +1,230 @@ +# +# NetSurf default build configuration +# +# Some of these options support an 'AUTO' option, as well as YES and NO. +# When an option is set to AUTO, the Makefile will attempt to detect if that +# feature is available, enabling it if possible. +# +# Options marked "highly recommended" have a severe impact on NetSurf's +# use as a web browser and should be set to YES unless there is a particularly +# good reason not to. +# +# This file should be treated as INVIOLATE and only altered to alter +# the defaults by a core developer. If you wish to configure the build +# of NetSurf then instead please create a file called Makefile.config +# and simply override the statements you require in that. Remember +# that Makefile.config cannot override the TARGET. That must be set on +# the commandline. i.e. 'make TARGET=framebuffer' However +# Makefile.config can use the TARGET variable to control what to set +# the configuration options to. +# + +# ---------------------------------------------------------------------------- +# Options relating to all versions of NetSurf +# ---------------------------------------------------------------------------- + +# Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs +# Valid options: YES, NO +NETSURF_USE_BMP := NO + +# Enable NetSurf's use of libnsgif for displaying GIFs +# Valid options: YES, NO (highly recommended) +NETSURF_USE_GIF := YES + +# Enable NetSurf's use of libjpeg for displaying JPEGs +# Valid options: YES, NO (highly recommended) +NETSURF_USE_JPEG := YES + +# Enable NetSurf's use of libpng for displaying PNGs. If MNG and PNG +# are both enabled then NetSurf will choose libpng for PNGs, leaving +# MNGs and JNGs to libmng. +# Valid options: YES, NO (at least one of PNG/MNG highly recommended) +NETSURF_USE_PNG := YES + +# Enable NetSurf's use of libmng for displaying MNGs, JNGs and PNGs +# Valid options: YES, NO (at least one of PNG/MNG highly recommended) +NETSURF_USE_MNG := NO + +# Enable NetSurf's use of libharu for PDF export and GTK printing support. +# There is no auto-detection available for this, as it does not have a +# pkg-config file. +# Valid options: YES, NO +NETSURF_USE_HARU_PDF := NO + +# Enable stripping the NetSurf binary +# Valid options: YES, NO +NETSURF_STRIP_BINARY := YES + +# Template used for constructing the User Agent: string. The first two +# replacements are major/minor version, second two are OS and architecture. +# Please don't be tempted to mention Mozilla here! Let's let that lie die. +NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)" + +# Default home page, if one is not defined by the user. Note that this +# option does not apply to the RISC OS version, as it has its own local +# home page, and it can be changed by editing the end of gui_init2() in +# riscos/gui.c +NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html" + +# Force using glibc internal iconv implementation instead of external libiconv +# Valid options: YES, NO +NETSURF_USE_LIBICONV_PLUG := YES + +# Initial CFLAGS. Optimisation level etc. tend to be target specific. +CFLAGS := + +# Default installation/execution prefix +PREFIX := /usr + +# ---------------------------------------------------------------------------- +# RISC OS-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),riscos) + + # Enable NetSurf's use of libsvgtiny for displaying SVGs + # Valid options: YES, NO + NETSURF_USE_NSSVG := YES + + # Enable NetSurf's use of pencil for Drawfile export + # Valid options: YES, NO + NETSURF_USE_DRAW := YES + + # Enable NetSurf's support for displaying RISC OS Sprites + # Valid options: YES, NO + NETSURF_USE_SPRITE := YES + + # Enable NetSurf's use of AWRender for displaying ArtWorks files + # Valid options: YES, NO + NETSURF_USE_ARTWORKS := YES + + # Enable NetSurf's support for the Acorn plugin protocol + # Valid options: YES, NO + NETSURF_USE_PLUGINS := NO + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + +endif + +# ---------------------------------------------------------------------------- +# GTK-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),gtk) + + # Where to search for NetSurf's resources after looking in ~/.netsurf and + # $NETSURFRES. It must have a trailing / + NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/ + + # Where to install the netsurf binary + NETSURF_GTK_BIN := $(PREFIX)/bin/ + + # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs + # Valid options: YES, NO, AUTO + NETSURF_USE_RSVG := AUTO + + # Enable NetSurf's use of librosprite for displaying RISC OS Sprites + # Valid options: YES, NO, AUTO + NETSURF_USE_ROSPRITE := AUTO + + # Configuration overrides for Mac OS X + ifeq ($(HOST),macosx) + NETSURF_USE_LIBICONV_PLUG := NO + NETSURF_USE_HARU_PDF := NO + endif + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + +endif + +# ---------------------------------------------------------------------------- +# BeOS-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),beos) + + + # Where to install the netsurf binary + NETSURF_BEOS_BIN := /boot/apps/netsurf/ + + # TODO:HAIKU -- not sure if ~/.netsurf applies in beos + # Where to search for NetSurf's resources after looking in ~/.netsurf and + # $NETSURFRES. It must have a trailing / + NETSURF_BEOS_RESOURCES := /boot/apps/netsurf/res/ + + # Enable NetSurf's use of librosprite for displaying RISC OS Sprites + # Valid options: YES, NO, AUTO + NETSURF_USE_ROSPRITE := AUTO + + # Enable NetSurf's use of libharu for PDF export. + # Valid options: YES, NO + NETSURF_USE_HARU_PDF := NO + + # Force using glibc internal iconv implementation instead of external libiconv + # Valid options: YES, NO + NETSURF_USE_LIBICONV_PLUG := NO + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + +endif + +# ---------------------------------------------------------------------------- +# Amiga-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),amiga) + + # Enable NetSurf's use of librosprite for displaying RISC OS Sprites + # Valid options: YES, NO, AUTO + NETSURF_USE_ROSPRITE := YES + + # Enable NetSurf's use of libsvgtiny for displaying SVGs + # (NB: Requires NETSURF_AMIGA_USE_CAIRO) + # Valid options: YES, NO + NETSURF_USE_NSSVG := NO + + # Enable NetSurf's use of libcairo for some plotter functions + # This will also link NetSurf with shared objects, and + # requires AmigaOS 4.1 or higher to run the resulting executable + # Valid options: YES, NO + NETSURF_AMIGA_USE_CAIRO := NO + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + +endif + +# ---------------------------------------------------------------------------- +# Framebuffer-target-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),framebuffer) + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + + # Framebuffer frontend. + # Valid values are: linux, sdl, vnc, able + NETSURF_FB_FRONTEND := linux + + # Use libharu to enable PDF export and GTK printing support. + # Valid options: YES, NO + NETSURF_USE_HARU_PDF := NO + + # Library to use for font plotting + # Valid options: internal, freetype + NETSURF_FB_FONTLIB := internal + + # Framebuffer frontends may have differing root paths for resources + # As such, these specify the resource path and config path. + NETSURF_FB_RESPATH_linux := $(PREFIX)/share/netsurf/ + NETSURF_FB_RESPATH_able := (tftpboot)/ + NETSURF_FB_RESPATH_dummy := ./ + NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/ + NETSURF_FB_RESPATH_vnc := $(PREFIX)/share/netsurf/ + + NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND)) + NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/ + +endif + +# Include any local configuration +-include Makefile.config + diff -r 9ddd8d63344e -r 87b399540000 netsurf/stuff/netsurf.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netsurf/stuff/netsurf.desktop Wed Apr 29 21:33:46 2009 +0200 @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Netsurf Web Browser +Name[de]=Netznavigator Netsurf +Name[fr]=Navigateur Web Netsurf +Name[pt_PT]=Navegador Web Netsurf +Type=Application +Categories=Network; +MimeType=text/html;application/xhtml+xml; +Exec=netsurf %u +Icon=netsurf.png diff -r 9ddd8d63344e -r 87b399540000 netsurf/stuff/netsurf.png Binary file netsurf/stuff/netsurf.png has changed