1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/hs-HGL/Makefile
Oliver Braun a8dbdcde90 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>
2008-03-01 17:38:36 +00:00

66 lines
1.6 KiB
Makefile

# 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>