2011-06-30 17:30:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2011/06/30 21:30:20 kili Exp $
|
2004-05-08 03:21:03 -04:00
|
|
|
# $FreeBSD: ports/devel/hs-c2hs/Makefile,v 1.20 2004/03/25 08:29:28 obraun Exp $
|
|
|
|
|
2007-07-21 13:11:46 -04:00
|
|
|
COMMENT= interface generator for Haskell to C bindings
|
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
V= 0.16.3
|
2004-05-08 03:21:03 -04:00
|
|
|
DISTNAME= c2hs-${V}
|
2011-06-30 17:30:20 -04:00
|
|
|
REVISION= 1
|
2004-05-08 03:21:03 -04:00
|
|
|
CATEGORIES= devel
|
2007-11-18 11:30:36 -05:00
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
2004-05-08 03:21:03 -04:00
|
|
|
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
|
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
MODULES= lang/ghc converters/libiconv
|
|
|
|
MODGHC_BUILD= cabal hackage nort
|
2004-05-08 03:21:03 -04:00
|
|
|
|
2005-03-25 00:53:21 -05:00
|
|
|
SUBST_VARS= V
|
2004-05-08 03:21:03 -04:00
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
# GPLv2+
|
2004-05-08 03:21:03 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-11-18 11:30:36 -05:00
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
WANTLIB= c gmp m pthread util
|
2007-11-18 11:30:36 -05:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
LIB_DEPENDS= devel/gmp
|
2007-11-18 11:30:36 -05:00
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
BUILD_DEPENDS= devel/alex \
|
|
|
|
devel/happy \
|
2011-04-05 10:34:45 -04:00
|
|
|
devel/hs-language-c \
|
2011-04-03 08:57:28 -04:00
|
|
|
textproc/libxml \
|
|
|
|
textproc/libxslt \
|
|
|
|
textproc/sgmlformat
|
2007-11-18 11:30:36 -05:00
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
USE_GMAKE= Yes
|
2007-11-18 11:30:36 -05:00
|
|
|
|
|
|
|
post-build:
|
2011-04-03 08:57:28 -04: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 11:30:36 -05:00
|
|
|
|
|
|
|
post-install:
|
2011-04-03 08:57:28 -04: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 11:30:36 -05:00
|
|
|
|
2011-04-03 08:57:28 -04:00
|
|
|
# Note: tests are still broken (not maintained by upstream?)
|
2011-04-11 10:45:14 -04:00
|
|
|
# Note 2: and (at least) the tests don't work with ghc-7 (because ghc
|
|
|
|
# now defaults to Haskell-1010).
|
2007-11-18 11:30:36 -05:00
|
|
|
do-regress:
|
2011-04-03 08:57:28 -04:00
|
|
|
@cd ${WRKDIST}/tests/system && ${MAKE_PROGRAM}
|
2004-05-08 03:21:03 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|