summaryrefslogtreecommitdiffstats
path: root/package/netsurf
Commit message (Collapse)AuthorAgeFilesLines
* package/netsurf: fix buildPeter Korsgaard2019-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/a5b/a5bd8969c398fc3101ffaec4aa715a827aec5770/ http://autobuild.buildroot.net/results/441/44112e8ad03f47125bbf4b231d800ebd5beef24b/ After commit 122089ad (package/netsurf: use TMP_PREFIX inside the build directory), the build fails with: COMPILE: src/stylesheet.c In file included from src/stylesheet.c:12:0: src/stylesheet.h:14:39: fatal error: libwapcaplet/libwapcaplet.h: No such file or directory #include <libwapcaplet/libwapcaplet.h> The reason is that netsurf installs its internal libraries to TMP_PREFIX during the build, and uses pkg-config to add the correct include/linker flags when building/linking the rest. Unfortunately this fails badly, as we prefix STAGING_DIR to the paths returned by pkg-config, causing gcc to fail to find the header / library files. This worked (by accident) when we pointed TMP_PREFIX to STAGING_DIR/usr, as STAGING_DIR/usr/include and STAGING_DIR/usr/lib are in the standard include/library search paths. Fix it by adding TMP_PREFIX/include and TMP_PREFIX/lib to the include/library search paths. We cannot easily add them to CFLAGS/LDFLAGS as the makefiles do not use override when appending to them, so instead pass both in CC (which is also used for linking). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/netsurf: use TMP_PREFIX inside the build directoryThomas Petazzoni2019-02-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | The netsurf build system creates a stamp file inside TMP_PREFIX to know if the build was done, and if the stamp file exists, it doesn't do any build. Therefore, having this stamp file in STAGING_DIR prevents from rebuilding netsurf, even after removing its entire build directory: the stamp file exists in STAGING_DIR, and netsurf doesn't build anything, causing the installation to fail. We fix this by putting this temporary directory inside the netsurf build directory. We must mkdir this directory manually, otherwise the build fails with: COMPILE: src/stylesheet.c In file included from src/stylesheet.c:12:0: src/stylesheet.h:14:10: fatal error: libwapcaplet/libwapcaplet.h: No such file or directory ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Arnout: mkdir it first] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/netsurf: use HOST_CFLAGS/HOST_LDFLAGSThomas Petazzoni2018-12-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 9b0ac875385e3bcb052fc2f376f45fa61e102673 ("package/netsurf: make sure host libpng can be found"), the netsurf package was modified to pass -L$(HOST_DIR)/lib so that libpng is found at link time. However, this is not sufficient: for the host tool to work at runtime, we need to have the proper RPATH encoded in the host binary. Otherwise, building netsurf fails with: build/Linux-framebuffer/tools/convert_image: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory make[3]: *** [build/Linux-framebuffer/image-caret_image.c] Error 127 So basically, we need to build not only with -L$(HOST_DIR)/lib, but with the complete HOST_LDFLAGS provided by Buildroot. For consistency, we also use HOST_CFLAGS instead of hardcoding -I$(HOST_DIR)/include. It is worth mentioning that we must use single quotes here, because the NETSURF_CONFIG variable value then gets put within double quotes to be passed to the netsurf build system. Fixes: http://autobuild.buildroot.net/results/4ff6a8c4017d006a4b6b9ca369a569fa72862900/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: make sure host libpng can be foundFrancois Perrad2018-12-171-0/+4
| | | | | | | | | | | | | | | | | Commit 42c8f9f6b46e196a7c337c683a7df5ae6bd421b2 ("package/netsurf: add dependency on host-libpng for sdl") ensured host-libpng was built prior to netsurf when the SDL backend is selected. However, this is not sufficient for the netsurf build system to find libpng on the host, we need to help by providing the right HOST_CFLAGS and HOST_LDFLAGS. Fixes: http://autobuild.buildroot.net/results/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/ Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [Thomas: rewrite commit message.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: turn libcurl into an optional dependencyFrancois Perrad2018-12-163-3/+39
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: add GTK+ 3 frontendFrancois Perrad2018-12-162-3/+17
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: enable javascript with duktapeFrancois Perrad2018-12-162-1/+30
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: add optional dependency on freetypeFrancois Perrad2018-12-162-0/+39
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netsurf: add dependency on host-libpng for sdlFrancois Perrad2018-12-111-1/+1
| | | | | | | | | | | libpng is used by the convert_image host tool, which is built when SDL is enabled. Fixes: http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/ Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/netsurf: new packageFrancois Perrad2018-12-104-0/+135
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [Thomas: - rename BR2_PACKAGE_NETSURF_FRAMEBUFFER to BR2_PACKAGE_NETSURF_SDL, and use "sdl" everywhere instead of "framebuffer", since really SDL can display on something else than the framebuffer - use a "depends on BR2_PACKAGE_LIBGTK2" instead of a "depends on BR2_PACKAGE_XORG7 + many other depends on + select BR2_PACKAGE_LIBGTK2" - use PKG_CONFIG_HOST_BINARY for the pkg-config path] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
OpenPOWER on IntegriCloud