1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11-toolkits/hs-port/Makefile
2004-11-07 22:37:47 +00:00

54 lines
1.4 KiB
Makefile

# New ports collection makefile for: port
# Date created: 2004-03-09
# Whom: obraun@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= port
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= x11-toolkits haskell
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= htoolkit
PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A low-level GUI library for Haskell
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
USE_GNOME= glib20 gtk20 libgnomeui
USE_BZIP2= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ENV+= DOCSDIR="${DOCSDIR}" INSTALL_DATA="${INSTALL_DATA}"
ALL_TARGET= release
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock \
${LOCALBASE}/share/doc/ghc6/index.html:${PORTSDIR}/lang/ghc6-doc
CONFIGURE_ARGS+= -haddock-libs ${LOCALBASE}/share/doc/ghc6/libraries/base \
-haddock-html ${LOCALBASE}/share/doc/ghc6/libraries/
ALL_TARGET= release doc
INSTALL_TARGET= install install-doc
.endif
post-configure:
@${REINPLACE_CMD} 's|\"/usr/local/lib/glib-2.0/include\",|| ;\
s|\"/usr/X11R6/lib/gnome-vfs-2.0/include\",|| ;\
s|\"/usr/X11R6/lib/gtk-2.0/include\",||' \
${WRKSRC}/config/port.pkg
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/config/port.pkg ${DATADIR}
.include <bsd.port.mk>