From 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 18 Sep 2010 20:47:21 +0200 Subject: Major overhaul and cleanup. Support for .ubi image file installations. Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386. --- .../patches/001-modify-makefile-for-openwrt.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 fbgrab/patches/001-modify-makefile-for-openwrt.patch (limited to 'fbgrab/patches') diff --git a/fbgrab/patches/001-modify-makefile-for-openwrt.patch b/fbgrab/patches/001-modify-makefile-for-openwrt.patch new file mode 100644 index 0000000..ea1d0de --- /dev/null +++ b/fbgrab/patches/001-modify-makefile-for-openwrt.patch @@ -0,0 +1,32 @@ +diff --git a/Makefile b/Makefile +index 14c63cb..f4cb0b0 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,15 +2,20 @@ + ### I think it's not worth to make such a small project + ### modular. So this is a simple gnu Makefile... + ### ++STRIP ?= strip ++INSTALL ?= install ++ ++CFLAGS := $(CFLAGS) -g -Wall + + fbgrab: fbgrab.c +- splint +posixlib fbgrab.c +- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab ++ $(CC) $(CFLAGS) $(LDFLAGS) fbgrab.c -lpng -lz -o fbgrab ++ $(STRIP) fbgrab + + install: +- strip fbgrab +- install fbgrab /usr/bin/fbgrab +- install fbgrab.1.man /usr/man/man1/fbgrab.1 ++ mkdir -p $(DESTDIR)/usr/bin/ ++ mkdir -p $(DESTDIR)/usr/man/man1/ ++ $(INSTALL) fbgrab $(DESTDIR)/usr/bin/fbgrab ++ $(INSTALL) fbgrab.1.man $(DESTDIR)/usr/man/man1/fbgrab.1 + + clean: +- rm -f fbgrab *~ \#*\# +\ No newline at end of file ++ rm -f fbgrab *~ \#*\# -- cgit v1.2.3