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
|
|
|
|
2007-07-21 09:59:16 -04: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
|
2007-06-29 06:59:07 -04:00
|
|
|
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
|
|
|
|
2007-06-29 06:59:07 -04: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
|
2007-07-21 09:59:16 -04:00
|
|
|
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
|
2007-06-29 06:59:07 -04:00
|
|
|
BUILD_DEPENDS+= ::devel/hmake \
|
|
|
|
::lang/nhc98
|
2005-02-18 23:49:00 -05:00
|
|
|
HC= hmake
|
2007-06-29 06:59:07 -04:00
|
|
|
HC_OPTS= -nhc98 -package base
|
2005-02-18 23:49:00 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
2006-11-20 08:07:19 -05:00
|
|
|
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:
|
2007-06-29 06:59:07 -04:00
|
|
|
cd ${WRKSRC}/tests && /bin/sh ./runtests
|
2005-02-18 23:49:00 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|