diff options
author | obraun <obraun@FreeBSD.org> | 2008-03-02 01:38:36 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2008-03-02 01:38:36 +0800 |
commit | 4b463b113e539caf740fc47a2778bef3af3dfdb3 (patch) | |
tree | 9c2f846dd346eb1941308dc1d7f767da8ca6635c /graphics/hs-HGL-ghc | |
parent | c65a8fa31b7bdcc16e198403ae5ee04a2825b469 (diff) | |
download | freebsd-ports-gnome-4b463b113e539caf740fc47a2778bef3af3dfdb3.tar.gz freebsd-ports-gnome-4b463b113e539caf740fc47a2778bef3af3dfdb3.tar.zst freebsd-ports-gnome-4b463b113e539caf740fc47a2778bef3af3dfdb3.zip |
A simple graphics library, designed to give the programmer access
to most interesting parts of the Win32 Graphics Device Interface
and X11 library without exposing the programmer to the pain and
anguish usually associated with using these interfaces.
The library also includes a module Graphics.SOE providing the
interface used in "The Haskell School of Expression", by Paul
Hudak, cf <http://www.haskell.org/soe/>.
author: Alastair Reid
maintainer: <libraries@haskell.org>
license: BSD3
WWW: http://www.haskell.org/graphics/index.html
package-url: http://hackage.haskell.org/packages/archive/HGL
exposed-modules:
Graphics.HGL.Core, Graphics.HGL.Draw,
Graphics.HGL.Units, Graphics.HGL.Key,
Graphics.HGL.Run, Graphics.HGL.Draw.Brush,
Graphics.HGL.Draw.Font, Graphics.HGL.Draw.Monad,
Graphics.HGL.Draw.Pen, Graphics.HGL.Draw.Picture,
Graphics.HGL.Draw.Region, Graphics.HGL.Draw.Text,
Graphics.HGL.Utils, Graphics.HGL.Window,
Graphics.HGL, Graphics.SOE
PR: ports/121081
Submitted by: Giuseppe Pilichi aka Jacula Modyun <jacula at gmail.com>
Diffstat (limited to 'graphics/hs-HGL-ghc')
-rw-r--r-- | graphics/hs-HGL-ghc/Makefile | 65 | ||||
-rw-r--r-- | graphics/hs-HGL-ghc/distinfo | 3 | ||||
-rw-r--r-- | graphics/hs-HGL-ghc/pkg-descr | 23 | ||||
-rw-r--r-- | graphics/hs-HGL-ghc/pkg-plist | 43 |
4 files changed, 134 insertions, 0 deletions
diff --git a/graphics/hs-HGL-ghc/Makefile b/graphics/hs-HGL-ghc/Makefile new file mode 100644 index 000000000000..63ef5d51a315 --- /dev/null +++ b/graphics/hs-HGL-ghc/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: hs-HGL-ghc +# Date created: February 25 2008 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= HGL +PORTVERSION= 3.2.0.0 +CATEGORIES= graphics haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= jacula@gmail.com +COMMENT= A simple graphics library based on X11 or Win32 + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc + +GHC_VERSION= 6.8.2 + +CABAL_CMD= ${LOCALBASE}/bin/runghc Setup.hs + +HGL_LIBDIR_REL= lib/${DISTNAME} +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + HGL_LIBDIR_REL=${HGL_LIBDIR_REL} + +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock \ + HsColour:${PORTSDIR}/print/hs-hscolour + +HSCOLOUR_VERSION= 1.9 + +PORTDOCS= * +.endif + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${CABAL_CMD} build \ + && ${CABAL_CMD} register --gen-script + +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \ + --hscolour-css=${LOCALBASE}/share/hscolour-${HSCOLOUR_VERSION}/hscolour.css +.endif + +do-install: + cd ${WRKSRC} && ${CABAL_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HGL_LIBDIR_REL}/register.sh + @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/graphics/hs-HGL-ghc/distinfo b/graphics/hs-HGL-ghc/distinfo new file mode 100644 index 000000000000..e3ff6239b7e9 --- /dev/null +++ b/graphics/hs-HGL-ghc/distinfo @@ -0,0 +1,3 @@ +MD5 (HGL-3.2.0.0.tar.gz) = 9d3858e5d76e10cdbaf9f5dabf3287e7 +SHA256 (HGL-3.2.0.0.tar.gz) = fa7cb1981f6e5a89b35e0fc2593c0945175a0d97fc3bc356cc8724fa1c881e86 +SIZE (HGL-3.2.0.0.tar.gz) = 38824 diff --git a/graphics/hs-HGL-ghc/pkg-descr b/graphics/hs-HGL-ghc/pkg-descr new file mode 100644 index 000000000000..0364f499e3db --- /dev/null +++ b/graphics/hs-HGL-ghc/pkg-descr @@ -0,0 +1,23 @@ +A simple graphics library, designed to give the programmer access +to most interesting parts of the Win32 Graphics Device Interface +and X11 library without exposing the programmer to the pain and +anguish usually associated with using these interfaces. +The library also includes a module Graphics.SOE providing the +interface used in "The Haskell School of Expression", by Paul +Hudak, cf <http://www.haskell.org/soe/>. + +author: Alastair Reid +maintainer: <libraries@haskell.org> +license: BSD3 +WWW: http://www.haskell.org/graphics/index.html +package-url: http://hackage.haskell.org/packages/archive/HGL + +exposed-modules: + Graphics.HGL.Core, Graphics.HGL.Draw, + Graphics.HGL.Units, Graphics.HGL.Key, + Graphics.HGL.Run, Graphics.HGL.Draw.Brush, + Graphics.HGL.Draw.Font, Graphics.HGL.Draw.Monad, + Graphics.HGL.Draw.Pen, Graphics.HGL.Draw.Picture, + Graphics.HGL.Draw.Region, Graphics.HGL.Draw.Text, + Graphics.HGL.Utils, Graphics.HGL.Window, + Graphics.HGL, Graphics.SOE diff --git a/graphics/hs-HGL-ghc/pkg-plist b/graphics/hs-HGL-ghc/pkg-plist new file mode 100644 index 000000000000..c583112ee951 --- /dev/null +++ b/graphics/hs-HGL-ghc/pkg-plist @@ -0,0 +1,43 @@ +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Core.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Brush.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Font.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Monad.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Pen.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Picture.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Region.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Text.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Draw.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Event.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Events.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Flag.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Types.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Utilities.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Key.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Run.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Units.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Utils.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Window.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/DC.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Display.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Timer.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Types.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Window.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/SOE.hi +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHGL-3.2.0.0.o +%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHGL-3.2.0.0.a +%%HGL_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11 +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics +@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%HGL_LIBDIR_REL%% +@exec /bin/sh %D/%%HGL_LIBDIR_REL%%/register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec if [ -x %D/bin/ghc-pkg ]; then %D/bin/ghc-pkg unregister HGL || /usr/bin/true; fi +@unexec if [ -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old ]; then rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old || /usr/bin/true; fi |