mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
Add a port of libcpuid, small x86 CPU identification library written in C.
NB: TIMESTAMP line in distinfo should read as follows, but has to stay in its current form due to a bug in the hook script: TIMESTAMP (libcpuid-0.3.0.tar.gz) = 1468115631 WWW: http://libcpuid.sourceforge.net/
This commit is contained in:
parent
ac7e5faf87
commit
6baab87d1c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420378
@ -509,6 +509,7 @@
|
||||
SUBDIR += libcdio
|
||||
SUBDIR += libcdio-paranoia
|
||||
SUBDIR += libchk
|
||||
SUBDIR += libcpuid
|
||||
SUBDIR += libfvde
|
||||
SUBDIR += libgksu
|
||||
SUBDIR += libieee1284
|
||||
|
30
sysutils/libcpuid/Makefile
Normal file
30
sysutils/libcpuid/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libcpuid
|
||||
PORTVERSION= 0.3.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= Small x86 CPU identification library
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
USES= libtool pathfix
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --disable-silent-rules
|
||||
USE_LDCONFIG= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
PORTDOCS= AUTHORS ChangeLog Readme.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/libcpuid/distinfo
Normal file
3
sysutils/libcpuid/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1468115631
|
||||
SHA256 (libcpuid-0.3.0.tar.gz) = dcf70a3c163eed34ea146ebee0a3c061a111373f3286391b62cf664402f1e9f8
|
||||
SIZE (libcpuid-0.3.0.tar.gz) = 455685
|
10
sysutils/libcpuid/files/patch-libcpuid_cpuid__main.c
Normal file
10
sysutils/libcpuid/files/patch-libcpuid_cpuid__main.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- libcpuid/cpuid_main.c.orig 2016-08-16 05:32:11 UTC
|
||||
+++ libcpuid/cpuid_main.c
|
||||
@@ -126,6 +126,7 @@ static int get_total_cpus(void)
|
||||
#endif
|
||||
|
||||
#if defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__ || defined __bsdi__ || defined __QNX__
|
||||
+#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
static int get_total_cpus(void)
|
15
sysutils/libcpuid/pkg-descr
Normal file
15
sysutils/libcpuid/pkg-descr
Normal file
@ -0,0 +1,15 @@
|
||||
libcpuid is a small C library for x86 CPU detection and feature extraction.
|
||||
Using it, you can:
|
||||
|
||||
- Get the processor vendor, model, brand string, code name, etc.
|
||||
- Get information about CPU features such as: number of cores or logical
|
||||
CPUs, cache sizes, CPU clock, etc.
|
||||
- Check if the processor implements a specific instruction set such as
|
||||
SSE2 or 3DNow!
|
||||
- Execute the CPUID and RDTSC instructions in a portable way
|
||||
- And have this all in your commercial application, without getting into
|
||||
trouble, due to permissive license
|
||||
|
||||
Reference utility (rather advanced and useful on its own) is also provided.
|
||||
|
||||
WWW: http://libcpuid.sourceforge.net/
|
9
sysutils/libcpuid/pkg-plist
Normal file
9
sysutils/libcpuid/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
bin/cpuid_tool
|
||||
include/libcpuid/libcpuid.h
|
||||
include/libcpuid/libcpuid_constants.h
|
||||
include/libcpuid/libcpuid_types.h
|
||||
lib/libcpuid.a
|
||||
lib/libcpuid.so
|
||||
lib/libcpuid.so.13
|
||||
lib/libcpuid.so.13.0.0
|
||||
libdata/pkgconfig/libcpuid.pc
|
Loading…
Reference in New Issue
Block a user