f48f0a980f
go-cpuid provides information about the CPU running the current program. CPU features are detected on startup, and kept for fast access through the life of the application. Currently x86 / x64 (AMD64) is supported, and no external C (cgo) code is used, which should make the library very easy to use. You can access the CPU information by accessing the shared CPU variable of the cpuid library.
15 lines
405 B
Makefile
15 lines
405 B
Makefile
# $NetBSD: buildlink3.mk,v 1.1 2019/11/06 11:08:14 ng0 Exp $
|
|
|
|
BUILDLINK_TREE+= go-cpuid
|
|
|
|
.if !defined(GO_CPUID_BUILDLINK3_MK)
|
|
GO_CPUID_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_CONTENTS_FILTER.go-cpuid= ${EGREP} gopkg/
|
|
BUILDLINK_DEPMETHOD.go-cpuid?= build
|
|
|
|
BUILDLINK_API_DEPENDS.go-cpuid+= go-cpuid>=1.2.1
|
|
BUILDLINK_PKGSRCDIR.go-cpuid?= ../../devel/go-cpuid
|
|
.endif # GO_CPUID_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -go-cpuid
|