openbsd-ports/devel/cpphs/Makefile

46 lines
1014 B
Makefile
Raw Normal View History

2007-07-28 14:52:58 -04:00
# $OpenBSD: Makefile,v 1.9 2007/07/28 18:52:58 kili Exp $
2005-02-18 23:49:00 -05:00
COMMENT= liberalised reimplementation of cpp in Haskell
2005-02-18 23:49:00 -05:00
2007-07-28 14:52:58 -04:00
V= 1.5
2005-02-18 23:49:00 -05:00
DISTNAME= cpphs-${V}
2007-07-28 14:52:58 -04:00
PKGNAME= ${DISTNAME}
2005-02-18 23:49:00 -05:00
CATEGORIES= devel
MAINTAINER= Matthias Kilian <kili@openbsd.org>
2005-10-23 23:14:57 -04:00
HOMEPAGE= http://haskell.org/cpphs/
MASTER_SITES= http://www.cs.york.ac.uk/fp/cpphs/
2005-02-18 23:49:00 -05:00
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB+= c m
2005-02-18 23:49:00 -05:00
# Pure Haskell 98. Could also interpret via Hugs
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
MODULES= ghc
MODGHC_RUNTIME= No
LIB_DEPENDS= gmp::devel/gmp
2005-02-18 23:49:00 -05:00
HC= ghc
HC_OPTS= -O -o cpphs --make
.else
BUILD_DEPENDS+= ::devel/hmake \
::lang/nhc98
2005-02-18 23:49:00 -05:00
HC= hmake
HC_OPTS= -nhc98 -package base
2005-02-18 23:49:00 -05:00
.endif
do-build:
cd ${WRKSRC} && ${HC} ${HC_OPTS} cpphs
2005-02-18 23:49:00 -05:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cpphs ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/docs/cpphs.1 ${PREFIX}/man/man1
do-regress:
cd ${WRKSRC}/tests && /bin/sh ./runtests
2005-02-18 23:49:00 -05:00
.include <bsd.port.mk>