openbsd-ports/devel/idoc/Makefile
2004-08-10 08:23:36 +00:00

38 lines
912 B
Makefile

# $OpenBSD: Makefile,v 1.3 2004/08/10 08:23:37 xsa Exp $
COMMENT= "minimalist documentation tool for Haskell"
V= 0.2.6
DISTNAME= idoc-${V}
CATEGORIES= devel
MAINTAINER= Don Stewart <dons@openbsd.org>
HOMEPAGE= http://www.cse.unsw.edu.au/~chak/haskell/idoc/
MASTER_SITES= ${HOMEPAGE}
# pure Haskell 98
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64"
MODULES= lang/ghc
.else
BUILD_DEPENDS+= bin/nhc98::lang/nhc98
MAKE_FLAGS= HC=nhc98
.endif
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)
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
.include <bsd.port.mk>