openbsd-ports/devel/c2hs/Makefile
2007-07-21 17:11:46 +00:00

41 lines
974 B
Makefile

# $OpenBSD: Makefile,v 1.7 2007/07/21 17:11:46 kili Exp $
# $FreeBSD: ports/devel/hs-c2hs/Makefile,v 1.20 2004/03/25 08:29:28 obraun Exp $
COMMENT= interface generator for Haskell to C bindings
# Don't panic, this will be fixed soon.
BROKEN= "Doesn't build with ghc-6.6.1"
V= 0.13.6
DISTNAME= c2hs-${V}
CATEGORIES= devel
MAINTAINER= Don Stewart <dons@openbsd.org>
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
MASTER_SITES= ${HOMEPAGE}
MODULES= lang/ghc
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --prefix=${PREFIX}
SUBST_VARS= V
post-build:
@cd ${WRKSRC}/doc/c2hs && ${MAKE_PROGRAM} man1/c2hs-config.1 man1/c2hs.1
post-install:
@cd ${WRKSRC}/doc/c2hs/man1 && \
${INSTALL_MAN} c2hs-config.1 c2hs.1 ${PREFIX}/man/man1
do-regress:
@cd ${WRKDIST}/c2hs/tests && ${MAKE_PROGRAM}
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c gmp m
.include <bsd.port.mk>