openbsd-ports/devel/idoc/Makefile

43 lines
1005 B
Makefile
Raw Normal View History

2010-07-27 14:18:29 -04:00
# $OpenBSD: Makefile,v 1.14 2010/07/27 18:18:29 kili Exp $
2010-04-22 17:57:26 -04:00
COMMENT = minimalist documentation tool for Haskell
2010-04-22 17:57:26 -04:00
DISTNAME = idoc-0.2.6
2010-07-27 14:18:29 -04:00
REVISION = 6
2010-04-22 17:57:26 -04:00
CATEGORIES = devel
MAINTAINER = Matthias Kilian <kili@openbsd.org>
HOMEPAGE = http://www.cse.unsw.edu.au/~chak/haskell/idoc/
MASTER_SITES = ${HOMEPAGE}
# GPL
2010-04-22 17:57:26 -04:00
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
2010-07-27 14:18:29 -04:00
WANTLIB = c m
# pure Haskell 98
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
2010-07-27 14:18:29 -04:00
WANTLIB += gmp pthread util
2010-04-22 17:57:26 -04:00
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = nort
LIB_DEPENDS = ::devel/gmp
.else
2010-04-22 17:57:26 -04:00
BUILD_DEPENDS += ::lang/nhc98
MAKE_FLAGS = HC=nhc98
.endif
2010-04-22 17:57:26 -04:00
ALL_TARGET =
USE_GMAKE = Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/idoc ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/idoc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/idoc/
do-regress:
cd ${WRKSRC}/test && ../idoc Foo.hs && /usr/bin/lynx --dump Foo.html
.include <bsd.port.mk>