2007-07-21 13:14:57 -04:00
|
|
|
# $OpenBSD: ghc.port.mk,v 1.6 2007/07/21 17:14:57 kili Exp $
|
2003-07-23 14:26:35 -04:00
|
|
|
# Module for Glasgow Haskell Compiler
|
|
|
|
|
|
|
|
# Not yet ported to other architectures
|
|
|
|
# See comments in lang/ghc/Makefile for more information
|
2005-02-18 22:42:11 -05:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2003-07-23 14:26:35 -04:00
|
|
|
|
2007-07-21 13:14:57 -04:00
|
|
|
MODGHC_VER= 6.6.1
|
|
|
|
|
|
|
|
# The following is for depending ports only. GHC itself just needs
|
|
|
|
# MODGHC_VER and ONLY_FOR_ARCHS. This is a little bit ugly, but
|
|
|
|
# depending ports using CABAL tend to install into locations as
|
|
|
|
# lib/Foo-${FooVersion}/ghc-${MODGHC_VER}, so they need the exact
|
|
|
|
# version of ghc. Depending ports thus need full depends specs,
|
|
|
|
# i.e. RUN_DEPENDS = :ghc-${MODGHC_VERSION}:lang/ghc, and not
|
|
|
|
# just ::lang/ghc.
|
|
|
|
.if ${PKGPATH} != "lang/ghc"
|
2006-11-20 08:07:19 -05:00
|
|
|
BUILD_DEPENDS+= ::lang/ghc
|
2006-07-30 09:21:38 -04:00
|
|
|
|
|
|
|
# Only add runtime when it is actually needed (by default yes)
|
|
|
|
MODGHC_RUNTIME?=Yes
|
2007-07-21 13:14:57 -04:00
|
|
|
. if ${MODGHC_RUNTIME:L} == "yes"
|
|
|
|
RUN_DEPENDS+= :ghc-${MODGHC_VER}:lang/ghc
|
|
|
|
. endif
|
2006-07-30 09:21:38 -04:00
|
|
|
.endif
|