summaryrefslogtreecommitdiff
path: root/wm/obpager/patches
diff options
context:
space:
mode:
authortnn <tnn>2007-06-20 18:09:24 +0000
committertnn <tnn>2007-06-20 18:09:24 +0000
commitc2923bdb24f5e810ea436a423113aa6481924abc (patch)
treec7fdb9f8837ee60f54744ea0f77013612eb32b8c /wm/obpager/patches
parentca0dc31adb16d578d1ff4965b46158e821fbac4f (diff)
downloadpkgsrc-c2923bdb24f5e810ea436a423113aa6481924abc.tar.gz
Add obpager-1.8 to pkgsrc:
OBPager is a lightweight pager applet or dockapp. It requires a netwm compatible window manager such as OpenBox. OBPager shows windows in active virtual desktops and allows the user to switch desktops by clicking on the pager dockapp.
Diffstat (limited to 'wm/obpager/patches')
-rw-r--r--wm/obpager/patches/patch-aa38
-rw-r--r--wm/obpager/patches/patch-ab12
2 files changed, 50 insertions, 0 deletions
diff --git a/wm/obpager/patches/patch-aa b/wm/obpager/patches/patch-aa
new file mode 100644
index 00000000000..fb420344af7
--- /dev/null
+++ b/wm/obpager/patches/patch-aa
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/06/20 18:09:24 tnn Exp $
+
+--- Makefile.orig 2004-09-01 16:23:44.000000000 +0200
++++ Makefile
+@@ -13,12 +13,10 @@ INSTALLDIR = /usr/local/bin
+ # Set the compilation flags and such
+ CXX = g++
+ CDEFS = -D_REENTRANT
+-CPPFLAGS = -ggdb -Wall
+-#CPPFLAGS = -ggdb -Wall -O2
+-INCLUDES = -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I./src
+-COMPILE = $(CXX) $(CDEFS) $(INCLUDES) $(CPPFLAGS)
++INCLUDES = -I./src
++COMPILE = $(CXX) $(CXXFLAGS) $(CDEFS) $(INCLUDES) $(CPPFLAGS)
+ LINK = $(CXX) $(LDFLAGS) $(LDLIBS)
+-LDLIBS = -L/usr/X11R6/lib -lX11 -lXext
++LDLIBS = -lX11 -lXext
+
+
+
+@@ -50,7 +48,7 @@ $(EXECUTABLE): $(OBJS)
+
+ install:
+ @echo "Installing obpager...." ;\
+- install $(EXECUTABLE) $(INSTALLDIR)
++ install $(EXECUTABLE) $(PREFIX)/bin
+
+
+ # For deps, copy gcc's dependency output to a ".d" file in the deps dir, then append additional deps to this file.
+@@ -89,7 +87,7 @@ $(OBJDIR)/%.o : %.cc
+ mkdir $(DEPDIR) 2>/dev/null ; mkdir $(DEPDIR)/src 2>/dev/null ; \
+ $(COMPILE) -MMD -o $@ -c $< ; \
+ cp $(OBJDIR)/$*.d $(DEPDIR)/$*.d ; \
+- sed -s -e 's/^[^:]\+: *//' -e 's/ *\\$$//' -e 's/^ *//' -e 's/ \+/ :\n/g' -e 's/$$/ :/' < $(OBJDIR)/$*.d >> $(DEPDIR)/$*.d ; \
++ sed -e 's/^[^:]\+: *//' -e 's/ *\\$$//' -e 's/^ *//' -e 's/ \+/ :\n/g' -e 's/$$/ :/' < $(OBJDIR)/$*.d >> $(DEPDIR)/$*.d ; \
+ rm -f $(OBJDIR)/$*.d
+
+
diff --git a/wm/obpager/patches/patch-ab b/wm/obpager/patches/patch-ab
new file mode 100644
index 00000000000..13df931347c
--- /dev/null
+++ b/wm/obpager/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/06/20 18:09:24 tnn Exp $
+
+--- src/main.cc.orig 2007-06-20 19:54:23.000000000 +0200
++++ src/main.cc
+@@ -26,6 +26,7 @@
+
+ #include <sys/types.h>
+ #include <unistd.h>
++#include <errno.h>
+
+
+ // Include the headers for the pager class and also the spiffy custom exception class