diff options
author | gahr <gahr@FreeBSD.org> | 2009-03-08 01:30:16 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2009-03-08 01:30:16 +0800 |
commit | d25709af31074f5e4f8de381f7ef20eb13b88a15 (patch) | |
tree | 9d08ba18ddc8839669331a9b80883594ef6de7fa /x11-wm/obpager | |
parent | 099dc7c1ef9ac9092463bb37a9958a01f5bd7bc7 (diff) | |
download | freebsd-ports-gnome-d25709af31074f5e4f8de381f7ef20eb13b88a15.tar.gz freebsd-ports-gnome-d25709af31074f5e4f8de381f7ef20eb13b88a15.tar.zst freebsd-ports-gnome-d25709af31074f5e4f8de381f7ef20eb13b88a15.zip |
- New port: x11-wm/obpager
OBPager is a lightweight pager designed to be used
with NetWM-compliant window managers like OpenBox.
Diffstat (limited to 'x11-wm/obpager')
-rw-r--r-- | x11-wm/obpager/Makefile | 31 | ||||
-rw-r--r-- | x11-wm/obpager/distinfo | 3 | ||||
-rw-r--r-- | x11-wm/obpager/files/patch-Makefile | 25 | ||||
-rw-r--r-- | x11-wm/obpager/files/patch-src_main.cc | 10 | ||||
-rw-r--r-- | x11-wm/obpager/pkg-descr | 10 |
5 files changed, 79 insertions, 0 deletions
diff --git a/x11-wm/obpager/Makefile b/x11-wm/obpager/Makefile new file mode 100644 index 000000000000..419eeb0617d9 --- /dev/null +++ b/x11-wm/obpager/Makefile @@ -0,0 +1,31 @@ +# New ports collection Makefile for: obpager +# Date created: 7 March 2009 +# Whom: gahr +# +# $FreeBSD$ +# + +PORTNAME= obpager +PORTVERSION= 1.8 +CATEGORIES= x11-wm +MASTER_SITES= SF + +MAINTAINER= gahr@FreeBSD.org +COMMENT= A lightweight pager for netwm compatible window managers + +BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed + +USE_XORG= x11 xext +USE_GMAKE= yes + +PLIST_FILES= bin/${PORTNAME} + +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; \ + s|%%LOCALBASE%%|${LOCALBASE}|g; \ + s|%%CXX%%|${CXX}|g; \ + s|sed|gsed|g' ${WRKSRC}/Makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/x11-wm/obpager/distinfo b/x11-wm/obpager/distinfo new file mode 100644 index 000000000000..3137a63ef5bf --- /dev/null +++ b/x11-wm/obpager/distinfo @@ -0,0 +1,3 @@ +MD5 (obpager-1.8.tar.gz) = 2a76036df57042751079de913cb0f216 +SHA256 (obpager-1.8.tar.gz) = 160b688d757b577ae0e2c3c47f2e2504fafe35f2bfa224e344797d0953d35dc9 +SIZE (obpager-1.8.tar.gz) = 23773 diff --git a/x11-wm/obpager/files/patch-Makefile b/x11-wm/obpager/files/patch-Makefile new file mode 100644 index 000000000000..165656efac06 --- /dev/null +++ b/x11-wm/obpager/files/patch-Makefile @@ -0,0 +1,25 @@ +--- Makefile.orig 2009-03-07 18:16:51.000000000 +0100 ++++ Makefile 2009-03-07 18:19:50.000000000 +0100 +@@ -7,18 +7,18 @@ + + + # Set the install directory for the executable +-INSTALLDIR = /usr/local/bin ++INSTALLDIR = %%PREFIX%%/bin + + + # Set the compilation flags and such +-CXX = g++ ++CXX = %%CXX%% + 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%%LOCALBASE%%/include -I%%LOCALBASE%%/include/X11 -I%%LOCALBASE%%/include/X11/extensions -I./src + COMPILE = $(CXX) $(CDEFS) $(INCLUDES) $(CPPFLAGS) + LINK = $(CXX) $(LDFLAGS) $(LDLIBS) +-LDLIBS = -L/usr/X11R6/lib -lX11 -lXext ++LDLIBS = -L%%LOCALBASE%%/lib -lX11 -lXext + + + diff --git a/x11-wm/obpager/files/patch-src_main.cc b/x11-wm/obpager/files/patch-src_main.cc new file mode 100644 index 000000000000..f962dc810c7a --- /dev/null +++ b/x11-wm/obpager/files/patch-src_main.cc @@ -0,0 +1,10 @@ +--- src/main.cc.orig 2009-03-07 18:24:50.000000000 +0100 ++++ src/main.cc 2009-03-07 18:24:58.000000000 +0100 +@@ -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 diff --git a/x11-wm/obpager/pkg-descr b/x11-wm/obpager/pkg-descr new file mode 100644 index 000000000000..bca9d4b7bb0f --- /dev/null +++ b/x11-wm/obpager/pkg-descr @@ -0,0 +1,10 @@ +OBPager is a lightweight pager designed +to be used with NetWM-compliant window +managers like OpenBox. + +Unlike many other pagers out there, +OBPager has very few dependencies, +requiring only Xlib and glibc++ +(no Gnome or KDE necessary). + +WWW: http://obpager.sourceforge.net/ |