Signed-off-by: Wolfram Sang <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
---
 ...-not-overwrite-CC-to-allow-crosscompiling.patch |   50 ++++++++++++++++++
 patches/fbset-2.1/series                           |    1 +
 rules/fbset.in                                     |   10 ++++
 rules/fbset.make                                   |   55 ++++++++++++++++++++
 4 files changed, 116 insertions(+), 0 deletions(-)
 create mode 100644 
patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
 create mode 100644 patches/fbset-2.1/series
 create mode 100644 rules/fbset.in
 create mode 100644 rules/fbset.make

diff --git 
a/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
 
b/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
new file mode 100644
index 0000000..3721136
--- /dev/null
+++ 
b/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
@@ -0,0 +1,50 @@
+From 78265ef4686eb72f163802b63f7e145f96a88776 Mon Sep 17 00:00:00 2001
+From: Wolfram Sang <[email protected]>
+Date: Thu, 28 Apr 2011 11:51:57 +0200
+Subject: [PATCH] fbset: fix makefile
+
+* do not overwrite CC to allow crosscompiling
+* use DESTDIR
+* don't create nodes or remove files in install
+
+Signed-off-by: Sascha Hauer <[email protected]>
+Signed-off-by: Wolfram Sang <[email protected]>
+---
+ Makefile |   17 ++++-------------
+ 1 file changed, 4 insertions(+), 13 deletions(-)
+
+Index: fbset-2.1/Makefile
+===================================================================
+--- fbset-2.1.orig/Makefile
++++ fbset-2.1/Makefile
+@@ -2,7 +2,7 @@
+ # Linux Frame Buffer Device Configuration
+ #
+ 
+-CC =          gcc -Wall -O2 -I.
++CFLAGS +=     -Wall -O2 -I.
+ BISON =               bison -d
+ FLEX =                flex
+ INSTALL =     install
+@@ -24,18 +24,9 @@ modes.tab.c:        modes.y
+               $(BISON) modes.y
+ 
+ install:      fbset
+-              if [ -f /sbin/fbset ]; then rm /sbin/fbset; fi
+-              $(INSTALL) fbset /usr/sbin
+-              $(INSTALL) fbset.8 /usr/man/man8
+-              $(INSTALL) fb.modes.5 /usr/man/man5
+-              if [ ! -c /dev/fb0 ]; then mknod /dev/fb0 c 29 0; fi
+-              if [ ! -c /dev/fb1 ]; then mknod /dev/fb1 c 29 32; fi
+-              if [ ! -c /dev/fb2 ]; then mknod /dev/fb2 c 29 64; fi
+-              if [ ! -c /dev/fb3 ]; then mknod /dev/fb3 c 29 96; fi
+-              if [ ! -c /dev/fb4 ]; then mknod /dev/fb4 c 29 128; fi
+-              if [ ! -c /dev/fb5 ]; then mknod /dev/fb5 c 29 160; fi
+-              if [ ! -c /dev/fb6 ]; then mknod /dev/fb6 c 29 192; fi
+-              if [ ! -c /dev/fb7 ]; then mknod /dev/fb7 c 29 224; fi
++              $(INSTALL) -D fbset $(DESTDIR)/usr/sbin
++              $(INSTALL) -D fbset.8 $(DESTDIR)/usr/man/man8
++              $(INSTALL) -D fb.modes.5 $(DESTDIR)/usr/man/man5
+ 
+ clean:
+               $(RM) *.o fbset lex.yy.c modes.tab.c modes.tab.h
diff --git a/patches/fbset-2.1/series b/patches/fbset-2.1/series
new file mode 100644
index 0000000..7ec7a11
--- /dev/null
+++ b/patches/fbset-2.1/series
@@ -0,0 +1 @@
+0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
diff --git a/rules/fbset.in b/rules/fbset.in
new file mode 100644
index 0000000..04570e8
--- /dev/null
+++ b/rules/fbset.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_framebuffer
+
+config FBSET
+       tristate
+       prompt "fbset"
+       help
+         fbset is a system utility to show or change the settings
+         of the frame buffer device. The frame buffer device pro-
+         vides a simple and unique interface to access different
+         kinds of graphic displays.
diff --git a/rules/fbset.make b/rules/fbset.make
new file mode 100644
index 0000000..52fc575
--- /dev/null
+++ b/rules/fbset.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Sascha Hauer <[email protected]>
+# Copyright (C) 2011 by Wolfram Sang <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_FBSET) += fbset
+
+#
+# Paths and names
+#
+FBSET_VERSION  := 2.1
+FBSET_MD5      := e547cfcbb8c1a4f2a6b8ba4acb8b7164
+FBSET          := fbset-$(FBSET_VERSION)
+FBSET_SUFFIX   := tar.gz
+FBSET_URL      := 
http://users.telenet.be/geertu/Linux/fbdev/$(FBSET).$(FBSET_SUFFIX)
+FBSET_SOURCE   := $(SRCDIR)/$(FBSET).$(FBSET_SUFFIX)
+FBSET_DIR      := $(BUILDDIR)/$(FBSET)
+FBSET_LICENSE  := GPLv2
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+FBSET_MAKE_ENV := $(CROSS_ENV)
+FBSET_MAKE_PAR := NO
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/fbset.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, fbset)
+       @$(call install_fixup, fbset,PRIORITY,optional)
+       @$(call install_fixup, fbset,SECTION,base)
+       @$(call install_fixup, fbset,AUTHOR,"Sascha Hauer 
<[email protected]>")
+       @$(call install_fixup, fbset,DESCRIPTION,missing)
+
+       @$(call install_copy, fbset, 0, 0, 0755, -, /usr/sbin/fbset)
+
+       @$(call install_finish, fbset)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.7.2.5


-- 
ptxdist mailing list
[email protected]

Reply via email to