aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/hs-GLURaw
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-01-06 03:42:32 +0800
committerpgj <pgj@FreeBSD.org>2010-01-06 03:42:32 +0800
commit44b80cbfe4f2134e3d83c972f60eee6beb7bf536 (patch)
tree655a43c0fdc26b6be2701c02f2ce2160e173dc5d /x11-toolkits/hs-GLURaw
parent81680cac3e7c09363fa77264d8a276656de49be4 (diff)
downloadfreebsd-ports-gnome-44b80cbfe4f2134e3d83c972f60eee6beb7bf536.tar.gz
freebsd-ports-gnome-44b80cbfe4f2134e3d83c972f60eee6beb7bf536.tar.zst
freebsd-ports-gnome-44b80cbfe4f2134e3d83c972f60eee6beb7bf536.zip
GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library.
It is basically a 1:1 mapping of GLU's C API, intended as a basis for a nicer interface. WWW: http://www.haskell.org/HOpenGL/ PR: ports/142126 Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'x11-toolkits/hs-GLURaw')
-rw-r--r--x11-toolkits/hs-GLURaw/Makefile82
-rw-r--r--x11-toolkits/hs-GLURaw/distinfo3
-rw-r--r--x11-toolkits/hs-GLURaw/pkg-descr5
-rw-r--r--x11-toolkits/hs-GLURaw/pkg-plist23
4 files changed, 113 insertions, 0 deletions
diff --git a/x11-toolkits/hs-GLURaw/Makefile b/x11-toolkits/hs-GLURaw/Makefile
new file mode 100644
index 000000000000..a3b4bc759d12
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for: hs-GLURaw-ghc
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= GLURaw
+PORTVERSION= 1.1.0.0
+CATEGORIES= x11-toolkits haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+PKGNAMESUFFIX= -ghc
+
+MAINTAINER= jacula@gmail.com
+COMMENT= A raw Haskell binding for the OpenGL Utility Toolkit
+
+USE_GL= glu
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
+ hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
+ hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
+
+GHC_VERSION= 6.10.4
+HSGLURAW_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+HSGLURAW_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ HSGLURAW_VERSION=${HSGLURAW_VERSION} \
+ HSGLURAW_LIBDIR_REL=${HSGLURAW_LIBDIR_REL}
+
+.if defined(NOPORTDOCS)
+PLIST_SUB+= NOPORTDOCS=""
+.else
+PLIST_SUB+= NOPORTDOCS="@comment "
+.endif
+
+.if !defined(NOPORTDOCS)
+
+PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
+.if !empty(PORT_HADDOCK:M?0)
+BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
+.endif
+BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+
+HSCOLOUR_VERSION= 1.15
+HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
+
+PORTDOCS= *
+.endif
+
+.SILENT:
+
+do-configure:
+ cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
+ && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
+ --extra-include-dirs=${LOCALBASE}/include \
+ --extra-lib-dirs=${LOCALBASE}/lib
+
+do-build:
+ cd ${WRKSRC} && ${SETUP_CMD} build \
+ && ${SETUP_CMD} register --gen-script
+
+.if !defined(NOPORTDOCS)
+ cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
+ --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
+.endif
+
+do-install:
+ cd ${WRKSRC} && ${SETUP_CMD} install \
+ && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSGLURAW_LIBDIR_REL}/register.sh
+
+post-install:
+ ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-GLURaw/distinfo b/x11-toolkits/hs-GLURaw/distinfo
new file mode 100644
index 000000000000..22bf343b3227
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/distinfo
@@ -0,0 +1,3 @@
+MD5 (GLURaw-1.1.0.0.tar.gz) = 3f195f73f5c58edc3dd32c5048c5b64e
+SHA256 (GLURaw-1.1.0.0.tar.gz) = 4ce5bb03bb7d7822554d4bafb8b82d05ff7379f97d41c4ed9a070bd8f1d49a0e
+SIZE (GLURaw-1.1.0.0.tar.gz) = 7670
diff --git a/x11-toolkits/hs-GLURaw/pkg-descr b/x11-toolkits/hs-GLURaw/pkg-descr
new file mode 100644
index 000000000000..72227ae677a5
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/pkg-descr
@@ -0,0 +1,5 @@
+GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library.
+It is basically a 1:1 mapping of GLU's C API, intended as a basis for a
+nicer interface.
+
+WWW: http://www.haskell.org/HOpenGL/
diff --git a/x11-toolkits/hs-GLURaw/pkg-plist b/x11-toolkits/hs-GLURaw/pkg-plist
new file mode 100644
index 000000000000..fc77609be59b
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/pkg-plist
@@ -0,0 +1,23 @@
+@comment $FreeBSD$
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLURaw-%%HSGLURAW_VERSION%%.o
+%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLURaw-%%HSGLURAW_VERSION%%.a
+%%HSGLURAW_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw
+@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU
+@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%HSGLURAW_LIBDIR_REL%%
+@exec /bin/sh %D/%%HSGLURAW_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister GLURaw
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old