bd6172d6b4
Changes since 0.14.3: 2005-12-12 Manuel M T Chakravarty <chak@cse.unsw.edu.au> * c2hs/gen/GenBind.hs: When translating the target type of a pointer hook into a Haskell type, don't take the pointer hook alias map into account. * c2hs.cabal: version 0.14.5 * c2hs/gen/GenBind.hs: Suppress code generation if requested * c2hs/chs/CHS.hs: Added `nocode' to pointer hooks * c2hs/chs/CHSLexer.hs: Added `nocode' 2005-12-05 Jelmer Vernooij <jelmer@samba.org> * c2hs/c/CTrav.hs: only match in `checkForOneCUName' if there are no indirections 2005-12-05 Jelmer Vernooij <jelmer@samba.org> * c2hs/gen/GenBind.hs: support mapping struct and union names to haskell types * c2hs/c/CTrav.hs: added `checkForOneCUName' Fri Nov 25 10:54:56 EST 2005 Jelmer Vernooij <jelmer@samba.org> * add prettify functions for structs, enums and unions 2005-08-10 Manuel M T Chakravarty <chak@cse.unsw.edu.au> * c2hs/gen/GBMonad.hs: apply `upcaseFirstLetter' and `downcaseFirstLetter' if specified * c2hs/chs/CHS.hs: added `upcaseFirstLetter' and `downcaseFirstLetter' 2005-08-09 Manuel M T Chakravarty <chak@cse.unsw.edu.au> * c2hs/gen/CInfo.hs: exports `getPlatform'
36 lines
943 B
Makefile
36 lines
943 B
Makefile
# $NetBSD: Makefile,v 1.3 2006/09/01 10:56:25 emil_s Exp $
|
|
#
|
|
|
|
DISTNAME= c2hs-0.14.5
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
|
|
|
|
MAINTAINER= emil@math.su.se
|
|
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
|
|
COMMENT= C->Haskell, an Interface Generator for Haskell
|
|
|
|
BUILD_DEPENDS+= cabal>=1.0.1:../../wip/cabal
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
do-configure:
|
|
cd ${WRKSRC:Q} && \
|
|
runhaskell Setup.hs configure \
|
|
--ghc \
|
|
--prefix=${PREFIX:Q} \
|
|
--with-compiler=${PREFIX:Q}/bin/ghc \
|
|
--with-hc-pkg=${PREFIX:Q}/bin/ghc-pkg
|
|
|
|
do-build:
|
|
cd ${WRKSRC:Q} && runhaskell Setup.hs build
|
|
|
|
do-install:
|
|
cd ${WRKSRC:Q} && runhaskell Setup.hs install
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR:Q}
|
|
cd ${WRKSRC:Q}/c2hs/tests && ${INSTALL_DATA} * ${EGDIR:Q}
|
|
|
|
.include "../../lang/ghc/buildlink3.mk"
|
|
.include "../../wip/cabal/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|