blob: 4d136a22f9e758716cc30d8c0ab5164de0fb941a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: gtk2hs
# Date created: 03 June 2002
# Whom: Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gtk2hs
PORTVERSION= 0.10.0
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= x11-toolkits haskell
MASTER_SITES= SF
PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A GTK2 Binding for Haskell
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
gstreamer-plugins>=0.10:${PORTSDIR}/multimedia/gstreamer-plugins
LIB_DEPENDS= gstreamer-0.10:${PORTSDIR}/multimedia/gstreamer \
gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_GNOME= gnomelibs gtk20 libglade2 gtksourceview2 gconf2 librsvg2 gnomevfs2
USE_GECKO= libxul
GNU_CONFIGURE= yes
USE_GMAKE= yes
SUB_FILES= pkg-install
PKGDEINSTALL= ${PKGINSTALL}
GHC_VERSION= 6.10.4
GTK2HS_VERSION= ${PORTVERSION}
GTK2HS_LIBDIR_REL= lib/${PORTNAME}
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
GTK2HS_VERSION=${GTK2HS_VERSION} \
GTK2HS_LIBDIR_REL=${GTK2HS_LIBDIR_REL}
SUB_LIST+= GHC_VERSION="${GHC_VERSION}" \
PORTVERSION=${PORTVERSION} \
PKGS="${PKGS}"
PKGS= glib cairo gstreamer gnomevfs gio \
gtk glade svgcairo gtkglext gconf \
gtksourceview2 mozembed soegtk
CONFIGURE_ENV+= GIO_CFLAGS="-I${LOCALBASE}/include/gio-unix-2.0"
.if defined(NOPORTDOCS)
PLIST_SUB+= NOPORTDOCS=""
.else
PLIST_SUB+= NOPORTDOCS="@comment "
.endif
.if !defined(NOPORTDOCS)
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
.if !empty(PORT_HADDOCK:M?0)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
.endif
CONFIGURE_ARGS+= --enable-docs
PORTDOCS= *
.endif
post-install:
.if defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.endif
@${INSTALL_DATA} ${WRKSRC}/docs/prologue.txt ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/COPYING.GPLv3 ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/COPYING.LGPLv3 ${DOCSDIR}
.include <bsd.port.mk>
|