summaryrefslogtreecommitdiff
path: root/x11/xhangglider
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-08-05 03:51:18 +0000
committerhubertf <hubertf@pkgsrc.org>1999-08-05 03:51:18 +0000
commitb4ba7a4beea8734dc1555f1b031e381ce4cd888f (patch)
treef8f8de77bd2c5af6a11c36f75dd6c84e49ed5cce /x11/xhangglider
parentb2c74874a5b9e02c6c79077c911f86faa01c6174 (diff)
downloadpkgsrc-b4ba7a4beea8734dc1555f1b031e381ce4cd888f.tar.gz
Hanggliders fly in the background of the X screen.
Picked up at www.happypengiun.org (no comment :-)
Diffstat (limited to 'x11/xhangglider')
-rw-r--r--x11/xhangglider/Makefile22
-rw-r--r--x11/xhangglider/files/md53
-rw-r--r--x11/xhangglider/files/patch-sum6
-rw-r--r--x11/xhangglider/patches/patch-aa13
-rw-r--r--x11/xhangglider/patches/patch-ab18
-rw-r--r--x11/xhangglider/patches/patch-ac13
-rw-r--r--x11/xhangglider/patches/patch-ad13
-rw-r--r--x11/xhangglider/pkg/COMMENT1
-rw-r--r--x11/xhangglider/pkg/DESCR9
-rw-r--r--x11/xhangglider/pkg/PLIST4
10 files changed, 102 insertions, 0 deletions
diff --git a/x11/xhangglider/Makefile b/x11/xhangglider/Makefile
new file mode 100644
index 00000000000..98c4f199c3b
--- /dev/null
+++ b/x11/xhangglider/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+#
+
+DISTNAME= xhangglider-0.92e
+CATEGORIES= x11
+MASTER_SITES= http://plaza.harmonix.ne.jp/~redstar/
+
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://plaza.harmonix.ne.jp/~redstar/xhang-en.html
+
+USE_IMAKE= yes
+BUILD_ENV+= PREFIX=${PREFIX}
+
+post-extract:
+ ${RM} ${WRKSRC}/Makefile
+ ${TOUCH} ${WRKSRC}/xhangglider.man
+
+do-install:
+ cd ${WRKSRC} ; make install
+ cd ${WRKSRC} ; make install.dat
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xhangglider/files/md5 b/x11/xhangglider/files/md5
new file mode 100644
index 00000000000..16e66f108c2
--- /dev/null
+++ b/x11/xhangglider/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+MD5 (xhangglider-0.92e.tar.gz) = abf460e147d80842c443761a26098b64
diff --git a/x11/xhangglider/files/patch-sum b/x11/xhangglider/files/patch-sum
new file mode 100644
index 00000000000..2f4a02c7757
--- /dev/null
+++ b/x11/xhangglider/files/patch-sum
@@ -0,0 +1,6 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+MD5 (patch-aa) = 692937755c37fd21aab641c10eb5205e
+MD5 (patch-ab) = a3a731ecb1b1c66d88bd669700e7c793
+MD5 (patch-ac) = 8439001359b9d6535f416b2eab6a6362
+MD5 (patch-ad) = 5f7a48b2379ec187b7888756bcebfc86
diff --git a/x11/xhangglider/patches/patch-aa b/x11/xhangglider/patches/patch-aa
new file mode 100644
index 00000000000..65f27b369e3
--- /dev/null
+++ b/x11/xhangglider/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+--- xhang.c.orig Thu Aug 5 05:07:48 1999
++++ xhang.c Thu Aug 5 05:08:25 1999
+@@ -418,7 +418,7 @@
+ return 0;
+ }
+
+-int cmp_nearfar(void *v1, void *v2)
++int cmp_nearfar(const void *v1, const void *v2)
+ {
+ int i1, i2;
+
diff --git a/x11/xhangglider/patches/patch-ab b/x11/xhangglider/patches/patch-ab
new file mode 100644
index 00000000000..54dc0abd3f8
--- /dev/null
+++ b/x11/xhangglider/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+--- Imakefile.orig Sun May 9 14:34:17 1999
++++ Imakefile Thu Aug 5 05:32:09 1999
+@@ -2,10 +2,10 @@
+ LOCAL_LIBRARIES = $(XLIB)
+ DEPLIBS = $(DEPXLIB)
+ SYS_LIBRARIES = -lm
+- CDEBUGFLAGS = -g -O2 -Wall -DDEFAULT_DATA_PATH="\"$(DATDIR)\""
++ CDEBUGFLAGS = -g -O2 -Wall -DDEFAULT_DATA_PATH="\"$(DATDIR)\"" -DPREFIX=\"${PREFIX}\"
+ INSTALLFLAGS = $(INSTBINFLAGS)
+- DATDIR = /usr/local/share/xhangglider
+- BINDIR = /usr/local/bin
++ DATDIR = ${PREFIX}/share/xhangglider
++ BINDIR = ${PREFIX}/bin
+
+
+ SRCS = xhang.c 3ddraw.c pilot.c init.c
diff --git a/x11/xhangglider/patches/patch-ac b/x11/xhangglider/patches/patch-ac
new file mode 100644
index 00000000000..5819052d0f2
--- /dev/null
+++ b/x11/xhangglider/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+--- def.h.orig Thu Aug 5 05:27:25 1999
++++ def.h Thu Aug 5 05:27:37 1999
+@@ -20,7 +20,7 @@
+ #define __DEF_H
+
+ #ifndef DEFAULT_DATA_PATH
+-#define DEFAULT_DATA_PATH "/usr/share/xhangglider"
++#define DEFAULT_DATA_PATH PREFIX "/share/xhangglider"
+ #endif
+
+ #define myTRUE 1
diff --git a/x11/xhangglider/patches/patch-ad b/x11/xhangglider/patches/patch-ad
new file mode 100644
index 00000000000..94ce9b86229
--- /dev/null
+++ b/x11/xhangglider/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+
+--- init.c.orig Thu Aug 5 05:27:57 1999
++++ init.c Thu Aug 5 05:28:17 1999
+@@ -60,7 +60,7 @@
+ if (i) {
+ fprintf(stderr, "polygon data path %s not exist.\n", datadir);
+ fprintf(stderr, "To specify the path, describe it in the deffile like\n");
+- fprintf(stderr, "PolygonDataPath /usr/share/xhangglider\n\n");
++ fprintf(stderr, "PolygonDataPath " PREFIX "/share/xhangglider\n\n");
+ }
+
+ return 0;
diff --git a/x11/xhangglider/pkg/COMMENT b/x11/xhangglider/pkg/COMMENT
new file mode 100644
index 00000000000..87cb7aaadc0
--- /dev/null
+++ b/x11/xhangglider/pkg/COMMENT
@@ -0,0 +1 @@
+Hanggliders fly in the background of the X screen.
diff --git a/x11/xhangglider/pkg/DESCR b/x11/xhangglider/pkg/DESCR
new file mode 100644
index 00000000000..741b35fec47
--- /dev/null
+++ b/x11/xhangglider/pkg/DESCR
@@ -0,0 +1,9 @@
+Hanggliders fly in the background of the X screen.
+You can build and run this program if you have C
+compiler, include files like Xlib.h, and X is available.
+
+I recommend 8bpp or more.
+
+For me, I like to run the program with options "-pilot
+4 -vario -frequency 0.2", without the option
+'-noflicker' or '-useclip'. It is much faster!
diff --git a/x11/xhangglider/pkg/PLIST b/x11/xhangglider/pkg/PLIST
new file mode 100644
index 00000000000..05f31691c2c
--- /dev/null
+++ b/x11/xhangglider/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/05 03:51:18 hubertf Exp $
+bin/xhangglider
+share/xhangglider/hg_standard.dat
+share/xhangglider/glider.def