diff options
Diffstat (limited to 'netsurf/files/Makefile.config')
-rw-r--r-- | netsurf/files/Makefile.config | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/netsurf/files/Makefile.config b/netsurf/files/Makefile.config new file mode 100644 index 0000000..2a4ac74 --- /dev/null +++ b/netsurf/files/Makefile.config @@ -0,0 +1,114 @@ +# +# NetSurf Nanonote build setup +# based on Makefile.defaults +# + +# ---------------------------------------------------------------------------- +# 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 libwebp/libvpx for displaying WebPs +# Valid options: YES, NO +NETSURF_USE_WEBP := 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 +# (OpenWRT toolchain does that...) +NETSURF_STRIP_BINARY := NO + +# 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 := "http://www.netsurf-browser.org/welcome/" + +# Force using glibc internal iconv implementation instead of external libiconv +# Valid options: YES, NO +NETSURF_USE_LIBICONV_PLUG := NO + +# Initial CFLAGS. Optimisation level etc. tend to be target specific. +# (you would like to overwrite what's passed from the environment, wouldn't you?) +CFLAGS ?= + +# Default installation/execution prefix +PREFIX ?= /usr + +# ---------------------------------------------------------------------------- +# Framebuffer-target-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),framebuffer) + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + + # Framebuffer default surface provider. + # Valid values are: x, sdl, linux, vnc, able, + NETSURF_FB_FRONTEND := sdl + + # Use libharu to enable PDF export and GTK printing support. + # Valid options: YES, NO + NETSURF_USE_HARU_PDF := NO + + # Enable NetSurf's use of librosprite for displaying RISC OS Sprites + # Valid options: YES, NO, AUTO + NETSURF_USE_ROSPRITE := NO + + # Library to use for font plotting + # Valid options: internal, freetype + NETSURF_FB_FONTLIB := freetype + + # freetype compiled in font locations + NETSURF_FB_FONT_SANS_SERIF := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf + NETSURF_FB_FONT_SANS_SERIF_BOLD := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf + NETSURF_FB_FONT_SANS_SERIF_ITALIC := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf + NETSURF_FB_FONT_SANS_SERIF_ITALIC_BOLD := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf + NETSURF_FB_FONT_SERIF := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf + NETSURF_FB_FONT_SERIF_BOLD := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf + NETSURF_FB_FONT_MONOSPACE := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf + NETSURF_FB_FONT_MONOSPACE_BOLD := /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf + NETSURF_FB_FONT_CURSIVE := /usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf + NETSURF_FB_FONT_FANTASY := /usr/share/fonts/truetype/msttcorefonts/Impact.ttf + + # 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_dummy := ./ + NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/ + + NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND)) + NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/ + +endif + |