Externals/netsurf - Minor fixes, now compiles up to core (requires curl includes)
authorJohn Hodge <[email protected]>
Sun, 11 May 2014 07:01:13 +0000 (15:01 +0800)
committerJohn Hodge <[email protected]>
Sun, 11 May 2014 07:01:13 +0000 (15:01 +0800)
Externals/core.mk
Externals/netsurf/Makefile
Externals/netsurf/patches/UNIFIED.patch

index bc7a5b8..6c23a33 100644 (file)
@@ -73,7 +73,14 @@ $(DIR)/%: patches/%
 
 PATCHED_FILES := $(addprefix $(DIR)/,$(PATCHES))
 
-_patch: $(DIR) $(PATCHED_FILES) $(wildcard patches/UNIFIED.patch)
 ifneq ($(wildcard patches/UNIFIED.patch),)
+$(DIR)/_unified_applied: $(wildcard patches/UNIFIED.patch)
        cd $(DIR) && patch -p1 < ../patches/UNIFIED.patch
+       touch $@
+UNIFIED_TARGET=$(DIR)/_unified_applied
+else
+UNIFIED_TARGET=
 endif
+
+_patch: $(DIR) $(PATCHED_FILES) $(UNIFIED_TARGET)
+
index d4140c3..5b69f5d 100644 (file)
@@ -12,7 +12,12 @@ NOBDIR = yes
 
 include ../core.mk
 
-_build:
-       cd $(BDIR) && CC=$(HOST)-gcc TARGET=sdl make
+.PHONY: _check_local_deps
+
+_build: _check_local_deps
+       cd $(BDIR) && CC=$(HOST)-gcc TARGET=framebuffer make
+
+_check_local_deps:
+       @gperf --help >/dev/null || (echo "ERROR: netsurf's build system requires gperf"; false)
 
 
index e945631..f59d7c1 100644 (file)
@@ -108,3 +108,15 @@ diff -ru .orig/netsurf-full-3.0//src/libparserutils-0.1.2/src/utils/vector.c net
  {
        if (vector == NULL || vector->current_item < 0)
                return NULL;
+diff -ru .orig/netsurf-full-3.0//src/libnsfb-0.1.2/Makefile netsurf-full-3.0//src/libnsfb-0.1.0/Makefile
+--- .orig/netsurf-full-3.0//src/libnsfb-0.1.0/Makefile 2013-04-20 02:06:57.000000000 +0800
++++ netsurf-full-3.0//src/libnsfb-0.1.0/Makefile       2013-07-01 22:22:45.246689992 +0800
+@@ -31,5 +31,5 @@
+ # surfaces not detectable via pkg-config 
+ NSFB_ABLE_AVAILABLE := no
+-NSFB_LINUX_AVAILABLE := yes
++NSFB_LINUX_AVAILABLE := no
+ # Flags and setup for each support library
+ NSFB_ABLE_AVAILABLE := no

UCC git Repository :: git.ucc.asn.au