svn commit: r420378 - in head/sysutils: . libcpuid libcpuid/files
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Aug 18 02:21:09 UTC 2016
Author: danfe
Date: Thu Aug 18 02:21:07 2016
New Revision: 420378
URL: https://svnweb.freebsd.org/changeset/ports/420378
Log:
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/
Added:
head/sysutils/libcpuid/
head/sysutils/libcpuid/Makefile (contents, props changed)
head/sysutils/libcpuid/distinfo (contents, props changed)
head/sysutils/libcpuid/files/
head/sysutils/libcpuid/files/patch-libcpuid_cpuid__main.c (contents, props changed)
head/sysutils/libcpuid/pkg-descr (contents, props changed)
head/sysutils/libcpuid/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Thu Aug 18 01:00:51 2016 (r420377)
+++ head/sysutils/Makefile Thu Aug 18 02:21:07 2016 (r420378)
@@ -509,6 +509,7 @@
SUBDIR += libcdio
SUBDIR += libcdio-paranoia
SUBDIR += libchk
+ SUBDIR += libcpuid
SUBDIR += libfvde
SUBDIR += libgksu
SUBDIR += libieee1284
Added: head/sysutils/libcpuid/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/libcpuid/Makefile Thu Aug 18 02:21:07 2016 (r420378)
@@ -0,0 +1,30 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= libcpuid
+PORTVERSION= 0.3.0
+CATEGORIES= sysutils
+MASTER_SITES= SF
+
+MAINTAINER= danfe at 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>
Added: head/sysutils/libcpuid/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/libcpuid/distinfo Thu Aug 18 02:21:07 2016 (r420378)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1468115631
+SHA256 (libcpuid-0.3.0.tar.gz) = dcf70a3c163eed34ea146ebee0a3c061a111373f3286391b62cf664402f1e9f8
+SIZE (libcpuid-0.3.0.tar.gz) = 455685
Added: head/sysutils/libcpuid/files/patch-libcpuid_cpuid__main.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/libcpuid/files/patch-libcpuid_cpuid__main.c Thu Aug 18 02:21:07 2016 (r420378)
@@ -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)
Added: head/sysutils/libcpuid/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/libcpuid/pkg-descr Thu Aug 18 02:21:07 2016 (r420378)
@@ -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/
Added: head/sysutils/libcpuid/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/libcpuid/pkg-plist Thu Aug 18 02:21:07 2016 (r420378)
@@ -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
More information about the svn-ports-head
mailing list