gcc9: Add buidlink3.mk to select GCC with GCC_REQD
* And for gcc9-libs, introduce version.mk. * A part of PR pkg/55637.
This commit is contained in:
parent
f65abcd07d
commit
d1cec0821a
3 changed files with 31 additions and 4 deletions
|
@ -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
|
||||
|
|
24
lang/gcc9/buildlink3.mk
Normal file
24
lang/gcc9/buildlink3.mk
Normal file
|
@ -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
|
2
lang/gcc9/version.mk
Normal file
2
lang/gcc9/version.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
# $NetBSD: version.mk,v 1.1 2020/09/02 16:11:28 ryoon Exp $
|
||||
GCC9_DIST_VERSION:= 9.3.0
|
Loading…
Reference in a new issue