wok view netsurf/stuff/Makefile.defaults @ rev 2835

netsurf: Add custom home page
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 30 20:06:35 2009 +0200 (2009-04-30)
parents 87b399540000
children
line source
1 #
2 # NetSurf default build configuration
3 #
4 # Some of these options support an 'AUTO' option, as well as YES and NO.
5 # When an option is set to AUTO, the Makefile will attempt to detect if that
6 # feature is available, enabling it if possible.
7 #
8 # Options marked "highly recommended" have a severe impact on NetSurf's
9 # use as a web browser and should be set to YES unless there is a particularly
10 # good reason not to.
11 #
12 # This file should be treated as INVIOLATE and only altered to alter
13 # the defaults by a core developer. If you wish to configure the build
14 # of NetSurf then instead please create a file called Makefile.config
15 # and simply override the statements you require in that. Remember
16 # that Makefile.config cannot override the TARGET. That must be set on
17 # the commandline. i.e. 'make TARGET=framebuffer' However
18 # Makefile.config can use the TARGET variable to control what to set
19 # the configuration options to.
20 #
22 # ----------------------------------------------------------------------------
23 # Options relating to all versions of NetSurf
24 # ----------------------------------------------------------------------------
26 # Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs
27 # Valid options: YES, NO
28 NETSURF_USE_BMP := NO
30 # Enable NetSurf's use of libnsgif for displaying GIFs
31 # Valid options: YES, NO (highly recommended)
32 NETSURF_USE_GIF := YES
34 # Enable NetSurf's use of libjpeg for displaying JPEGs
35 # Valid options: YES, NO (highly recommended)
36 NETSURF_USE_JPEG := YES
38 # Enable NetSurf's use of libpng for displaying PNGs. If MNG and PNG
39 # are both enabled then NetSurf will choose libpng for PNGs, leaving
40 # MNGs and JNGs to libmng.
41 # Valid options: YES, NO (at least one of PNG/MNG highly recommended)
42 NETSURF_USE_PNG := YES
44 # Enable NetSurf's use of libmng for displaying MNGs, JNGs and PNGs
45 # Valid options: YES, NO (at least one of PNG/MNG highly recommended)
46 NETSURF_USE_MNG := NO
48 # Enable NetSurf's use of libharu for PDF export and GTK printing support.
49 # There is no auto-detection available for this, as it does not have a
50 # pkg-config file.
51 # Valid options: YES, NO
52 NETSURF_USE_HARU_PDF := NO
54 # Enable stripping the NetSurf binary
55 # Valid options: YES, NO
56 NETSURF_STRIP_BINARY := YES
58 # Template used for constructing the User Agent: string. The first two
59 # replacements are major/minor version, second two are OS and architecture.
60 # Please don't be tempted to mention Mozilla here! Let's let that lie die.
61 NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s) SliTaz"
63 # Default home page, if one is not defined by the user. Note that this
64 # option does not apply to the RISC OS version, as it has its own local
65 # home page, and it can be changed by editing the end of gui_init2() in
66 # riscos/gui.c
67 NETSURF_HOMEPAGE := "file:///usr/share/webhome/netsurf.html"
69 # Force using glibc internal iconv implementation instead of external libiconv
70 # Valid options: YES, NO
71 NETSURF_USE_LIBICONV_PLUG := YES
73 # Initial CFLAGS. Optimisation level etc. tend to be target specific.
74 CFLAGS :=
76 # Default installation/execution prefix
77 PREFIX := /usr
79 # ----------------------------------------------------------------------------
80 # RISC OS-specific options
81 # ----------------------------------------------------------------------------
82 ifeq ($(TARGET),riscos)
84 # Enable NetSurf's use of libsvgtiny for displaying SVGs
85 # Valid options: YES, NO
86 NETSURF_USE_NSSVG := YES
88 # Enable NetSurf's use of pencil for Drawfile export
89 # Valid options: YES, NO
90 NETSURF_USE_DRAW := YES
92 # Enable NetSurf's support for displaying RISC OS Sprites
93 # Valid options: YES, NO
94 NETSURF_USE_SPRITE := YES
96 # Enable NetSurf's use of AWRender for displaying ArtWorks files
97 # Valid options: YES, NO
98 NETSURF_USE_ARTWORKS := YES
100 # Enable NetSurf's support for the Acorn plugin protocol
101 # Valid options: YES, NO
102 NETSURF_USE_PLUGINS := NO
104 # Optimisation levels
105 CFLAGS += -O2 -Wuninitialized
107 endif
109 # ----------------------------------------------------------------------------
110 # GTK-specific options
111 # ----------------------------------------------------------------------------
112 ifeq ($(TARGET),gtk)
114 # Where to search for NetSurf's resources after looking in ~/.netsurf and
115 # $NETSURFRES. It must have a trailing /
116 NETSURF_GTK_RESOURCES := $(PREFIX)/share/netsurf/
118 # Where to install the netsurf binary
119 NETSURF_GTK_BIN := $(PREFIX)/bin/
121 # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs
122 # Valid options: YES, NO, AUTO
123 NETSURF_USE_RSVG := AUTO
125 # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
126 # Valid options: YES, NO, AUTO
127 NETSURF_USE_ROSPRITE := AUTO
129 # Configuration overrides for Mac OS X
130 ifeq ($(HOST),macosx)
131 NETSURF_USE_LIBICONV_PLUG := NO
132 NETSURF_USE_HARU_PDF := NO
133 endif
135 # Optimisation levels
136 CFLAGS += -O2 -Wuninitialized
138 endif
140 # ----------------------------------------------------------------------------
141 # BeOS-specific options
142 # ----------------------------------------------------------------------------
143 ifeq ($(TARGET),beos)
146 # Where to install the netsurf binary
147 NETSURF_BEOS_BIN := /boot/apps/netsurf/
149 # TODO:HAIKU -- not sure if ~/.netsurf applies in beos
150 # Where to search for NetSurf's resources after looking in ~/.netsurf and
151 # $NETSURFRES. It must have a trailing /
152 NETSURF_BEOS_RESOURCES := /boot/apps/netsurf/res/
154 # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
155 # Valid options: YES, NO, AUTO
156 NETSURF_USE_ROSPRITE := AUTO
158 # Enable NetSurf's use of libharu for PDF export.
159 # Valid options: YES, NO
160 NETSURF_USE_HARU_PDF := NO
162 # Force using glibc internal iconv implementation instead of external libiconv
163 # Valid options: YES, NO
164 NETSURF_USE_LIBICONV_PLUG := NO
166 # Optimisation levels
167 CFLAGS += -O2 -Wuninitialized
169 endif
171 # ----------------------------------------------------------------------------
172 # Amiga-specific options
173 # ----------------------------------------------------------------------------
174 ifeq ($(TARGET),amiga)
176 # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
177 # Valid options: YES, NO, AUTO
178 NETSURF_USE_ROSPRITE := YES
180 # Enable NetSurf's use of libsvgtiny for displaying SVGs
181 # (NB: Requires NETSURF_AMIGA_USE_CAIRO)
182 # Valid options: YES, NO
183 NETSURF_USE_NSSVG := NO
185 # Enable NetSurf's use of libcairo for some plotter functions
186 # This will also link NetSurf with shared objects, and
187 # requires AmigaOS 4.1 or higher to run the resulting executable
188 # Valid options: YES, NO
189 NETSURF_AMIGA_USE_CAIRO := NO
191 # Optimisation levels
192 CFLAGS += -O2 -Wuninitialized
194 endif
196 # ----------------------------------------------------------------------------
197 # Framebuffer-target-specific options
198 # ----------------------------------------------------------------------------
199 ifeq ($(TARGET),framebuffer)
200 # Optimisation levels
201 CFLAGS += -O2 -Wuninitialized
203 # Framebuffer frontend.
204 # Valid values are: linux, sdl, vnc, able
205 NETSURF_FB_FRONTEND := linux
207 # Use libharu to enable PDF export and GTK printing support.
208 # Valid options: YES, NO
209 NETSURF_USE_HARU_PDF := NO
211 # Library to use for font plotting
212 # Valid options: internal, freetype
213 NETSURF_FB_FONTLIB := internal
215 # Framebuffer frontends may have differing root paths for resources
216 # As such, these specify the resource path and config path.
217 NETSURF_FB_RESPATH_linux := $(PREFIX)/share/netsurf/
218 NETSURF_FB_RESPATH_able := (tftpboot)/
219 NETSURF_FB_RESPATH_dummy := ./
220 NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/
221 NETSURF_FB_RESPATH_vnc := $(PREFIX)/share/netsurf/
223 NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND))
224 NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/
226 endif
228 # Include any local configuration
229 -include Makefile.config