aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-05-25 18:56:32 +0800
committerkris <kris@FreeBSD.org>2002-05-25 18:56:32 +0800
commit0106c069868dd798de9fec2e976a5bd299c14305 (patch)
tree4fe719d533f04f516f7175e476cae085d546001b /graphics
parentbe3f04af1e2de8f210e19cdfdf6d5c53453fb4ff (diff)
downloadfreebsd-ports-gnome-0106c069868dd798de9fec2e976a5bd299c14305.tar.gz
freebsd-ports-gnome-0106c069868dd798de9fec2e976a5bd299c14305.tar.zst
freebsd-ports-gnome-0106c069868dd798de9fec2e976a5bd299c14305.zip
Add hgl-2.0.4
HGL is graphics library for Hugs98, an implementation of Haskell 98. Submitted by: Byunghyun Oh <octaphial@yahoo.com> PR: ports/34193
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/hgl/Makefile44
-rw-r--r--graphics/hgl/distinfo1
-rw-r--r--graphics/hgl/files/patch-aa41
-rw-r--r--graphics/hgl/pkg-comment1
-rw-r--r--graphics/hgl/pkg-descr15
-rw-r--r--graphics/hgl/pkg-plist39
-rw-r--r--graphics/hgl/scripts/hugs-hgl3
-rw-r--r--graphics/hs-hgl/Makefile44
-rw-r--r--graphics/hs-hgl/distinfo1
-rw-r--r--graphics/hs-hgl/files/patch-aa41
-rw-r--r--graphics/hs-hgl/pkg-comment1
-rw-r--r--graphics/hs-hgl/pkg-descr15
-rw-r--r--graphics/hs-hgl/pkg-plist39
-rw-r--r--graphics/hs-hgl/scripts/hugs-hgl3
15 files changed, 289 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 813a1d067c6f..f87a702af713 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -115,6 +115,7 @@
SUBDIR += gview
SUBDIR += gxanim
SUBDIR += hdf
+ SUBDIR += hgl
SUBDIR += hobbes-icons-xpm
SUBDIR += hppsmtools
SUBDIR += icod
diff --git a/graphics/hgl/Makefile b/graphics/hgl/Makefile
new file mode 100644
index 000000000000..8ee83096c2d4
--- /dev/null
+++ b/graphics/hgl/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: hgl
+# Date created: 22 January 2002
+# Whom: octaphial
+#
+# $FreeBSD$
+#
+
+PORTNAME= hgl
+PORTVERSION= 2.0.4
+CATEGORIES= graphics
+MASTER_SITES= http://haskell.org/graphics/downloads/
+DISTNAME= graphics-${PORTVERSION}.src
+
+MAINTAINER= octaphial@yahoo.com
+
+RUN_DEPENDS= hugs:${PORTSDIR}/lang/hugs
+
+WRKSRC= ${WRKDIR}/graphics-${PORTVERSION}
+USE_GMAKE= yes
+
+BUILD_WRKSRC= ${WRKSRC}/lib/x11
+MAKE_ENV= system=FreeBSD \
+ hugs_install=${PREFIX}/share/hugs
+ALL_TARGET= all
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/hugs/lib/x11
+ ${MKDIR} ${PREFIX}/share/hugs/demos/hgl
+ ${INSTALL_SCRIPT} ${PKGDIR}/scripts/hugs-hgl ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/x11/*.hs ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.o ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.so ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/hugs/demos/hgl
+ ${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/hugs/demos/hgl
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/License ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Version ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Version-2.0.4 ${PREFIX}/share/doc/hgl
+
+.include <bsd.port.mk>
diff --git a/graphics/hgl/distinfo b/graphics/hgl/distinfo
new file mode 100644
index 000000000000..88ccc64b766d
--- /dev/null
+++ b/graphics/hgl/distinfo
@@ -0,0 +1 @@
+MD5 (graphics-2.0.4.src.tar.gz) = 60da7bc8f3a2414778fe1e693ba54ab4
diff --git a/graphics/hgl/files/patch-aa b/graphics/hgl/files/patch-aa
new file mode 100644
index 000000000000..15413dfb577c
--- /dev/null
+++ b/graphics/hgl/files/patch-aa
@@ -0,0 +1,41 @@
+--- lib/x11/X.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/X.c Tue Jan 22 11:18:50 2002
+@@ -5526,8 +5526,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
+diff -Naur graphics-2.0.4.orig/lib/x11/Xlib.c graphics-2.0.4/lib/x11/Xlib.c
+--- lib/x11/Xlib.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/Xlib.c Tue Jan 22 11:19:05 2002
+@@ -4349,8 +4349,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
+diff -Naur graphics-2.0.4.orig/lib/x11/Xlib_StdDIS.c graphics-2.0.4/lib/x11/Xlib_StdDIS.c
+--- lib/x11/Xlib_StdDIS.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/Xlib_StdDIS.c Tue Jan 22 11:17:48 2002
+@@ -65,8 +65,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
diff --git a/graphics/hgl/pkg-comment b/graphics/hgl/pkg-comment
new file mode 100644
index 000000000000..5d12a09ca598
--- /dev/null
+++ b/graphics/hgl/pkg-comment
@@ -0,0 +1 @@
+Graphics library for Hugs98, an implementation of Haskell 98
diff --git a/graphics/hgl/pkg-descr b/graphics/hgl/pkg-descr
new file mode 100644
index 000000000000..6116627eafb5
--- /dev/null
+++ b/graphics/hgl/pkg-descr
@@ -0,0 +1,15 @@
+From homepage of HGL:
+
+The HGL gives the programmer access to the most interesting parts of
+the Win32 and X11 library without exposing the programmer to the pain
+and anguish usually associated with using these interfaces. The library
+library is distributed as open source and is suitable for use in
+teaching and in applications.
+
+...
+
+WWW: http://haskell.org/graphics/
+
+
+ - Byunghyun Oh
+ octaphial@yahoo.com
diff --git a/graphics/hgl/pkg-plist b/graphics/hgl/pkg-plist
new file mode 100644
index 000000000000..bf24fc9d51c2
--- /dev/null
+++ b/graphics/hgl/pkg-plist
@@ -0,0 +1,39 @@
+bin/hugs-hgl
+share/doc/hgl/License
+share/doc/hgl/Readme
+share/doc/hgl/Version
+share/doc/hgl/Version-2.0.4
+share/doc/hgl/Graphics.dvi
+share/doc/hgl/Graphics.tex
+share/doc/hgl/appendix.tex
+share/doc/hgl/graphics.bib
+share/doc/hgl/oldappendix.tex
+share/hugs/demos/hgl/HelloWorld.hs
+share/hugs/demos/hgl/GTest.hs
+share/hugs/demos/hgl/Tests.hs
+share/hugs/lib/x11/GraphicsCore.hs
+share/hugs/lib/x11/GraphicsDC.hs
+share/hugs/lib/x11/GraphicsEvent.hs
+share/hugs/lib/x11/GraphicsEvents.hs
+share/hugs/lib/x11/GraphicsFlag.hs
+share/hugs/lib/x11/GraphicsFont.hs
+share/hugs/lib/x11/GraphicsKey.hs
+share/hugs/lib/x11/GraphicsPicture.hs
+share/hugs/lib/x11/GraphicsRegion.hs
+share/hugs/lib/x11/GraphicsTimer.hs
+share/hugs/lib/x11/GraphicsUtils.hs
+share/hugs/lib/x11/GraphicsWindow.hs
+share/hugs/lib/x11/GraphicsWindows.hs
+share/hugs/lib/x11/Graphics_Utilities.hs
+share/hugs/lib/x11/SOEGraphics.hs
+share/hugs/lib/x11/X.hs
+share/hugs/lib/x11/X.o
+share/hugs/lib/x11/X.so
+share/hugs/lib/x11/Xlib.hs
+share/hugs/lib/x11/Xlib.o
+share/hugs/lib/x11/Xlib.so
+share/hugs/lib/x11/Xlib_StdDIS.hs
+share/hugs/lib/x11/Xlib_StdDIS.so
+@dirrm share/doc/hgl
+@dirrm share/hugs/demos/hgl
+@dirrm share/hugs/lib/x11
diff --git a/graphics/hgl/scripts/hugs-hgl b/graphics/hgl/scripts/hugs-hgl
new file mode 100644
index 000000000000..37ca106a7798
--- /dev/null
+++ b/graphics/hgl/scripts/hugs-hgl
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+hugs -P{Hugs}/lib/x11: $@
diff --git a/graphics/hs-hgl/Makefile b/graphics/hs-hgl/Makefile
new file mode 100644
index 000000000000..8ee83096c2d4
--- /dev/null
+++ b/graphics/hs-hgl/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: hgl
+# Date created: 22 January 2002
+# Whom: octaphial
+#
+# $FreeBSD$
+#
+
+PORTNAME= hgl
+PORTVERSION= 2.0.4
+CATEGORIES= graphics
+MASTER_SITES= http://haskell.org/graphics/downloads/
+DISTNAME= graphics-${PORTVERSION}.src
+
+MAINTAINER= octaphial@yahoo.com
+
+RUN_DEPENDS= hugs:${PORTSDIR}/lang/hugs
+
+WRKSRC= ${WRKDIR}/graphics-${PORTVERSION}
+USE_GMAKE= yes
+
+BUILD_WRKSRC= ${WRKSRC}/lib/x11
+MAKE_ENV= system=FreeBSD \
+ hugs_install=${PREFIX}/share/hugs
+ALL_TARGET= all
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/hugs/lib/x11
+ ${MKDIR} ${PREFIX}/share/hugs/demos/hgl
+ ${INSTALL_SCRIPT} ${PKGDIR}/scripts/hugs-hgl ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/x11/*.hs ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.o ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.so ${PREFIX}/share/hugs/lib/x11
+ ${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/hugs/demos/hgl
+ ${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/hugs/demos/hgl
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/License ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Version ${PREFIX}/share/doc/hgl
+ ${INSTALL_DATA} ${WRKSRC}/Version-2.0.4 ${PREFIX}/share/doc/hgl
+
+.include <bsd.port.mk>
diff --git a/graphics/hs-hgl/distinfo b/graphics/hs-hgl/distinfo
new file mode 100644
index 000000000000..88ccc64b766d
--- /dev/null
+++ b/graphics/hs-hgl/distinfo
@@ -0,0 +1 @@
+MD5 (graphics-2.0.4.src.tar.gz) = 60da7bc8f3a2414778fe1e693ba54ab4
diff --git a/graphics/hs-hgl/files/patch-aa b/graphics/hs-hgl/files/patch-aa
new file mode 100644
index 000000000000..15413dfb577c
--- /dev/null
+++ b/graphics/hs-hgl/files/patch-aa
@@ -0,0 +1,41 @@
+--- lib/x11/X.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/X.c Tue Jan 22 11:18:50 2002
+@@ -5526,8 +5526,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
+diff -Naur graphics-2.0.4.orig/lib/x11/Xlib.c graphics-2.0.4/lib/x11/Xlib.c
+--- lib/x11/Xlib.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/Xlib.c Tue Jan 22 11:19:05 2002
+@@ -4349,8 +4349,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
+diff -Naur graphics-2.0.4.orig/lib/x11/Xlib_StdDIS.c graphics-2.0.4/lib/x11/Xlib_StdDIS.c
+--- lib/x11/Xlib_StdDIS.c.orig Wed Sep 5 16:26:18 2001
++++ lib/x11/Xlib_StdDIS.c Tue Jan 22 11:17:48 2002
+@@ -65,8 +65,8 @@
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-DLLEXPORT(void) initModule(HugsAPI3 *);
+-DLLEXPORT(void) initModule(HugsAPI3 *hugsAPI) {
++DLLEXPORT(void) _initModule(HugsAPI3 *);
++DLLEXPORT(void) _initModule(HugsAPI3 *hugsAPI) {
+ hugs = hugsAPI;
+ hugs->registerPrims(&prims);
+ }
diff --git a/graphics/hs-hgl/pkg-comment b/graphics/hs-hgl/pkg-comment
new file mode 100644
index 000000000000..5d12a09ca598
--- /dev/null
+++ b/graphics/hs-hgl/pkg-comment
@@ -0,0 +1 @@
+Graphics library for Hugs98, an implementation of Haskell 98
diff --git a/graphics/hs-hgl/pkg-descr b/graphics/hs-hgl/pkg-descr
new file mode 100644
index 000000000000..6116627eafb5
--- /dev/null
+++ b/graphics/hs-hgl/pkg-descr
@@ -0,0 +1,15 @@
+From homepage of HGL:
+
+The HGL gives the programmer access to the most interesting parts of
+the Win32 and X11 library without exposing the programmer to the pain
+and anguish usually associated with using these interfaces. The library
+library is distributed as open source and is suitable for use in
+teaching and in applications.
+
+...
+
+WWW: http://haskell.org/graphics/
+
+
+ - Byunghyun Oh
+ octaphial@yahoo.com
diff --git a/graphics/hs-hgl/pkg-plist b/graphics/hs-hgl/pkg-plist
new file mode 100644
index 000000000000..bf24fc9d51c2
--- /dev/null
+++ b/graphics/hs-hgl/pkg-plist
@@ -0,0 +1,39 @@
+bin/hugs-hgl
+share/doc/hgl/License
+share/doc/hgl/Readme
+share/doc/hgl/Version
+share/doc/hgl/Version-2.0.4
+share/doc/hgl/Graphics.dvi
+share/doc/hgl/Graphics.tex
+share/doc/hgl/appendix.tex
+share/doc/hgl/graphics.bib
+share/doc/hgl/oldappendix.tex
+share/hugs/demos/hgl/HelloWorld.hs
+share/hugs/demos/hgl/GTest.hs
+share/hugs/demos/hgl/Tests.hs
+share/hugs/lib/x11/GraphicsCore.hs
+share/hugs/lib/x11/GraphicsDC.hs
+share/hugs/lib/x11/GraphicsEvent.hs
+share/hugs/lib/x11/GraphicsEvents.hs
+share/hugs/lib/x11/GraphicsFlag.hs
+share/hugs/lib/x11/GraphicsFont.hs
+share/hugs/lib/x11/GraphicsKey.hs
+share/hugs/lib/x11/GraphicsPicture.hs
+share/hugs/lib/x11/GraphicsRegion.hs
+share/hugs/lib/x11/GraphicsTimer.hs
+share/hugs/lib/x11/GraphicsUtils.hs
+share/hugs/lib/x11/GraphicsWindow.hs
+share/hugs/lib/x11/GraphicsWindows.hs
+share/hugs/lib/x11/Graphics_Utilities.hs
+share/hugs/lib/x11/SOEGraphics.hs
+share/hugs/lib/x11/X.hs
+share/hugs/lib/x11/X.o
+share/hugs/lib/x11/X.so
+share/hugs/lib/x11/Xlib.hs
+share/hugs/lib/x11/Xlib.o
+share/hugs/lib/x11/Xlib.so
+share/hugs/lib/x11/Xlib_StdDIS.hs
+share/hugs/lib/x11/Xlib_StdDIS.so
+@dirrm share/doc/hgl
+@dirrm share/hugs/demos/hgl
+@dirrm share/hugs/lib/x11
diff --git a/graphics/hs-hgl/scripts/hugs-hgl b/graphics/hs-hgl/scripts/hugs-hgl
new file mode 100644
index 000000000000..37ca106a7798
--- /dev/null
+++ b/graphics/hs-hgl/scripts/hugs-hgl
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+hugs -P{Hugs}/lib/x11: $@