1
0
forked from ports/contrib

obpager: adopted for modular xorg layout

This commit is contained in:
Mikhail Kolesnik 2007-04-09 11:59:14 +03:00
parent 1f33d6faed
commit de1013b676
3 changed files with 33 additions and 5 deletions

View File

@ -1,2 +1,2 @@
1954982d53c7d7ea0dcb860717dcd29c obpager-1.8-errno.patch
2a76036df57042751079de913cb0f216 obpager-1.8.tar.gz
825aa33d356c0a0ae157f7bb87a1544f obpager.diff

View File

@ -1,17 +1,17 @@
# Description: Pager for use with NetWM-compliant window managers like OpenBox
# URL: http://obpager.sourceforge.net/
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
# Depends on: x11
# Depends on: xorg
name=obpager
version=1.8
release=1
release=2
source=(http://dl.sourceforge.net/sourceforge/obpager/$name-$version.tar.gz \
$name-$version-errno.patch)
$name.diff)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-$version-errno.patch
patch -p1 -i $SRC/$name.diff
make
install -D -m 755 obpager $PKG/usr/bin/obpager
}

28
obpager/obpager.diff Normal file
View File

@ -0,0 +1,28 @@
diff -Nru obpager-1.8-orig/Makefile obpager-1.8/Makefile
--- obpager-1.8-orig/Makefile 2007-04-09 11:51:23.000000000 +0300
+++ obpager-1.8/Makefile 2007-04-09 11:53:49.505809739 +0300
@@ -15,10 +15,10 @@
CDEFS = -D_REENTRANT
CPPFLAGS = -ggdb -Wall
#CPPFLAGS = -ggdb -Wall -O2
-INCLUDES = -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions -I./src
+INCLUDES = -I/usr/include/X11 -I/usr/include/X11/extensions -I./src
COMPILE = $(CXX) $(CDEFS) $(INCLUDES) $(CPPFLAGS)
LINK = $(CXX) $(LDFLAGS) $(LDLIBS)
-LDLIBS = -L/usr/X11R6/lib -lX11 -lXext
+LDLIBS = -L/usr/lib -lX11 -lXext
diff -Nru obpager-1.8-orig/src/main.cc obpager-1.8/src/main.cc
--- obpager-1.8-orig/src/main.cc 2007-04-09 11:51:23.000000000 +0300
+++ obpager-1.8/src/main.cc 2007-04-09 11:51:44.000000000 +0300
@@ -16,6 +16,8 @@
See the COPYING file for a copy of the GNU General Public License.
*/
+// why it was not here?
+#include <errno.h>
// Include the STL header(s) we need