From 420005fcc7e5366af141ec95e567f09778ad6592 Mon Sep 17 00:00:00 2001 From: wilfried Date: Fri, 30 Mar 2001 15:17:51 +0000 Subject: [PATCH] Initial import of wmMand-1.0 wm-dockapp; mandelbrot explorer --- misc/wmmand/Makefile | 27 ++++++++++++++ misc/wmmand/files/md5 | 3 ++ misc/wmmand/patches/patch-wmMand_Makefile | 43 +++++++++++++++++++++++ misc/wmmand/patches/patch-wmMand_wmMand_c | 24 +++++++++++++ misc/wmmand/pkg/DESCR | 3 ++ misc/wmmand/pkg/PLIST | 3 ++ 6 files changed, 103 insertions(+) create mode 100644 misc/wmmand/Makefile create mode 100644 misc/wmmand/files/md5 create mode 100644 misc/wmmand/patches/patch-wmMand_Makefile create mode 100644 misc/wmmand/patches/patch-wmMand_wmMand_c create mode 100644 misc/wmmand/pkg/DESCR create mode 100644 misc/wmmand/pkg/PLIST diff --git a/misc/wmmand/Makefile b/misc/wmmand/Makefile new file mode 100644 index 00000000000..45a723ea53a --- /dev/null +++ b/misc/wmmand/Makefile @@ -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 + +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 diff --git a/misc/wmmand/files/md5 b/misc/wmmand/files/md5 new file mode 100644 index 00000000000..15abe082acf --- /dev/null +++ b/misc/wmmand/files/md5 @@ -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 diff --git a/misc/wmmand/patches/patch-wmMand_Makefile b/misc/wmmand/patches/patch-wmMand_Makefile new file mode 100644 index 00000000000..24fed9b1f0f --- /dev/null +++ b/misc/wmmand/patches/patch-wmMand_Makefile @@ -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 + diff --git a/misc/wmmand/patches/patch-wmMand_wmMand_c b/misc/wmmand/patches/patch-wmMand_wmMand_c new file mode 100644 index 00000000000..6ec366b3670 --- /dev/null +++ b/misc/wmmand/patches/patch-wmMand_wmMand_c @@ -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); ++ } + + + } diff --git a/misc/wmmand/pkg/DESCR b/misc/wmmand/pkg/DESCR new file mode 100644 index 00000000000..3f2f4265c5c --- /dev/null +++ b/misc/wmmand/pkg/DESCR @@ -0,0 +1,3 @@ +A simple mandelbrot explorer that is intended for the Window Maker dock. + +WWW: ${HOMEPAGE} diff --git a/misc/wmmand/pkg/PLIST b/misc/wmmand/pkg/PLIST new file mode 100644 index 00000000000..dc91c849072 --- /dev/null +++ b/misc/wmmand/pkg/PLIST @@ -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