Import wmbutton-0.4.
Submitted by Peter Stromberg <home@wilfried.net>. wmbutton is a 64x64 pixel application that displays nine buttons. Each of these buttons can be configured via a configuration file to run just about any application you'd like to.
This commit is contained in:
parent
afe664aea0
commit
7db51e5598
28
x11/wmbutton/Makefile
Normal file
28
x11/wmbutton/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/01/16 21:29:04 naddy Exp $
|
||||
|
||||
DISTNAME= wmbutton-0.4
|
||||
CATEGORIES= x11
|
||||
NEED_VERSION= 1.340
|
||||
HOMEPAGE= http://members.access1.net/ehflora/
|
||||
|
||||
MAINTAINER= Peter Stromberg <home@wilfried.net>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}wmbutton/
|
||||
|
||||
SAMPLE_DIR= ${PREFIX}/share/examples/wmbutton
|
||||
|
||||
SUBST_VARS+= SAMPLE_DIR
|
||||
|
||||
USE_X11= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/wmbutton ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${SAMPLE_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/.wmbutton ${SAMPLE_DIR}/dot.wmbutton.sample
|
||||
|
||||
.include <bsd.port.mk>
|
3
x11/wmbutton/files/md5
Normal file
3
x11/wmbutton/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (wmbutton-0.4.tar.gz) = 77b24ab49acfb667116d518d4bb99990
|
||||
RMD160 (wmbutton-0.4.tar.gz) = f863308d18d04d6f32412c4632d4bd2ed831a3fc
|
||||
SHA1 (wmbutton-0.4.tar.gz) = 5ddc5179fe5ade7d1feb63c361426f1dfbd79131
|
25
x11/wmbutton/patches/patch-Makefile
Normal file
25
x11/wmbutton/patches/patch-Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/16 21:29:05 naddy Exp $
|
||||
--- Makefile.orig Mon Mar 8 17:59:20 1999
|
||||
+++ Makefile Tue Jan 16 18:10:47 2001
|
||||
@@ -1,15 +1,17 @@
|
||||
-INCLUDES =-I/usr/X11R6/include/X11 -I/usr/local/include -I/usr/include/X11R6/X11
|
||||
-LIBINC =-L/usr/X11R6/lib -L/usr/include/lib
|
||||
+INCLUDES =-I${X11BASE}/include
|
||||
+LIBINC =-L${X11BASE}/lib
|
||||
LIBS = -lX11 -lXpm -lXext
|
||||
|
||||
TARGET = wmbutton
|
||||
OBJECTS = wmbutton.o readln.o
|
||||
|
||||
.c.o:
|
||||
- gcc -O2 -c -Wall ${INCLUDES} ${FLAGS} $< -o $*.o
|
||||
+ ${CC} ${CFLAGS} -c ${INCLUDES} ${FLAGS} $< -o $*.o
|
||||
|
||||
${TARGET}: ${OBJECTS}
|
||||
- gcc -O2 -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
|
||||
+ ${CC} -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS}
|
||||
+
|
||||
+all:: ${TARGET}
|
||||
|
||||
clean::
|
||||
for i in ${OBJECTS}; do if [ -e $$i ] ; then rm $$i; fi; done
|
31
x11/wmbutton/patches/patch-wmbutton_c
Normal file
31
x11/wmbutton/patches/patch-wmbutton_c
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-wmbutton_c,v 1.1.1.1 2001/01/16 21:29:05 naddy Exp $
|
||||
--- wmbutton.c.orig Mon Mar 8 17:59:20 1999
|
||||
+++ wmbutton.c Fri Jan 12 11:42:57 2001
|
||||
@@ -24,11 +24,11 @@
|
||||
* development of wmbutton. I'm listing them here partially as thanks for
|
||||
* helping out, catching bugs in the code, etc.
|
||||
***********************************************************************/
|
||||
-#include <Xlib.h>
|
||||
-#include <Xutil.h>
|
||||
-#include <xpm.h>
|
||||
-#include <extensions/shape.h>
|
||||
-#include <keysym.h>
|
||||
+#include <X11/Xlib.h>
|
||||
+#include <X11/Xutil.h>
|
||||
+#include <X11/xpm.h>
|
||||
+#include <X11/extensions/shape.h>
|
||||
+#include <X11/keysym.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
@@ -115,8 +115,8 @@ int main( int argc, char ** argv ) {
|
||||
char Geometry_str[64] = "64x64+0+0";
|
||||
char Display_str[64] = "";
|
||||
|
||||
- strcpy(configfile, getenv("HOME")); // Added by Casey Harkin, 3/6/99
|
||||
- strcat(configfile, CONFFILENAME); // Fixed Bug - didn't look in home directory
|
||||
+ strlcpy(configfile, getenv("HOME"), sizeof(configfile)); // Added by Casey Harkin, 3/6/99
|
||||
+ strlcat(configfile, CONFFILENAME, sizeof(configfile)); // Fixed Bug - didn't look in home directory
|
||||
// but startup directory
|
||||
|
||||
/* Parse Command Line Arguments */
|
1
x11/wmbutton/pkg/COMMENT
Normal file
1
x11/wmbutton/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
dockable application launching program
|
15
x11/wmbutton/pkg/DESCR
Normal file
15
x11/wmbutton/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
wmbutton is a 64x64 pixel application that displays nine
|
||||
buttons. Each of these buttons can be configured via a
|
||||
configuration file to run just about any application you'd
|
||||
like to. Basically, if you can type it in a shell command,
|
||||
wmbutton can run it.
|
||||
|
||||
It is specifically designed to be docked in Windowmaker, or
|
||||
'Swallowed' by wharf in Afterstep. Of course, it should work
|
||||
in just about any window manager.
|
||||
|
||||
You need a ~/.wmbutton file, copy a sample from ${SAMPLE_DIR}.
|
||||
|
||||
wmbutton -h gives you usage info.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
x11/wmbutton/pkg/PLIST
Normal file
4
x11/wmbutton/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/16 21:29:04 naddy Exp $
|
||||
bin/wmbutton
|
||||
share/examples/wmbutton/dot.wmbutton.sample
|
||||
@dirrm share/examples/wmbutton
|
Loading…
Reference in New Issue
Block a user