New package: fbgrab
PATCH v2 1/1 New package: fbgrab
FBGrab is a framebuffer screenshot program, capturing the linux frambuffer and converting it to a png-picture.
Signed-off-by Daniel Nystr?m <[email protected]>
--- package/Config.in | 1 + package/fbgrab/Config.in | 9 +++++++++ package/fbgrab/fbgrab-proper_makefile.patch | 23 +++++++++++++++++++++++ package/fbgrab/fbgrab.mk | 14 ++++++++++++++ 4 files changed, 47 insertions(+), 0 deletions(-) create mode 100644 package/fbgrab/Config.in create mode 100644 package/fbgrab/fbgrab-proper_makefile.patch create mode 100644 package/fbgrab/fbgrab.mk
package/Config.in +1 -0
@@ -94,6 +94,7 @@ source "package/directfb/Config.in" source "package/directfb-examples/Config.in" source "package/divine/Config.in" source "package/fbdump/Config.in" +source "package/fbgrab/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/fbset/Config.in" endif
package/fbgrab/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_FBGRAB + bool "fbgrab" + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_ZLIB + help + FBGrab is a framebuffer screenshot program, capturing the linux + frambuffer and converting it to a png-picture. + + http://hem.bredband.net/gmogmo/fbgrab
package/fbgrab/fbgrab-proper_makefile.patch new file +23 -0
@@ -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 <[email protected]> + +--- 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
package/fbgrab/fbgrab.mk new file +14 -0
@@ -0,0 +1,14 @@ +FBGRAB_VERSION = 1.0 +FBGRAB_SOURCE = fbgrab-$(FBGRAB_VERSION).tar.gz +FBGRAB_SITE = http://hem.bredband.net/gmogmo/fbgrab +FBGRAB_DEPENDENCIES = libpng zlib + +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 + +$(eval $(call GENTARGETS,package,fbgrab))
Signature · 1 line
1.7.1
PATCH v2 1/1 New package: fbgrab
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Daniel" == Daniel Nystr?m <[email protected]> writes:
Daniel> FBGrab is a framebuffer screenshot program, capturing the linux Daniel> frambuffer and converting it to a png-picture.
Thanks, committed with minor tweaks.
Notice that kconfig handles selects recursively, so you don't need to explicitly select dependencies of libpng (zlib).
Signature · 1 line
Bye, Peter Korsgaard