CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
blackbox: initial import (verified compilation with my own patch file)
authorJose V Beneyto <sepen@crux.nu>
Sat, 19 Dec 2009 10:19:28 +0000 (11:19 +0100)
committerJose V Beneyto <sepen@crux.nu>
Sat, 19 Dec 2009 10:19:28 +0000 (11:19 +0100)
blackbox/.footprint [new file with mode: 0644]
blackbox/.md5sum [new file with mode: 0644]
blackbox/Pkgfile [new file with mode: 0644]
blackbox/blackbox-0.70.1-include-fix.diff [new file with mode: 0644]
blackbox/blackbox-0.70.1.cross_compile.patch [new file with mode: 0644]

diff --git a/blackbox/.footprint b/blackbox/.footprint
new file mode 100644 (file)
index 0000000..b6f340f
--- /dev/null
@@ -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 (file)
index 0000000..706e746
--- /dev/null
@@ -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 (file)
index 0000000..82bcea9
--- /dev/null
@@ -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 (file)
index 0000000..63c75bd
--- /dev/null
@@ -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 <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ // #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 <X11/Xresource.h>
+ #include <stdio.h>
++#include <strings.h>
+ 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 <stdlib.h>
+-
++#include <algorithm>
+ // 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 <X11/Xutil.h>
+ #include <X11/cursorfont.h>
++#include <strings.h>
+ 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 <Resource.hh>
+ #include <assert.h>
+-
++#include <strings.h>
+ 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 <assert.h>
+ #include <ctype.h>
+ #include <dirent.h>
+-
++#include <string.h>
+ 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 <stdio.h>
+-
++#include <string.h>
+ 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 <X11/Xatom.h>
+ #include <stdio.h>
+-
++#include <string.h>
++#include <stdlib.h>
+ // 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 (file)
index 0000000..4fbb659
--- /dev/null
@@ -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'