diff options
author | Volker Stolz <vs@FreeBSD.org> | 2008-01-05 06:53:51 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2008-01-05 06:53:51 +0000 |
commit | 7558346c8b721e7b74a5d928f05021568e6a685f (patch) | |
tree | c05da13bc0518b012a68f3299f5cc843fec77292 /x11-toolkits/hs-GLUT | |
parent | 83fd2ed4659c1e3e117669f991d5ce844fff7d74 (diff) | |
download | ports-7558346c8b721e7b74a5d928f05021568e6a685f.tar.gz ports-7558346c8b721e7b74a5d928f05021568e6a685f.zip |
Notes
Diffstat (limited to 'x11-toolkits/hs-GLUT')
-rw-r--r-- | x11-toolkits/hs-GLUT/Makefile | 50 | ||||
-rw-r--r-- | x11-toolkits/hs-GLUT/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/hs-GLUT/pkg-descr | 6 | ||||
-rw-r--r-- | x11-toolkits/hs-GLUT/pkg-plist | 34 |
4 files changed, 93 insertions, 0 deletions
diff --git a/x11-toolkits/hs-GLUT/Makefile b/x11-toolkits/hs-GLUT/Makefile new file mode 100644 index 000000000000..6e951258bfc8 --- /dev/null +++ b/x11-toolkits/hs-GLUT/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: hs-glut-ghc +# Date created: 2007-09-04 +# Whom: Volker Stolz <vs@FreeBSD.org> +# +# $FreeBSD$ + +PORTNAME= glut +PORTVERSION= 2.1.1.1 +CATEGORIES= x11-toolkits haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc +DISTNAME= GLUT-${PORTVERSION} + +MAINTAINER= haskell@FreeBSD.org +COMMENT= A Compiler for the functional language Haskell + +USE_GL= glut + +GHC_VERSION= 6.8.2 +PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \ + PORTVERSION=${PORTVERSION} \ + PORTNAME=${PORTNAME} \ + SUBDIR=lib/ghc-${GHC_VERSION}/cabal + +.include <bsd.port.pre.mk> + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + ${LOCALBASE}/lib/ghc-${GHC_VERSION}/cabal/opengl-register.sh:${PORTSDIR}/x11-toolkits/hs-opengl-ghc +LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4 +RUN_DEPENDS+= ${LOCALBASE}/lib/ghc-${GHC_VERSION}/cabal/opengl-register.sh:${PORTSDIR}/x11-toolkits/hs-opengl-ghc + +# 'owned' by lang/ghc: +CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \ + --libsubdir='' --datasubdir='' + +do-build: + cd ${WRKSRC} && ${CABALCMD} build \ + && ${CABALCMD} --gen-script register + +do-install: + cd ${WRKSRC} && ${CABALCMD} install \ + && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh + +.include <bsd.port.post.mk> diff --git a/x11-toolkits/hs-GLUT/distinfo b/x11-toolkits/hs-GLUT/distinfo new file mode 100644 index 000000000000..57d2e24f77b7 --- /dev/null +++ b/x11-toolkits/hs-GLUT/distinfo @@ -0,0 +1,3 @@ +MD5 (GLUT-2.1.1.1.tar.gz) = 0af5df3ede4db67a1efa03bc55e08c01 +SHA256 (GLUT-2.1.1.1.tar.gz) = 09631322c78c1d5d2733fb5324344db68e99015162445c3364b844308c1e027e +SIZE (GLUT-2.1.1.1.tar.gz) = 121577 diff --git a/x11-toolkits/hs-GLUT/pkg-descr b/x11-toolkits/hs-GLUT/pkg-descr new file mode 100644 index 000000000000..3038ec260e5b --- /dev/null +++ b/x11-toolkits/hs-GLUT/pkg-descr @@ -0,0 +1,6 @@ +The GLUT package contains a Haskell binding for the OpenGL Utility Toolkit, a +window system independent toolkit for writing OpenGL programs. For more +information about the C library on which this binding is based, please see: +<http://www.opengl.org/resources/libraries/glut/>. + +WWW: http://www.haskell.org/HOpenGL/ diff --git a/x11-toolkits/hs-GLUT/pkg-plist b/x11-toolkits/hs-GLUT/pkg-plist new file mode 100644 index 000000000000..8385c83a5e7e --- /dev/null +++ b/x11-toolkits/hs-GLUT/pkg-plist @@ -0,0 +1,34 @@ +%%SUBDIR%%/Graphics/UI/GLUT/Callbacks/Global.hi +%%SUBDIR%%/Graphics/UI/GLUT/Callbacks/Window.hi +%%SUBDIR%%/Graphics/UI/GLUT/Callbacks/Registration.hi +%%SUBDIR%%/Graphics/UI/GLUT/Begin.hi +%%SUBDIR%%/Graphics/UI/GLUT/Callbacks.hi +%%SUBDIR%%/Graphics/UI/GLUT/Colormap.hi +%%SUBDIR%%/Graphics/UI/GLUT/Debugging.hi +%%SUBDIR%%/Graphics/UI/GLUT/DeviceControl.hi +%%SUBDIR%%/Graphics/UI/GLUT/Fonts.hi +%%SUBDIR%%/Graphics/UI/GLUT/GameMode.hi +%%SUBDIR%%/Graphics/UI/GLUT/Initialization.hi +%%SUBDIR%%/Graphics/UI/GLUT/Menu.hi +%%SUBDIR%%/Graphics/UI/GLUT/Objects.hi +%%SUBDIR%%/Graphics/UI/GLUT/Overlay.hi +%%SUBDIR%%/Graphics/UI/GLUT/State.hi +%%SUBDIR%%/Graphics/UI/GLUT/Window.hi +%%SUBDIR%%/Graphics/UI/GLUT/Constants.hi +%%SUBDIR%%/Graphics/UI/GLUT/Extensions.hi +%%SUBDIR%%/Graphics/UI/GLUT/QueryUtils.hi +%%SUBDIR%%/Graphics/UI/GLUT/Types.hi +%%SUBDIR%%/Graphics/UI/GLUT.hi +%%SUBDIR%%/libHSGLUT-%%PORTVERSION%%.a +%%SUBDIR%%/HSGLUT-%%PORTVERSION%%.o +%%SUBDIR%%/include/HsGLUT.h +%%SUBDIR%%/%%PORTNAME%%-register.sh +@dirrm %%SUBDIR%%/Graphics/UI/GLUT/Callbacks +@dirrm %%SUBDIR%%/Graphics/UI/GLUT +@dirrmtry %%SUBDIR%%/Graphics/UI +@dirrmtry %%SUBDIR%%/Graphics +@dirrmtry %%SUBDIR%%/include +@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister GLUT +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |