diff --git a/srcpkgs/wm2/patches/fix-compile.patch b/srcpkgs/wm2/patches/fix-compile.patch new file mode 100644 index 00000000000..2c1209d54b8 --- /dev/null +++ b/srcpkgs/wm2/patches/fix-compile.patch @@ -0,0 +1,92 @@ +diff -ur Client.C Client.C +--- Client.C 1997-03-21 12:12:30.000000000 +0100 ++++ Client.C 2007-06-30 16:56:10.000000000 +0200 +@@ -400,7 +400,7 @@ + } + + +-int Client::getAtomProperty(Atom a, Atom type) ++uintptr_t Client::getAtomProperty(Atom a, Atom type) + { + char **p, *x; + if (getProperty_aux(display(), m_window, a, type, 1L, +@@ -410,7 +410,7 @@ + + x = *p; + XFree((void *)p); +- return (int)x; ++ return (uintptr_t)x; + } + + +diff -ur Client.h Client.h +--- Client.h 1997-03-21 12:12:30.000000000 +0100 ++++ Client.h 2007-06-30 16:56:10.000000000 +0200 +@@ -2,6 +2,8 @@ + #ifndef _CLIENT_H_ + #define _CLIENT_H_ + ++#include ++ + #include "General.h" + #include "Manager.h" + #include "Border.h" +@@ -125,7 +127,7 @@ + WindowManager *const m_windowManager; + + char *getProperty(Atom); +- int getAtomProperty(Atom, Atom); ++ uintptr_t getAtomProperty(Atom, Atom); + int getIntegerProperty(Atom); + + // accessors +diff -ur General.h General.h +--- General.h 1997-03-21 12:12:30.000000000 +0100 ++++ General.h 2007-06-30 16:56:10.000000000 +0200 +@@ -32,7 +32,7 @@ + #define NewString(x) (strcpy((char *)malloc(strlen(x)+1),(x))) + + #ifndef SIGNAL_CALLBACK_TYPE +-#define SIGNAL_CALLBACK_TYPE (void (*)(...)) ++#define SIGNAL_CALLBACK_TYPE (void (*)(int)) + #endif + + #define signal(x,y) \ +diff -ur Makefile Makefile +--- Makefile 1997-03-21 12:12:30.000000000 +0100 ++++ Makefile 2007-06-30 16:56:10.000000000 +0200 +@@ -1,8 +1,6 @@ + +-LIBS = -L/usr/X11/lib -lXext -lX11 -lXmu -lm ++LIBS = -L/usr/X11R6/lib -lXext -lX11 -lXmu -lm + +-CC = gcc +-CCC = gcc +-CFLAGS = -O2 ++CCC = $(CXX) + OBJECTS = Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o + +diff -ur Manager.C Manager.C +--- Manager.C 1997-03-21 12:12:30.000000000 +0100 ++++ Manager.C 2007-06-30 16:56:10.000000000 +0200 +@@ -368,7 +368,7 @@ + return m_currentTime; + } + +-void WindowManager::sigHandler() ++void WindowManager::sigHandler(int n) + { + m_signalled = True; + } +diff -ur Manager.h Manager.h +--- Manager.h 1997-03-21 12:12:30.000000000 +0100 ++++ Manager.h 2007-06-30 16:56:10.000000000 +0200 +@@ -85,7 +85,7 @@ + + static Boolean m_initialising; + static int errorHandler(Display *, XErrorEvent *); +- static void sigHandler(); ++ static void sigHandler(int); + static int m_signalled; + + void initialiseScreen(); diff --git a/srcpkgs/wm2/template b/srcpkgs/wm2/template new file mode 100644 index 00000000000..1cbd8543ae9 --- /dev/null +++ b/srcpkgs/wm2/template @@ -0,0 +1,16 @@ +# Template file for 'wm2' +pkgname=wm2 +version=4 +revision=1 +build_style=gnu-makefile +makedepends="libX11-devel libXext-devel libXmu-devel" +short_desc="a simple window manager for X" +maintainer="Enno Boland " +license="BSD" +homepage="http://www.all-day-breakfast.com/wm2" +distfiles="http://www.all-day-breakfast.com/wm2/wm2-${version}.tar.gz" +checksum=a6c3352390f958c5033408ce73e1abd9677372a7c8c5949e39a62fda433b054d + +do_install() { + vbin wm2 +}