aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-11-19 01:43:51 +0800
committerijliao <ijliao@FreeBSD.org>2002-11-19 01:43:51 +0800
commitc78784b728c68a247c6403347d1a91b521dad60e (patch)
treeae08ae70e4dfeebcd468a6bcc7118d4753bb8192
parent35ca33f0984c0554e8abac2441273052955f89fd (diff)
downloadfreebsd-ports-gnome-c78784b728c68a247c6403347d1a91b521dad60e.tar.gz
freebsd-ports-gnome-c78784b728c68a247c6403347d1a91b521dad60e.tar.zst
freebsd-ports-gnome-c78784b728c68a247c6403347d1a91b521dad60e.zip
add libwpcg 0.9.0
A basic 2D/3D computer graphics library which uses OpenGL
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/libwpcg/Makefile22
-rw-r--r--graphics/libwpcg/distinfo1
-rw-r--r--graphics/libwpcg/files/patch-WP_Image.C40
-rw-r--r--graphics/libwpcg/files/patch-WP_Terrain.C11
-rw-r--r--graphics/libwpcg/pkg-comment1
-rw-r--r--graphics/libwpcg/pkg-descr1
-rw-r--r--graphics/libwpcg/pkg-plist1
8 files changed, 78 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 8a4ee0a4d57c..f46af272feea 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -211,6 +211,7 @@
SUBDIR += libungif
SUBDIR += libv3d
SUBDIR += libwmf
+ SUBDIR += libwpcg
SUBDIR += libxine
SUBDIR += linplasma
SUBDIR += linux-bmrt
diff --git a/graphics/libwpcg/Makefile b/graphics/libwpcg/Makefile
new file mode 100644
index 000000000000..dfc501c643a7
--- /dev/null
+++ b/graphics/libwpcg/Makefile
@@ -0,0 +1,22 @@
+# ex:ts=8
+# Ports collection makefile for: libWPCG
+# Date Created: Nov 18, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= libwpcg
+PORTVERSION= 0.9.0
+CATEGORIES= graphics
+MASTER_SITES= http://www.paassen.tmfweb.nl/
+DISTNAME= libWPCG-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_MESA= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
+ LDFLAGS="-L${X11BASE}/lib -lGL -lGLU -lglut"
+
+.include <bsd.port.mk>
diff --git a/graphics/libwpcg/distinfo b/graphics/libwpcg/distinfo
new file mode 100644
index 000000000000..6fac81b65724
--- /dev/null
+++ b/graphics/libwpcg/distinfo
@@ -0,0 +1 @@
+MD5 (libWPCG-0.9.0.tar.gz) = 4a61cf77dac8e064823476ec36f205c7
diff --git a/graphics/libwpcg/files/patch-WP_Image.C b/graphics/libwpcg/files/patch-WP_Image.C
new file mode 100644
index 000000000000..9a35f450edb3
--- /dev/null
+++ b/graphics/libwpcg/files/patch-WP_Image.C
@@ -0,0 +1,40 @@
+--- src/WP_Image.C.orig Sat May 4 00:49:18 2002
++++ src/WP_Image.C Tue Nov 19 01:11:28 2002
+@@ -154,7 +154,7 @@
+ //read file to memory
+
+ int size = 0;
+- byte c;
++ char c;
+ while(input.get(c))
+ {
+ size++;
+@@ -434,7 +434,7 @@
+ //read file to memory
+
+ int size = 0;
+- byte c;
++ char c;
+ while(input.get(c))
+ {
+ size++;
+@@ -460,7 +460,7 @@
+
+ while(input.get(c))
+ {
+- *p = c;
++ *p = (byte)c;
+ p++;
+ }
+
+@@ -717,8 +717,8 @@
+ }
+ }
+
+-void WP_Image::setTextureGL(GLuint* texture_id, GLint wrap_s=GL_REPEAT, GLint wrap_t=GL_REPEAT,
+- GLint mag_filter=GL_NEAREST, GLint min_filter=GL_NEAREST, bool mipmapping=false)
++void WP_Image::setTextureGL(GLuint* texture_id, GLint wrap_s, GLint wrap_t,
++ GLint mag_filter, GLint min_filter, bool mipmapping)
+ {
+ glGenTextures(1, texture_id);
+ glBindTexture(GL_TEXTURE_2D, *texture_id);
diff --git a/graphics/libwpcg/files/patch-WP_Terrain.C b/graphics/libwpcg/files/patch-WP_Terrain.C
new file mode 100644
index 000000000000..174db6ba585c
--- /dev/null
+++ b/graphics/libwpcg/files/patch-WP_Terrain.C
@@ -0,0 +1,11 @@
+--- src/WP_Terrain.C.orig Tue Nov 19 01:14:04 2002
++++ src/WP_Terrain.C Tue Nov 19 01:14:18 2002
+@@ -23,6 +23,8 @@
+ #include "WP_Quad.h"
+ #include "WP_Terrain.h"
+
++using namespace std;
++
+ WP_Terrain::WP_Terrain(int _width, int _height, int number_iterations, scalar resolution, int scale):
+ width(_width), height(_height), displayID(0), height_map(0)
+ {
diff --git a/graphics/libwpcg/pkg-comment b/graphics/libwpcg/pkg-comment
new file mode 100644
index 000000000000..aad7d7e9bbbd
--- /dev/null
+++ b/graphics/libwpcg/pkg-comment
@@ -0,0 +1 @@
+A basic 2D/3D computer graphics library which uses OpenGL
diff --git a/graphics/libwpcg/pkg-descr b/graphics/libwpcg/pkg-descr
new file mode 100644
index 000000000000..aad7d7e9bbbd
--- /dev/null
+++ b/graphics/libwpcg/pkg-descr
@@ -0,0 +1 @@
+A basic 2D/3D computer graphics library which uses OpenGL
diff --git a/graphics/libwpcg/pkg-plist b/graphics/libwpcg/pkg-plist
new file mode 100644
index 000000000000..f72887659e24
--- /dev/null
+++ b/graphics/libwpcg/pkg-plist
@@ -0,0 +1 @@
+lib/libWPCG.a