wok-next annotate netsurf/stuff/Makefile.defaults @ rev 3243

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