]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/commitdiff
New format of buildlink3.mk
authorPHO <pho@cielonegro.org>
Sun, 28 Jun 2009 03:22:58 +0000 (12:22 +0900)
committerPHO <pho@cielonegro.org>
Sun, 28 Jun 2009 03:22:58 +0000 (12:22 +0900)
buildlink3.mk

index 7faaf568a667bbd24350857dd340c18d281b2b19..72881f665c49aa8c4480b15886d94f9cad71e590 100644 (file)
@@ -1,29 +1,15 @@
-# $NetBSD: buildlink3.mk,v 1.9 2007/04/29 22:12:02 kristerw Exp $
+# $NetBSD$
 
-BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
-GHC_BUILDLINK3_MK:=    ${GHC_BUILDLINK3_MK}+
+BUILDLINK_TREE+=       ghc
 
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+=    ghc
-.endif
+.if !defined(GHC_BUILDLINK3_MK)
+GHC_BUILDLINK3_MK:=
 
-BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nghc}
-BUILDLINK_PACKAGES+=   ghc
-BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ghc
-
-.if !empty(GHC_BUILDLINK3_MK:M+)
 BUILDLINK_API_DEPENDS.ghc+=    ghc>=6.10.1
-BUILDLINK_ABI_DEPENDS.ghc?=    ghc>=6.10.1
 BUILDLINK_PKGSRCDIR.ghc?=      ../../wip/ghc
 
-BUILDLINK_DEPMETHOD.ghc?=      build
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../wip/editline/buildlink3.mk"
 .endif # GHC_BUILDLINK3_MK
 
-BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
-
-# We include gmp/buildlink3.mk here so that "gmp" is registered as a
-# direct dependency for any package that includes this buildlink3.mk
-# to get ghc as a build dependency.  This is needed since software
-# built by ghc requires routines from the "gmp" shared library.
-#
-.include "../../devel/gmp/buildlink3.mk"
+BUILDLINK_TREE+=       -ghc