From: "Daniel Nyström" <daniel.nystrom@timeterminal.se>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] New package: fbgrab
Date: Thu, 9 Dec 2010 16:28:29 +0100 [thread overview]
Message-ID: <1291908509-18850-1-git-send-email-daniel.nystrom@timeterminal.se> (raw)
FBGrab is a framebuffer screenshot program, capturing the linux
frambuffer and converting it to a png-picture.
Signed-off-by: Daniel Nystr?m <daniel.nystrom@timeterminal.se>
---
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
diff --git a/package/Config.in b/package/Config.in
index 08ffda6..2618ecb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
diff --git a/package/fbgrab/Config.in b/package/fbgrab/Config.in
new file mode 100644
index 0000000..1a6c8c0
--- /dev/null
+++ b/package/fbgrab/Config.in
@@ -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
diff --git a/package/fbgrab/fbgrab-proper_makefile.patch b/package/fbgrab/fbgrab-proper_makefile.patch
new file mode 100644
index 0000000..e907ed7
--- /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 <daniel.nystrom@timeterminal.se>
+
+--- 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 0000000..28532a5
--- /dev/null
+++ b/package/fbgrab/fbgrab.mk
@@ -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))
--
1.7.1
next reply other threads:[~2010-12-09 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 15:28 Daniel Nyström [this message]
2010-12-13 16:10 ` [Buildroot] [PATCH v2] New package: fbgrab Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291908509-18850-1-git-send-email-daniel.nystrom@timeterminal.se \
--to=daniel.nystrom@timeterminal.se \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox