d1011d2804
C->Haskell is an interface generator that simplifies the development of Haskell bindings to C libraries. The tool processes existing C header files that determine data layout and function signatures on the C side, in conjunction with Haskell modules that specify Haskell-side type signatures and marshaling details. Hooks embedded in the Haskell code signal access to C structures and functions; they are expanded by the interfacing tool in conjunction with information in the corresponding C header file. ok pvalchev@
36 lines
866 B
Makefile
36 lines
866 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/05/08 07:21:03 dons 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"
|
|
|
|
V= 0.12.0
|
|
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= ghc
|
|
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|