1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Add x11/hs-x11-extras-ghc, additional X11 support for programs written using GHC.

Submitted by: Jonas Joachim
This commit is contained in:
Volker Stolz 2007-10-26 02:54:35 +00:00
parent 38294beb25
commit c4a59c6c56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202049
5 changed files with 78 additions and 0 deletions

View File

@ -127,6 +127,7 @@
SUBDIR += gtkterm2
SUBDIR += gtstarter
SUBDIR += gxset
SUBDIR += hs-x11-extras-ghc
SUBDIR += hs-x11-ghc
SUBDIR += iceauth
SUBDIR += ico

View File

@ -0,0 +1,53 @@
# New ports collection makefile for: hs-x11-ghc
# Date created: 2007-09-03
# Whom: Volker Stolz <vs@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= x11-extras
PORTVERSION= 0.4
CATEGORIES= x11 haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-extras/${PORTVERSION}/
PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
DISTNAME= X11-extras-${PORTVERSION}
MAINTAINER= jaj@hcl-club.lu
COMMENT= X11 bindings for Haskell programs
USE_XLIB= yes
# include the version verbatim. This will require a revision bump
# on updates, but the correct quoting of `ghc --numeric-version` in the various
# places is a real nightmare.
GHC_VERSION= 6.6.1
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 \
hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
RUN_DEPENDS+= ${BUILD_DEPENDS}
# 'owned' by lang/ghc:
CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
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>

View File

@ -0,0 +1,3 @@
MD5 (X11-extras-0.4.tar.gz) = e68ce25e94477b054744001bbef41a34
SHA256 (X11-extras-0.4.tar.gz) = ea08c3f71e2f14374c56bbb9050df3eec81ff6b44a6d8e396892b5f612c8f2b2
SIZE (X11-extras-0.4.tar.gz) = 48853

View File

@ -0,0 +1,7 @@
Missing bindings to the X11 graphics library.
The binding is a direct translation of the C binding; for documentation
of these calls, refer to The Xlib Programming Manual, available
online at http://tronche.com/gui/x/xlib/.
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-extras-0.3

View File

@ -0,0 +1,14 @@
%%SUBDIR%%/Graphics/X11/Xinerama.hi
%%SUBDIR%%/Graphics/X11/Xlib/Extras.hi
%%SUBDIR%%/HSX11-extras-%%PORTVERSION%%.o
%%SUBDIR%%/include/XlibExtras.h
%%SUBDIR%%/libHSX11-extras-%%PORTVERSION%%.a
%%SUBDIR%%/%%PORTNAME%%-register.sh
@dirrmtry %%SUBDIR%%/include
@dirrmtry %%SUBDIR%%/Graphics/X11/Xlib
@dirrmtry %%SUBDIR%%/Graphics/X11
@dirrmtry %%SUBDIR%%/Graphics
@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 X11-extras
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old