From f6cdaf5982097e3e2504c3e8209a2cc510a06576 Mon Sep 17 00:00:00 2001 From: Daniel Nyström Date: Thu, 9 Dec 2010 16:28:29 +0100 Subject: New package: fbgrab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FBGrab is a framebuffer screenshot program, capturing the linux frambuffer and converting it to a png-picture. [Peter: drop zlib dep, add uninstall] Signed-off-by: Daniel Nyström Signed-off-by: Peter Korsgaard --- package/fbgrab/Config.in | 8 ++++++++ package/fbgrab/fbgrab-proper_makefile.patch | 23 +++++++++++++++++++++++ package/fbgrab/fbgrab.mk | 18 ++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 package/fbgrab/Config.in create mode 100644 package/fbgrab/fbgrab-proper_makefile.patch create mode 100644 package/fbgrab/fbgrab.mk (limited to 'package/fbgrab') diff --git a/package/fbgrab/Config.in b/package/fbgrab/Config.in new file mode 100644 index 000000000..ca6c6b711 --- /dev/null +++ b/package/fbgrab/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_FBGRAB + bool "fbgrab" + select BR2_PACKAGE_LIBPNG + help + FBGrab is a framebuffer screenshot program, capturing the linux + frambuffer and converting it to a png-picture. + + http://hem.bredband.net/gmogmo/fbgrab diff --git a/package/fbgrab/fbgrab-proper_makefile.patch b/package/fbgrab/fbgrab-proper_makefile.patch new file mode 100644 index 000000000..e907ed7d8 --- /dev/null +++ b/package/fbgrab/fbgrab-proper_makefile.patch @@ -0,0 +1,23 @@ +[PATCH] fbgrab: A proper Makefile for cross compiling + +Respect to the CC, CFLAGS and LDFLAGS is required for cross compiling in +Buildroot. And there's no need to run the source through splint. + +Signed-off-by: Daniel Nyström + +--- fbgrab-1.0.orig/Makefile 2010-12-07 22:57:24.000000000 +0100 ++++ fbgrab-1.0/Makefile 2010-12-07 22:58:36.000000000 +0100 +@@ -3,9 +3,10 @@ + ### modular. So this is a simple gnu Makefile... + ### + +-fbgrab: fbgrab.c +- splint +posixlib fbgrab.c +- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab ++LDFLAGS += -lpng -lz ++ ++fbgrab: fbgrab.o ++ $(CC) $(LDFLAGS) fbgrab.o -o $@ + + install: + strip fbgrab diff --git a/package/fbgrab/fbgrab.mk b/package/fbgrab/fbgrab.mk new file mode 100644 index 000000000..37f82ea41 --- /dev/null +++ b/package/fbgrab/fbgrab.mk @@ -0,0 +1,18 @@ +FBGRAB_VERSION = 1.0 +FBGRAB_SOURCE = fbgrab-$(FBGRAB_VERSION).tar.gz +FBGRAB_SITE = http://hem.bredband.net/gmogmo/fbgrab +FBGRAB_DEPENDENCIES = libpng + +define FBGRAB_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) +endef + +define FBGRAB_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/fbgrab $(TARGET_DIR)/usr/bin/fbgrab +endef + +define FBGRAB_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/usr/bin/fbgrab +endef + +$(eval $(call GENTARGETS,package,fbgrab)) -- cgit v1.2.3