openbsd-ports/devel/c2hs/Makefile
dcoppa b2ed9a9bac Fix fallout of haskell ports, now that devel/gmp is no more a
dependency for ghc - devel category

ok kili@
2012-10-11 13:31:28 +00:00

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2012/10/11 13:31:28 dcoppa Exp $
COMMENT= interface generator for Haskell to C bindings
V= 0.16.3
DISTNAME= c2hs-${V}
REVISION= 3
CATEGORIES= devel
MAINTAINER= Matthias Kilian <kili@openbsd.org>
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
MODULES= lang/ghc converters/libiconv
MODGHC_BUILD= cabal hackage nort
SUBST_VARS= V
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pthread util
BUILD_DEPENDS= devel/alex \
devel/happy \
devel/hs-language-c \
textproc/docbook-xsl \
textproc/sgmlformat
USE_GMAKE= Yes
post-build:
@cd ${WRKSRC}/doc && ${MAKE_PROGRAM}
@perl -pi -e 's,/usr/share/doc/c2hs.*,${PREFIX}/share/doc/c2hs/,' \
${WRKSRC}/doc/man1/c2hs.1
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man1/c2hs.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/c2hs
${INSTALL_DATA} ${WRKSRC}/doc/users_guide/*.html ${PREFIX}/share/doc/c2hs
# Note: tests are still broken (not maintained by upstream?)
# Note 2: and (at least) the tests don't work with ghc-7 (because ghc
# now defaults to Haskell-1010).
do-regress:
@cd ${WRKDIST}/tests/system && ${MAKE_PROGRAM}
.include <bsd.port.mk>