2014-12-15 16:37:59 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2014/12/15 16:37:59 kili Exp $
|
2004-05-08 07:21:03 +00:00
|
|
|
|
2007-07-21 17:11:46 +00:00
|
|
|
COMMENT= interface generator for Haskell to C bindings
|
|
|
|
|
2014-12-15 16:37:59 +00:00
|
|
|
V= 0.16.6
|
2004-05-08 07:21:03 +00:00
|
|
|
DISTNAME= c2hs-${V}
|
|
|
|
CATEGORIES= devel
|
2007-11-18 16:30:36 +00:00
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
2004-05-08 07:21:03 +00:00
|
|
|
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
|
|
|
|
|
2011-04-03 12:57:28 +00:00
|
|
|
MODULES= lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD= cabal hackage nort
|
2004-05-08 07:21:03 +00:00
|
|
|
|
2005-03-25 05:53:21 +00:00
|
|
|
SUBST_VARS= V
|
2004-05-08 07:21:03 +00:00
|
|
|
|
2011-04-03 12:57:28 +00:00
|
|
|
# GPLv2+
|
2004-05-08 07:21:03 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2007-11-18 16:30:36 +00:00
|
|
|
|
2012-10-11 13:31:28 +00:00
|
|
|
WANTLIB= c m pthread util
|
2007-11-18 16:30:36 +00:00
|
|
|
|
2014-12-15 16:37:59 +00:00
|
|
|
BUILD_DEPENDS= devel/hs-language-c>=0.4.2,<0.5 \
|
2013-11-30 20:00:23 +00:00
|
|
|
textproc/docbook-xsl
|
2007-11-18 16:30:36 +00:00
|
|
|
|
2014-12-15 16:37:59 +00:00
|
|
|
|
2011-04-03 12:57:28 +00:00
|
|
|
USE_GMAKE= Yes
|
2007-11-18 16:30:36 +00:00
|
|
|
|
|
|
|
post-build:
|
2011-04-03 12:57:28 +00:00
|
|
|
@cd ${WRKSRC}/doc && ${MAKE_PROGRAM}
|
|
|
|
@perl -pi -e 's,/usr/share/doc/c2hs.*,${PREFIX}/share/doc/c2hs/,' \
|
|
|
|
${WRKSRC}/doc/man1/c2hs.1
|
2007-11-18 16:30:36 +00:00
|
|
|
|
|
|
|
post-install:
|
2011-04-03 12:57:28 +00:00
|
|
|
${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
|
2007-11-18 16:30:36 +00:00
|
|
|
|
2011-04-03 12:57:28 +00:00
|
|
|
# Note: tests are still broken (not maintained by upstream?)
|
2011-04-11 14:45:14 +00:00
|
|
|
# Note 2: and (at least) the tests don't work with ghc-7 (because ghc
|
2013-07-06 20:54:15 +00:00
|
|
|
# now defaults to Haskell-2010).
|
2013-03-11 10:50:00 +00:00
|
|
|
do-test:
|
2011-04-03 12:57:28 +00:00
|
|
|
@cd ${WRKDIST}/tests/system && ${MAKE_PROGRAM}
|
2004-05-08 07:21:03 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|