Initial import of wmMand-1.0

wm-dockapp; mandelbrot explorer
This commit is contained in:
wilfried 2001-03-30 15:17:51 +00:00
parent 7d405ba56f
commit 420005fcc7
6 changed files with 103 additions and 0 deletions

27
misc/wmmand/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/03/30 15:17:51 wilfried Exp $
COMMENT= 'wm-dockapp; mandelbrot explorer'
DISTNAME= wmMand-1.0
PKGNAME= ${DISTNAME:L}
CATEGORIES= misc x11 x11/windowmaker
NEED_VERSION= 1.378
HOMEPAGE= http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://nis-www.lanl.gov/~mgh/WindowMaker/
RUN_DEPENDS= xv::graphics/xv
WRKSRC= ${WRKDIST}/wmMand
ALL_TARGET= clean all
.include <bsd.port.mk>

3
misc/wmmand/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (wmMand-1.0.tar.gz) = f20bca536ba765cf2a80b56e063ed578
RMD160 (wmMand-1.0.tar.gz) = b527ae9402ab60873706fd415ccc20e2c5a03783
SHA1 (wmMand-1.0.tar.gz) = 353716b0ac48d16c7ce36b1f5b29d429a1da94ab

View File

@ -0,0 +1,43 @@
$OpenBSD: patch-wmMand_Makefile,v 1.1.1.1 2001/03/30 15:17:51 wilfried Exp $
--- wmMand/Makefile.orig Mon Feb 15 17:43:51 1999
+++ wmMand/Makefile Fri Mar 30 16:17:59 2001
@@ -1,8 +1,8 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+#CC = gcc
+#CFLAGS = -O2 -Wall
+INCDIR = -I${X11BASE}/include
+#DESTDIR= /usr/X11R6
+LIBDIR = -L${X11BASE}/lib
# for linux
LIBS = -lXpm -lX11 -lXext
# for Solaris
@@ -12,14 +12,14 @@ OBJS = wmMand.o \
.c.o:
- $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+ $(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
all: wmMand.o wmMand
wmMand.o: wmMand_master.xpm wmMand_mask.xbm
wmMand: $(OBJS)
- $(CC) $(CFLAGS) $(SYSTEM) -o wmMand $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmMand $(OBJS) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
@@ -28,6 +28,6 @@ clean:
rm -f wmMand
install:: wmMand
- install -s -m 0755 wmMand $(DESTDIR)/bin
- install -m 0644 wmMand.1 $(DESTDIR)/man/man1
+ ${BSD_INSTALL_PROGRAM} wmMand $(PREFIX)/bin
+ ${BSD_INSTALL_MAN} wmMand.1 $(PREFIX)/man/man1

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-wmMand_wmMand_c,v 1.1.1.1 2001/03/30 15:17:51 wilfried Exp $
--- wmMand/wmMand.c.orig Mon Feb 15 17:30:27 1999
+++ wmMand/wmMand.c Fri Mar 30 16:38:00 2001
@@ -504,11 +504,16 @@ void ButtonPressEvent(XButtonEvent *xev,
} else if ((xev->x >= 50)&&(xev->x <= 58)){
+ char name[FILENAME_MAX];
+ snprintf(name, sizeof(name), "%s/.wmMand.gif", getenv("HOME"));
ComputeImage(Center_x, Center_y, 540, 540, Range, BigImage);
- fp_gif = fopen("/tmp/wmMand.gif", "w");
- WriteGIF(fp_gif, BigImage, 0, 540, 540, Info->RRR, Info->GGG, Info->BBB, 256, 0, "");
- fclose(fp_gif);
- system("xv /tmp/wmMand.gif &");
+ if ((fp_gif = fopen(name, "w"))) {
+ char cmd[FILENAME_MAX];
+ WriteGIF(fp_gif, BigImage, 0, 540, 540, Info->RRR, Info->GGG, Info->BBB, 256, 0, "");
+ fclose(fp_gif);
+ snprintf(cmd, sizeof(cmd), "xv %s &", name);
+ system(cmd);
+ }
}

3
misc/wmmand/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
A simple mandelbrot explorer that is intended for the Window Maker dock.
WWW: ${HOMEPAGE}

3
misc/wmmand/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/30 15:17:51 wilfried Exp $
bin/wmMand
man/man1/wmMand.1