summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>2000-04-03 15:50:53 +0000
committersakamoto <sakamoto@pkgsrc.org>2000-04-03 15:50:53 +0000
commit4cef1e23a0268b8c88da3e88006bfc9d822822b9 (patch)
tree846ffccb711a4fc501581e1c14a0649859cea643
parent0149dc8f1467484fb0a70d46f136d6a676e5246c (diff)
downloadpkgsrc-4cef1e23a0268b8c88da3e88006bfc9d822822b9.tar.gz
Import FreeBSD's "xengine" port:
Reciprocating engine for X
-rw-r--r--benchmarks/xengine/Makefile43
-rw-r--r--benchmarks/xengine/files/md52
-rw-r--r--benchmarks/xengine/patches/patch-aa26
-rw-r--r--benchmarks/xengine/pkg/COMMENT1
-rw-r--r--benchmarks/xengine/pkg/DESCR7
-rw-r--r--benchmarks/xengine/pkg/PLIST3
6 files changed, 82 insertions, 0 deletions
diff --git a/benchmarks/xengine/Makefile b/benchmarks/xengine/Makefile
new file mode 100644
index 00000000000..992f25fb1d6
--- /dev/null
+++ b/benchmarks/xengine/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: xengine
+# Version required: pl1
+# Date created: 17 January 1997
+# Whom: FURUSAWA,Kazuhisa <furusawa@com.cs.osakafu-u.ac.jp>
+#
+# $FreeBSD: ports/benchmarks/xengine/Makefile,v 1.9 2000/02/02 22:31:24 mharo Exp $
+#
+
+DISTNAME= xengine-1.0.1
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Usenet/comp.sources.x/volume09/xengine/
+DISTFILES= part01.z patch1.z
+
+PATCH_DIST_STRIP= -p1 # no ${PATCHFILES} but used below
+
+MAINTAINER= kazu@jp.freebsd.org
+
+BUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar
+
+DIST_SUBDIR= xengine
+NO_WRKSUBDIR= yes
+USE_IMAKE= yes
+
+EXTRACT_CMD= zcat
+EXTRACT_BEFORE_ARGS= #empty
+EXTRACT_AFTER_ARGS= | gunshar -d $(WRKDIR)
+
+MAN1= xengine.1
+
+pre-patch:
+ @cd $(WRKSRC) ; ${PATCH} ${PATCH_DIST_ARGS} < xengine.patch1
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/xengine
+ @${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/xengine
+.endif
+ @${ECHO} ""
+ @${ECHO} "Example value:"
+ @${ECHO} " 1067 RPMs with P100, Winner 2000PRO/X, resolution: 1152x900"
+ @${ECHO} ""
+
+.include <bsd.port.mk>
diff --git a/benchmarks/xengine/files/md5 b/benchmarks/xengine/files/md5
new file mode 100644
index 00000000000..3e30bf7b45c
--- /dev/null
+++ b/benchmarks/xengine/files/md5
@@ -0,0 +1,2 @@
+MD5 (xengine/part01.z) = 9ea60511319318b905e6da2604ef35e9
+MD5 (xengine/patch1.z) = 1dc52c711280c0f2567fdf43264e728c
diff --git a/benchmarks/xengine/patches/patch-aa b/benchmarks/xengine/patches/patch-aa
new file mode 100644
index 00000000000..78fbbdfb03d
--- /dev/null
+++ b/benchmarks/xengine/patches/patch-aa
@@ -0,0 +1,26 @@
+*** xengine.c~ Wed Oct 3 10:58:17 1990
+--- xengine.c Sun Dec 8 22:17:43 1996
+***************
+*** 180,191 ****
+
+ Arg args[10];
+
+! XtSetArg(args[0], XtNwidth, 0);
+! XtSetArg(args[1], XtNheight, 0);
+ XtGetValues(w, args, 2);
+-
+- width = args[0].value;
+- height = args[1].value;
+
+ XFreePixmap(XtDisplay(engine), enginePixmap);
+ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
+--- 180,188 ----
+
+ Arg args[10];
+
+! XtSetArg(args[0], XtNwidth, &width);
+! XtSetArg(args[1], XtNheight, &height);
+ XtGetValues(w, args, 2);
+
+ XFreePixmap(XtDisplay(engine), enginePixmap);
+ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
diff --git a/benchmarks/xengine/pkg/COMMENT b/benchmarks/xengine/pkg/COMMENT
new file mode 100644
index 00000000000..30eb52057b9
--- /dev/null
+++ b/benchmarks/xengine/pkg/COMMENT
@@ -0,0 +1 @@
+Reciprocating engine for X
diff --git a/benchmarks/xengine/pkg/DESCR b/benchmarks/xengine/pkg/DESCR
new file mode 100644
index 00000000000..e09f72df520
--- /dev/null
+++ b/benchmarks/xengine/pkg/DESCR
@@ -0,0 +1,7 @@
+`xengine' is a reciprocating engine for X. This program used as
+benchmark for X.
+
+See README and man page for details.
+
+Orignal xengine written by shutoh@cbx.emi.yamaha.co.jp.
+This port is done by kazu@jp.freebsd.org
diff --git a/benchmarks/xengine/pkg/PLIST b/benchmarks/xengine/pkg/PLIST
new file mode 100644
index 00000000000..400ae3097b7
--- /dev/null
+++ b/benchmarks/xengine/pkg/PLIST
@@ -0,0 +1,3 @@
+bin/xengine
+share/doc/xengine/README
+@dirrm share/doc/xengine