wok diff netsurf/stuff/Makefile.defaults @ 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
children aee6cba53f3b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netsurf/stuff/Makefile.defaults	Wed Apr 29 21:33:46 2009 +0200
     1.3 @@ -0,0 +1,230 @@
     1.4 +#
     1.5 +# NetSurf default build configuration
     1.6 +#
     1.7 +# Some of these options support an 'AUTO' option, as well as YES and NO.
     1.8 +# When an option is set to AUTO, the Makefile will attempt to detect if that
     1.9 +# feature is available, enabling it if possible.
    1.10 +#
    1.11 +# Options marked "highly recommended" have a severe impact on NetSurf's
    1.12 +# use as a web browser and should be set to YES unless there is a particularly
    1.13 +# good reason not to.
    1.14 +#
    1.15 +# This file should be treated as INVIOLATE and only altered to alter
    1.16 +# the defaults by a core developer. If you wish to configure the build
    1.17 +# of NetSurf then instead please create a file called Makefile.config
    1.18 +# and simply override the statements you require in that.  Remember
    1.19 +# that Makefile.config cannot override the TARGET. That must be set on
    1.20 +# the commandline. i.e. 'make TARGET=framebuffer' However
    1.21 +# Makefile.config can use the TARGET variable to control what to set
    1.22 +# the configuration options to.
    1.23 +#
    1.24 +
    1.25 +# ----------------------------------------------------------------------------
    1.26 +# Options relating to all versions of NetSurf
    1.27 +# ----------------------------------------------------------------------------
    1.28 +
    1.29 +# Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs
    1.30 +# Valid options: YES, NO
    1.31 +NETSURF_USE_BMP := NO
    1.32 +
    1.33 +# Enable NetSurf's use of libnsgif for displaying GIFs
    1.34 +# Valid options: YES, NO				  (highly recommended)
    1.35 +NETSURF_USE_GIF := YES
    1.36 +
    1.37 +# Enable NetSurf's use of libjpeg for displaying JPEGs
    1.38 +# Valid options: YES, NO				  (highly recommended)
    1.39 +NETSURF_USE_JPEG := YES
    1.40 +
    1.41 +# Enable NetSurf's use of libpng for displaying PNGs.  If MNG and PNG
    1.42 +# are both enabled then NetSurf will choose libpng for PNGs, leaving
    1.43 +# MNGs and JNGs to libmng.
    1.44 +# Valid options: YES, NO	  (at least one of PNG/MNG highly recommended)
    1.45 +NETSURF_USE_PNG := YES
    1.46 +
    1.47 +# Enable NetSurf's use of libmng for displaying MNGs, JNGs and PNGs
    1.48 +# Valid options: YES, NO	  (at least one of PNG/MNG highly recommended)
    1.49 +NETSURF_USE_MNG := NO
    1.50 +
    1.51 +# Enable NetSurf's use of libharu for PDF export and GTK printing support.
    1.52 +# There is no auto-detection available for this, as it does not have a
    1.53 +# pkg-config file.
    1.54 +# Valid options: YES, NO
    1.55 +NETSURF_USE_HARU_PDF := NO
    1.56 +
    1.57 +# Enable stripping the NetSurf binary
    1.58 +# Valid options: YES, NO
    1.59 +NETSURF_STRIP_BINARY := YES
    1.60 +
    1.61 +# Template used for constructing the User Agent: string.  The first two
    1.62 +# replacements are major/minor version, second two are OS and architecture.
    1.63 +# Please don't be tempted to mention Mozilla here!  Let's let that lie die.
    1.64 +NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)"
    1.65 +
    1.66 +# Default home page, if one is not defined by the user.  Note that this
    1.67 +# option does not apply to the RISC OS version, as it has its own local
    1.68 +# home page, and it can be changed by editing the end of gui_init2() in
    1.69 +# riscos/gui.c
    1.70 +NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"
    1.71 +
    1.72 +# Force using glibc internal iconv implementation instead of external libiconv
    1.73 +# Valid options: YES, NO
    1.74 +NETSURF_USE_LIBICONV_PLUG := YES
    1.75 +
    1.76 +# Initial CFLAGS. Optimisation level etc. tend to be target specific.
    1.77 +CFLAGS := 
    1.78 +
    1.79 +# Default installation/execution prefix
    1.80 +PREFIX := /usr
    1.81 +
    1.82 +# ----------------------------------------------------------------------------
    1.83 +# RISC OS-specific options
    1.84 +# ----------------------------------------------------------------------------
    1.85 +ifeq ($(TARGET),riscos)
    1.86 +
    1.87 +  # Enable NetSurf's use of libsvgtiny for displaying SVGs
    1.88 +  # Valid options: YES, NO
    1.89 +  NETSURF_USE_NSSVG := YES
    1.90 +
    1.91 +  # Enable NetSurf's use of pencil for Drawfile export
    1.92 +  # Valid options: YES, NO
    1.93 +  NETSURF_USE_DRAW := YES
    1.94 +
    1.95 +  # Enable NetSurf's support for displaying RISC OS Sprites
    1.96 +  # Valid options: YES, NO
    1.97 +  NETSURF_USE_SPRITE := YES
    1.98 +
    1.99 +  # Enable NetSurf's use of AWRender for displaying ArtWorks files
   1.100 +  # Valid options: YES, NO
   1.101 +  NETSURF_USE_ARTWORKS := YES
   1.102 +
   1.103 +  # Enable NetSurf's support for the Acorn plugin protocol
   1.104 +  # Valid options: YES, NO
   1.105 +  NETSURF_USE_PLUGINS := NO
   1.106 +
   1.107 +  # Optimisation levels
   1.108 +  CFLAGS += -O2 -Wuninitialized
   1.109 +
   1.110 +endif
   1.111 +
   1.112 +# ----------------------------------------------------------------------------
   1.113 +# GTK-specific options
   1.114 +# ----------------------------------------------------------------------------
   1.115 +ifeq ($(TARGET),gtk)
   1.116 +
   1.117 +  # Where to search for NetSurf's resources after looking in ~/.netsurf and
   1.118 +  # $NETSURFRES.  It must have a trailing /
   1.119 +  NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/
   1.120 +
   1.121 +  # Where to install the netsurf binary
   1.122 +  NETSURF_GTK_BIN := $(PREFIX)/bin/
   1.123 +
   1.124 +  # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs
   1.125 +  # Valid options: YES, NO, AUTO
   1.126 +  NETSURF_USE_RSVG := AUTO
   1.127 +
   1.128 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   1.129 +  # Valid options: YES, NO, AUTO
   1.130 +  NETSURF_USE_ROSPRITE := AUTO
   1.131 +
   1.132 +  # Configuration overrides for Mac OS X
   1.133 +  ifeq ($(HOST),macosx)
   1.134 +    NETSURF_USE_LIBICONV_PLUG := NO
   1.135 +    NETSURF_USE_HARU_PDF := NO
   1.136 +  endif
   1.137 +
   1.138 +  # Optimisation levels
   1.139 +  CFLAGS += -O2 -Wuninitialized
   1.140 +
   1.141 +endif
   1.142 +
   1.143 +# ----------------------------------------------------------------------------
   1.144 +# BeOS-specific options
   1.145 +# ----------------------------------------------------------------------------
   1.146 +ifeq ($(TARGET),beos)
   1.147 +
   1.148 +
   1.149 +  # Where to install the netsurf binary
   1.150 +  NETSURF_BEOS_BIN := /boot/apps/netsurf/
   1.151 +
   1.152 +  # TODO:HAIKU -- not sure if ~/.netsurf applies in beos
   1.153 +  # Where to search for NetSurf's resources after looking in ~/.netsurf and
   1.154 +  # $NETSURFRES.  It must have a trailing /
   1.155 +  NETSURF_BEOS_RESOURCES := /boot/apps/netsurf/res/
   1.156 +
   1.157 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   1.158 +  # Valid options: YES, NO, AUTO
   1.159 +  NETSURF_USE_ROSPRITE := AUTO
   1.160 +
   1.161 +  # Enable NetSurf's use of libharu for PDF export.
   1.162 +  # Valid options: YES, NO
   1.163 +  NETSURF_USE_HARU_PDF := NO
   1.164 +
   1.165 +  # Force using glibc internal iconv implementation instead of external libiconv
   1.166 +  # Valid options: YES, NO
   1.167 +  NETSURF_USE_LIBICONV_PLUG := NO
   1.168 +
   1.169 +  # Optimisation levels
   1.170 +  CFLAGS += -O2 -Wuninitialized
   1.171 +
   1.172 +endif
   1.173 +
   1.174 +# ----------------------------------------------------------------------------
   1.175 +# Amiga-specific options
   1.176 +# ----------------------------------------------------------------------------
   1.177 +ifeq ($(TARGET),amiga)
   1.178 +
   1.179 +  # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
   1.180 +  # Valid options: YES, NO, AUTO
   1.181 +  NETSURF_USE_ROSPRITE := YES
   1.182 +
   1.183 +  # Enable NetSurf's use of libsvgtiny for displaying SVGs
   1.184 +  # (NB: Requires NETSURF_AMIGA_USE_CAIRO)
   1.185 +  # Valid options: YES, NO
   1.186 +  NETSURF_USE_NSSVG := NO
   1.187 +
   1.188 +  # Enable NetSurf's use of libcairo for some plotter functions
   1.189 +  # This will also link NetSurf with shared objects, and
   1.190 +  # requires AmigaOS 4.1 or higher to run the resulting executable
   1.191 +  # Valid options: YES, NO
   1.192 +  NETSURF_AMIGA_USE_CAIRO := NO
   1.193 +
   1.194 +  # Optimisation levels
   1.195 +  CFLAGS += -O2 -Wuninitialized
   1.196 +
   1.197 +endif
   1.198 +
   1.199 +# ----------------------------------------------------------------------------
   1.200 +# Framebuffer-target-specific options
   1.201 +# ----------------------------------------------------------------------------
   1.202 +ifeq ($(TARGET),framebuffer)
   1.203 +  # Optimisation levels
   1.204 +  CFLAGS += -O2 -Wuninitialized
   1.205 +
   1.206 +  # Framebuffer frontend.
   1.207 +  # Valid values are: linux, sdl, vnc, able
   1.208 +  NETSURF_FB_FRONTEND := linux
   1.209 +
   1.210 +  # Use libharu to enable PDF export and GTK printing support.
   1.211 +  # Valid options: YES, NO
   1.212 +  NETSURF_USE_HARU_PDF := NO
   1.213 +
   1.214 +  # Library to use for font plotting 
   1.215 +  # Valid options: internal, freetype
   1.216 +  NETSURF_FB_FONTLIB := internal
   1.217 +
   1.218 +  # Framebuffer frontends may have differing root paths for resources
   1.219 +  # As such, these specify the resource path and config path.
   1.220 +  NETSURF_FB_RESPATH_linux := $(PREFIX)/share/netsurf/
   1.221 +  NETSURF_FB_RESPATH_able := (tftpboot)/
   1.222 +  NETSURF_FB_RESPATH_dummy := ./
   1.223 +  NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/
   1.224 +  NETSURF_FB_RESPATH_vnc := $(PREFIX)/share/netsurf/
   1.225 +
   1.226 +  NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND))
   1.227 +  NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/
   1.228 +
   1.229 +endif
   1.230 +
   1.231 +# Include any local configuration
   1.232 +-include Makefile.config
   1.233 +