pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ghc90



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun May 23 06:33:23 UTC 2021

Modified Files:
        pkgsrc/lang/ghc90: options.mk

Log Message:
Do not include ../../lang/llvm/buildlink3.mk

GHC only needs bin/opt and bin/llc but not libLLVM, so inheriting its dependencies does not make sense.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ghc90/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ghc90/options.mk
diff -u pkgsrc/lang/ghc90/options.mk:1.1 pkgsrc/lang/ghc90/options.mk:1.2
--- pkgsrc/lang/ghc90/options.mk:1.1    Fri May 21 01:45:00 2021
+++ pkgsrc/lang/ghc90/options.mk        Sun May 23 06:33:23 2021
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2021/05/21 01:45:00 pho Exp $
+# $NetBSD: options.mk,v 1.2 2021/05/23 06:33:23 pho Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ghc
 
@@ -20,12 +20,12 @@ GHC_LLVM_REQUIRED=  yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mllvm) || ${GHC_LLVM_REQUIRED} == "yes"
-.  include "../../lang/llvm/buildlink3.mk"
-.  include "../../lang/llvm/version.mk"
+DEPENDS+=      llvm-[0-9]*:../../lang/llvm
 CONFIGURE_ENV+=        LLC=${PREFIX:Q}/bin/llc
 CONFIGURE_ENV+=        OPT=${PREFIX:Q}/bin/opt
 
 # Maybe GHC doesn't like this but it's the only option available to us.
+.  include "../../lang/llvm/version.mk"
 SUBST_CLASSES+=                llvm
 SUBST_STAGE.llvm=      post-extract
 SUBST_MESSAGE.llvm=    Accept whichever version of LLVM installed via pkgsrc
@@ -35,7 +35,7 @@ SUBST_SED.llvm=               -e 's/LlvmVersion=[0-9]
 # Clang is also required on Darwin.
 # See compiler/GHC/SysTools/Tasks.hs (runClang).
 .  if ${OPSYS} == "Darwin"
-.    include "../../lang/clang/buildlink3.mk"
+DEPENDS+=      clang-[0-9]*:../../lang/clang
 CONFIGURE_ENV+=        CLANG=${PREFIX:Q}/bin/clang
 .  else
 CONFIGURE_ENV+=        CLANG=${FALSE}



Home | Main Index | Thread Index | Old Index