From owner-svn-ports-head@freebsd.org Thu Aug 18 02:21:09 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A99EBBE64A; Thu, 18 Aug 2016 02:21:09 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C151A1C65; Thu, 18 Aug 2016 02:21:08 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7I2L7b6032923; Thu, 18 Aug 2016 02:21:07 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7I2L72r032917; Thu, 18 Aug 2016 02:21:07 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201608180221.u7I2L72r032917@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Thu, 18 Aug 2016 02:21:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420378 - in head/sysutils: . libcpuid libcpuid/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 02:21:09 -0000 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 +# $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 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 + #include + + 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