View | Details | Raw Unified | Return to bug 137079
Collapse All | Expand All

(-)hs-x11-ghc/Makefile (-34 / +47 lines)
Lines 2-12 Link Here
2
# Date created:				2007-09-03
2
# Date created:				2007-09-03
3
# Whom:					Volker Stolz <vs@FreeBSD.org>
3
# Whom:					Volker Stolz <vs@FreeBSD.org>
4
#
4
#
5
# $FreeBSD: ports/x11/hs-x11-ghc/Makefile,v 1.10 2009/07/10 07:11:12 pgj Exp $
5
# $FreeBSD: ports/x11/hs-x11-ghc/Makefile,v 1.9 2009/05/13 09:46:00 ale Exp $
6
6
7
PORTNAME=	x11
7
PORTNAME=	x11
8
PORTVERSION=	1.4.5
8
PORTVERSION=	1.4.5
9
PORTREVISION=	1
9
PORTREVISION=	2
10
CATEGORIES=	x11 haskell
10
CATEGORIES=	x11 haskell
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
12
PKGNAMEPREFIX=	hs-
12
PKGNAMEPREFIX=	hs-
Lines 16-75 Link Here
16
MAINTAINER=	haskell@FreeBSD.org
16
MAINTAINER=	haskell@FreeBSD.org
17
COMMENT=	X11 bindings for Haskell programs
17
COMMENT=	X11 bindings for Haskell programs
18
18
19
# include the version verbatim. This will require a revision bump
20
# on updates, but the correct quoting of `ghc --numeric-version` in the various
21
# places is a real nightmare.
22
GHC_VERSION=	6.8.3
23
PLIST_SUB+=	GHC_VERSION=${GHC_VERSION} \
24
		PORTVERSION=${PORTVERSION} \
25
		PORTNAME=${PORTNAME} \
26
		SUBDIR=lib/ghc-${GHC_VERSION}/cabal
27
28
OPTIONS=	XINERAMA "Build with Xinerama support" off
29
30
.include <bsd.port.pre.mk>
31
32
BUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
19
BUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
33
LIB_DEPENDS+=	gmp.8:${PORTSDIR}/math/libgmp4
20
LIB_DEPENDS+=	gmp.8:${PORTSDIR}/math/libgmp4
34
RUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
21
RUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
35
22
36
USE_XORG=	x11 xext sm
23
USE_XORG=	x11 xext sm
37
24
25
GHC_VERSION=	6.10.4
26
HSX11_VERSION=	${PORTVERSION}
27
28
GHC_CMD=	${LOCALBASE}/bin/ghc
29
SETUP_CMD=	./setup
30
31
DOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
32
HSX11_LIBDIR_REL=	lib/${DISTNAME}
33
34
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
35
		HSX11_VERSION=${HSX11_VERSION} \
36
		HSX11_LIBDIR_REL=${HSX11_LIBDIR_REL}
37
38
OPTIONS=	XINERAMA "Build with Xinerama support" off
39
40
.include <bsd.port.pre.mk>
41
38
.if defined(WITH_XINERAMA)
42
.if defined(WITH_XINERAMA)
39
USE_XORG+=	xinerama
43
USE_XORG+=	xinerama
40
.endif
44
.endif
41
45
42
# 'owned' by lang/ghc:
46
.if defined(NOPORTDOCS)
43
CABALDIR=	${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
47
PLIST_SUB+=		NOPORTDOCS=""
44
CABALCMD=	${LOCALBASE}/bin/runghc Setup.hs
48
.else
45
DOCSDIR=	${PREFIX}/share/doc/X11-${PORTVERSION}
49
PLIST_SUB+=		NOPORTDOCS="@comment "
46
PORTDOCS=	LICENSE html
50
.endif
47
SUBDIR=		${PORTNAME}${PKGNAMESUFFIX}
48
51
49
.if !defined(NOPORTDOCS)
52
.if !defined(NOPORTDOCS)
53
54
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
55
.if !empty(PORT_HADDOCK:M?0)
50
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
56
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
51
PLIST_SUB+=	RMLIC="@comment "
52
.else
53
PLIST_SUB+=	RMLIC=""
54
.endif
57
.endif
58
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
55
59
56
post-patch:
60
HSCOLOUR_VERSION=	1.13
57
	@${REINPLACE_CMD} 's|/usr/local/include|${LOCALBASE}/include|g' \
61
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
58
		${WRKSRC}/configure
62
63
PORTDOCS=	*
64
.endif
65
66
.SILENT:
59
67
60
do-configure:
68
do-configure:
61
	cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \
69
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
62
	 --libsubdir='' --datasubdir=''
70
		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
63
71
64
do-build:
72
do-build:
65
	cd ${WRKSRC} && ${CABALCMD} build \
73
	cd ${WRKSRC} && ${SETUP_CMD} build \
66
	 && ${CABALCMD} --gen-script register
74
		     && ${SETUP_CMD} register --gen-script
75
67
.if !defined(NOPORTDOCS)
76
.if !defined(NOPORTDOCS)
68
	cd ${WRKSRC} && ${CABALCMD} haddock
77
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
78
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
69
.endif
79
.endif
70
80
71
do-install:
81
do-install:
72
	cd ${WRKSRC} && ${CABALCMD} install \
82
	cd ${WRKSRC} && ${SETUP_CMD} install \
73
	 && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh
83
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSX11_LIBDIR_REL}/register.sh
84
85
post-install:
86
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
74
87
75
.include <bsd.port.post.mk>
88
.include <bsd.port.post.mk>
(-)hs-x11-ghc/pkg-descr (-1 / +18 lines)
Lines 4-7 Link Here
4
for documentation of these calls, refer to /The Xlib Programming Manual/,
4
for documentation of these calls, refer to /The Xlib Programming Manual/,
5
available online at <http://tronche.com/gui/x/xlib/>.
5
available online at <http://tronche.com/gui/x/xlib/>.
6
6
7
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11
7
Copyright:	Alastair Reid, 1999-2003, libraries@haskell.org 2003-2007
8
Maintainer:	Don Stewart <dons@galois.com>
9
license:	BSD3
10
URL:		http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11
11
WWW:		http://darcs.haskell.org/X11
12
13
exposed-modules: Graphics.X11 Graphics.X11.Types Graphics.X11.Xlib
14
                 Graphics.X11.Xlib.Atom Graphics.X11.Xlib.Color
15
                 Graphics.X11.Xlib.Context Graphics.X11.Xlib.Display
16
                 Graphics.X11.Xlib.Event Graphics.X11.Xlib.Font
17
                 Graphics.X11.Xlib.Misc Graphics.X11.Xlib.Region
18
                 Graphics.X11.Xlib.Screen Graphics.X11.Xlib.Types
19
                 Graphics.X11.Xlib.Window Graphics.X11.Xlib.Image
20
                 Graphics.X11.Xlib.Extras Graphics.X11.Xinerama
21
                 Graphics.X11.ExtraTypes Graphics.X11.ExtraTypes.AP
22
                 Graphics.X11.ExtraTypes.DEC Graphics.X11.ExtraTypes.HP
23
                 Graphics.X11.ExtraTypes.Sun Graphics.X11.ExtraTypes.XF86
24
                 Graphics.X11.ExtraTypes.XorgDefault
(-)hs-x11-ghc/pkg-plist (-39 / +41 lines)
Lines 1-41 Link Here
1
%%SUBDIR%%/Graphics/X11.hi
1
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11.hi
2
%%SUBDIR%%/Graphics/X11/ExtraTypes.hi
2
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes.hi
3
%%SUBDIR%%/Graphics/X11/ExtraTypes/AP.hi
3
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/AP.hi
4
%%SUBDIR%%/Graphics/X11/ExtraTypes/DEC.hi
4
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/DEC.hi
5
%%SUBDIR%%/Graphics/X11/ExtraTypes/HP.hi
5
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/HP.hi
6
%%SUBDIR%%/Graphics/X11/ExtraTypes/Sun.hi
6
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/Sun.hi
7
%%SUBDIR%%/Graphics/X11/ExtraTypes/XF86.hi
7
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XF86.hi
8
%%SUBDIR%%/Graphics/X11/ExtraTypes/XorgDefault.hi
8
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XorgDefault.hi
9
%%SUBDIR%%/Graphics/X11/Types.hi
9
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Types.hi
10
%%SUBDIR%%/Graphics/X11/Xinerama.hi
10
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xinerama.hi
11
%%SUBDIR%%/Graphics/X11/Xlib.hi
11
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib.hi
12
%%SUBDIR%%/Graphics/X11/Xlib/Atom.hi
12
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Atom.hi
13
%%SUBDIR%%/Graphics/X11/Xlib/Color.hi
13
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Color.hi
14
%%SUBDIR%%/Graphics/X11/Xlib/Context.hi
14
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Context.hi
15
%%SUBDIR%%/Graphics/X11/Xlib/Display.hi
15
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Display.hi
16
%%SUBDIR%%/Graphics/X11/Xlib/Event.hi
16
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Event.hi
17
%%SUBDIR%%/Graphics/X11/Xlib/Extras.hi
17
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Extras.hi
18
%%SUBDIR%%/Graphics/X11/Xlib/Font.hi
18
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Font.hi
19
%%SUBDIR%%/Graphics/X11/Xlib/Image.hi
19
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Image.hi
20
%%SUBDIR%%/Graphics/X11/Xlib/Misc.hi
20
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Misc.hi
21
%%SUBDIR%%/Graphics/X11/Xlib/Region.hi
21
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Region.hi
22
%%SUBDIR%%/Graphics/X11/Xlib/Screen.hi
22
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Screen.hi
23
%%SUBDIR%%/Graphics/X11/Xlib/Types.hi
23
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Types.hi
24
%%SUBDIR%%/Graphics/X11/Xlib/Window.hi
24
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Window.hi
25
%%SUBDIR%%/HSX11-%%PORTVERSION%%.o
25
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-%%HSX11_VERSION%%.o
26
%%SUBDIR%%/include/HsAllKeysyms.h
26
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsAllKeysyms.h
27
%%SUBDIR%%/include/HsXlib.h
27
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsXlib.h
28
%%SUBDIR%%/include/XlibExtras.h
28
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/XlibExtras.h
29
%%SUBDIR%%/libHSX11-%%PORTVERSION%%.a
29
%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-%%HSX11_VERSION%%.a
30
%%SUBDIR%%/%%PORTNAME%%-register.sh
30
%%HSX11_LIBDIR_REL%%/register.sh
31
%%RMLIC%%%%DOCSDIR%%/LICENSE
31
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
32
%%RMLIC%%@dirrm %%DOCSDIR%%
32
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
33
@dirrmtry %%SUBDIR%%/include
33
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
34
@dirrm %%SUBDIR%%/Graphics/X11/ExtraTypes
34
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib
35
@dirrm %%SUBDIR%%/Graphics/X11/Xlib
35
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes
36
@dirrm %%SUBDIR%%/Graphics/X11
36
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
37
@dirrmtry %%SUBDIR%%/Graphics
37
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
38
@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
38
@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
39
@dirrm %%HSX11_LIBDIR_REL%%
40
@exec /bin/sh %D/%%HSX11_LIBDIR_REL%%/register.sh
39
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
41
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
40
@unexec ghc-pkg unregister X11
42
@unexec %D/bin/ghc-pkg unregister X11
41
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
43
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137079