From d395d03f0b6a90ab1817df1fb2de3bdb2c27ed11 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Sat, 19 Dec 2009 11:19:28 +0100 Subject: [PATCH] blackbox: initial import (verified compilation with my own patch file) --- blackbox/.footprint | 45 ++++++++++ blackbox/.md5sum | 3 + blackbox/Pkgfile | 31 +++++++ blackbox/blackbox-0.70.1-include-fix.diff | 86 ++++++++++++++++++++ blackbox/blackbox-0.70.1.cross_compile.patch | 18 ++++ 5 files changed, 183 insertions(+) create mode 100644 blackbox/.footprint create mode 100644 blackbox/.md5sum create mode 100644 blackbox/Pkgfile create mode 100644 blackbox/blackbox-0.70.1-include-fix.diff create mode 100644 blackbox/blackbox-0.70.1.cross_compile.patch diff --git a/blackbox/.footprint b/blackbox/.footprint new file mode 100644 index 0000000..b6f340f --- /dev/null +++ b/blackbox/.footprint @@ -0,0 +1,45 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/blackbox +-rwxr-xr-x root/root usr/bin/bsetbg +-rwxr-xr-x root/root usr/bin/bsetroot +-rwxr-xr-x root/root usr/bin/bstyleconvert +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/bt/ +-rw-r--r-- root/root usr/include/bt/Application.hh +-rw-r--r-- root/root usr/include/bt/Bitmap.hh +-rw-r--r-- root/root usr/include/bt/Color.hh +-rw-r--r-- root/root usr/include/bt/Display.hh +-rw-r--r-- root/root usr/include/bt/EWMH.hh +-rw-r--r-- root/root usr/include/bt/EventHandler.hh +-rw-r--r-- root/root usr/include/bt/Font.hh +-rw-r--r-- root/root usr/include/bt/Image.hh +-rw-r--r-- root/root usr/include/bt/Menu.hh +-rw-r--r-- root/root usr/include/bt/Pen.hh +-rw-r--r-- root/root usr/include/bt/PixmapCache.hh +-rw-r--r-- root/root usr/include/bt/Rect.hh +-rw-r--r-- root/root usr/include/bt/Resource.hh +-rw-r--r-- root/root usr/include/bt/Texture.hh +-rw-r--r-- root/root usr/include/bt/Timer.hh +-rw-r--r-- root/root usr/include/bt/Unicode.hh +-rw-r--r-- root/root usr/include/bt/Util.hh +-rw-r--r-- root/root usr/include/bt/XDG.hh +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libbt.a +-rwxr-xr-x root/root usr/lib/libbt.la +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libbt.pc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/blackbox.1.gz +-rw-r--r-- root/root usr/man/man1/bsetbg.1.gz +-rw-r--r-- root/root usr/man/man1/bsetroot.1.gz +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/blackbox/ +-rw-r--r-- root/root usr/share/blackbox/menu +drwxr-xr-x root/root usr/share/blackbox/styles/ +-rw-r--r-- root/root usr/share/blackbox/styles/Blue +-rw-r--r-- root/root usr/share/blackbox/styles/Gray +-rw-r--r-- root/root usr/share/blackbox/styles/Green +-rw-r--r-- root/root usr/share/blackbox/styles/Purple +-rw-r--r-- root/root usr/share/blackbox/styles/Red diff --git a/blackbox/.md5sum b/blackbox/.md5sum new file mode 100644 index 0000000..706e746 --- /dev/null +++ b/blackbox/.md5sum @@ -0,0 +1,3 @@ +150aab3b2b8d8dd5fc30d00f8d79e387 blackbox-0.70.1-include-fix.diff +858eef21075de4318196705be6c91b29 blackbox-0.70.1.cross_compile.patch +53b84260b9d38b35fb25b4baf7bb795a blackbox-0.70.1.tar.bz2 diff --git a/blackbox/Pkgfile b/blackbox/Pkgfile new file mode 100644 index 0000000..82bcea9 --- /dev/null +++ b/blackbox/Pkgfile @@ -0,0 +1,31 @@ +# Description: Fast and small window manager +# URL: http://blackboxwm.sourceforge.net +# Maintainer: Johannes Winkelmann jw at smts dot ch +# Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org +# Depends on: xorg-libxext xorg-libxft + +name=blackbox +version=0.70.1 +release=1 +source=(http://dl.sourceforge.net/sourceforge/blackboxwm/$name-$version.tar.bz2 + $name-$version-include-fix.diff \ + $name-$version.cross_compile.patch) + + +build () { + cd $name-$version + + patch -p1 -i $SRC/$name-$version-include-fix.diff + patch -p1 -i $SRC/$name-$version.cross_compile.patch + + export CPPFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions -I$CLFS/usr/include/freetype2" + export LDFLAGS="-L$CLFS/usr/lib -L$CLFS/usr/lib/xorg -L$CLFS/usr/lib/xorg/modules -lXext -lXft -lXrender -lfontconfig -lfreetype -lX11" + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --disable-nls + + make + make DESTDIR=$PKG install +} diff --git a/blackbox/blackbox-0.70.1-include-fix.diff b/blackbox/blackbox-0.70.1-include-fix.diff new file mode 100644 index 0000000..63c75bd --- /dev/null +++ b/blackbox/blackbox-0.70.1-include-fix.diff @@ -0,0 +1,86 @@ +--- blackbox-0.70.1/lib/Image.cc.orig 2008-10-03 09:23:56.000000000 +0200 ++++ blackbox-0.70.1/lib/Image.cc 2008-10-03 09:24:08.000000000 +0200 +@@ -44,6 +44,7 @@ + #include + #include + #include ++#include + + // #define COLORTABLE_DEBUG + // #define MITSHM_DEBUG +--- blackbox-0.70.1.orig/lib/Resource.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/lib/Resource.cc 2008-10-07 18:34:05.000000000 +0200 +@@ -29,6 +29,7 @@ + #include + + #include ++#include + + + bt::Resource::Resource(void) +--- blackbox-0.70.1.orig/lib/XDG.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/lib/XDG.cc 2008-10-07 18:47:25.000000000 +0200 +@@ -26,7 +26,7 @@ + #include "XDG.hh" + + #include +- ++#include + + // make sure directory names end with a slash + static std::string terminateDir(const std::string &string) +--- blackbox-0.70.1.orig/src/BlackboxResource.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/src/BlackboxResource.cc 2008-10-07 18:48:13.000000000 +0200 +@@ -33,6 +33,7 @@ + #include + #include + ++#include + + BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) { + screen_resources = 0; +--- blackbox-0.70.1.orig/src/ScreenResource.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/src/ScreenResource.cc 2008-10-07 18:49:10.000000000 +0200 +@@ -32,7 +32,7 @@ + #include + + #include +- ++#include + + static const int iconify_width = 9; + static const int iconify_height = 9; +--- blackbox-0.70.1.orig/src/Screen.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/src/Screen.cc 2008-10-07 18:50:01.000000000 +0200 +@@ -47,7 +47,7 @@ + #include + #include + #include +- ++#include + + static bool running = true; + static int anotherWMRunning(Display *, XErrorEvent *) { +--- blackbox-0.70.1.orig/src/main.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/src/main.cc 2008-10-07 18:50:48.000000000 +0200 +@@ -35,7 +35,7 @@ + #include "../version.h" + + #include +- ++#include + + static void showHelp(int exitval) { + // print version - this should not be localized! +--- blackbox-0.70.1.orig/util/bsetroot.cc 2008-10-07 18:32:55.000000000 +0200 ++++ blackbox-0.70.1/util/bsetroot.cc 2008-10-07 18:52:33.000000000 +0200 +@@ -31,7 +31,8 @@ + + #include + #include +- ++#include ++#include + + // ignore all X errors + static int x11_error(::Display *, XErrorEvent *) diff --git a/blackbox/blackbox-0.70.1.cross_compile.patch b/blackbox/blackbox-0.70.1.cross_compile.patch new file mode 100644 index 0000000..4fbb659 --- /dev/null +++ b/blackbox/blackbox-0.70.1.cross_compile.patch @@ -0,0 +1,18 @@ +diff -purN blackbox-0.70.1.orig/configure blackbox-0.70.1/configure +--- blackbox-0.70.1.orig/configure 2009-12-19 11:07:07.000000000 +0100 ++++ blackbox-0.70.1/configure 2009-12-19 11:09:39.000000000 +0100 +@@ -1980,12 +1980,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am + + test "x$prefix" = "xNONE" && prefix="$ac_default_prefix" + +-CPPFLAGS="$CPPFLAGS -I$prefix/include" +-LDFLAGS="$LDFLAGS -L$prefix/lib" +-if test "x$prefix" != "x/usr/local"; then +- CPPFLAGS="$CPPFLAGS -I/usr/local/include" +- LDFLAGS="$LDFLAGS -L/usr/local/lib" +-fi ++CPPFLAGS="$CPPFLAGS" ++LDFLAGS="$LDFLAGS" + + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' -- 2.26.2