2002-08-23 21:24:14 +02:00
|
|
|
# New ports collection makefile for: c2hs
|
|
|
|
# Date created: 23 August 2002
|
|
|
|
# Whom: Oliver Braun <obraun@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= c2hs
|
2002-09-17 22:11:48 +02:00
|
|
|
PORTVERSION= 0.10.17
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= devel haskell
|
2002-08-23 21:24:14 +02:00
|
|
|
MASTER_SITES= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
|
2002-09-04 20:39:09 +02:00
|
|
|
PKGNAMEPREFIX= hs-
|
2002-08-23 21:24:14 +02:00
|
|
|
|
|
|
|
MAINTAINER= obraun@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2002-09-07 22:07:40 +02:00
|
|
|
PLIST_SUB= C2HS_VERSION=${PORTVERSION}
|
|
|
|
|
2002-08-23 21:24:14 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-add-package
|
|
|
|
|
2002-09-07 22:07:40 +02:00
|
|
|
.if defined(WITH_PROFILE)
|
|
|
|
CONFIGURE_ARGS+= --enable-prof
|
|
|
|
.endif
|
|
|
|
|
2002-08-26 13:50:13 +02:00
|
|
|
MAN1= c2hs-config.1 c2hs.1
|
|
|
|
|
2002-09-07 22:07:40 +02:00
|
|
|
.if !defined(WITH_PROFILE)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_CMD} "To enable profiling support define WITH_PROFILE."
|
|
|
|
@${ECHO_CMD} "This requires ghc with profiling libraries."
|
|
|
|
.endif
|
|
|
|
|
2002-08-26 13:50:13 +02:00
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/doc/c2hs && ${GMAKE} man1/c2hs-config.1 man1/c2hs.1)
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@(cd ${WRKSRC}/doc/c2hs/man1 && \
|
|
|
|
${INSTALL_MAN} c2hs-config.1 c2hs.1 ${MANPREFIX}/man/man1)
|
|
|
|
|
2002-08-23 21:24:14 +02:00
|
|
|
.include <bsd.port.mk>
|