Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc9 gcc9: Add buidlink3.mk to select GCC with GC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3616ef29817d
branches:  trunk
changeset: 437884:3616ef29817d
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Wed Sep 02 16:11:28 2020 +0000

description:
gcc9: Add buidlink3.mk to select GCC with GCC_REQD

* And for gcc9-libs, introduce version.mk.
* A part of PR pkg/55637.

diffstat:

 lang/gcc9/Makefile      |   9 +++++----
 lang/gcc9/buildlink3.mk |  24 ++++++++++++++++++++++++
 lang/gcc9/version.mk    |   2 ++
 3 files changed, 31 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r d12e20373f06 -r 3616ef29817d lang/gcc9/Makefile
--- a/lang/gcc9/Makefile        Wed Sep 02 13:19:17 2020 +0000
+++ b/lang/gcc9/Makefile        Wed Sep 02 16:11:28 2020 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.22 2020/08/31 18:09:49 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2020/09/02 16:11:28 ryoon Exp $
 
-GCC9_VERSION=  9.3.0
+GCC_PKGNAME=   gcc9
+.include "version.mk"
 PKGREVISION=   3
 
-DISTNAME=      gcc-${GCC9_VERSION}
-PKGNAME=       gcc9-${GCC9_VERSION}
+DISTNAME=      gcc-${GCC9_DIST_VERSION}
+PKGNAME=       ${GCC_PKGNAME}-${GCC9_DIST_VERSION}
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/}
 EXTRACT_SUFX=  .tar.xz
diff -r d12e20373f06 -r 3616ef29817d lang/gcc9/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc9/buildlink3.mk   Wed Sep 02 16:11:28 2020 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/09/02 16:11:28 ryoon Exp $
+
+BUILDLINK_TREE+=       gcc9
+
+.if !defined(GCC9_BUILDLINK3_MK)
+GCC9_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gcc9+=   gcc9>=${_GCC_REQD}
+BUILDLINK_ABI_DEPENDS.gcc9+=   gcc9>=9.0
+BUILDLINK_PKGSRCDIR.gcc9=      ../../lang/gcc9
+BUILDLINK_DEPMETHOD.gcc9?=     build
+
+BUILDLINK_PASSTHRU_DIRS+=      ${BUILDLINK_PREFIX.gcc9}/gcc9
+
+BUILDLINK_FILES.gcc9=          # empty
+BUILDLINK_AUTO_VARS.gcc9=      no
+
+pkgbase := gcc9
+.include "../../mk/pkg-build-options.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.endif
+
+BUILDLINK_TREE+=       -gcc9
diff -r d12e20373f06 -r 3616ef29817d lang/gcc9/version.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc9/version.mk      Wed Sep 02 16:11:28 2020 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: version.mk,v 1.1 2020/09/02 16:11:28 ryoon Exp $
+GCC9_DIST_VERSION:=    9.3.0



Home | Main Index | Thread Index | Old Index