[137245] trunk/dports/sysutils

khindenburg at macports.org khindenburg at macports.org
Sun Jun 7 05:05:28 PDT 2015


Revision: 137245
          https://trac.macports.org/changeset/137245
Author:   khindenburg at macports.org
Date:     2015-06-07 05:05:28 -0700 (Sun, 07 Jun 2015)
Log Message:
-----------
cpuid: new port #47896

Added Paths:
-----------
    trunk/dports/sysutils/cpuid/
    trunk/dports/sysutils/cpuid/Portfile
    trunk/dports/sysutils/cpuid/files/
    trunk/dports/sysutils/cpuid/files/patch-makefile.diff

Added: trunk/dports/sysutils/cpuid/Portfile
===================================================================
--- trunk/dports/sysutils/cpuid/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/cpuid/Portfile	2015-06-07 12:05:28 UTC (rev 137245)
@@ -0,0 +1,42 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           github 1.0
+PortGroup           perl5 1.0
+
+github.setup        tycho cpuid 1.4.2
+
+categories          sysutils
+description         A simple CPUID decoder/dumper for x86/x86_64
+long_description    "cpuid" is a very simple C program, designed to dump and extract information \
+                    from the x86 CPUID instruction.\
+                    cpuid is capable of dumping all CPUID leaves (except any unknown leaves which \
+                    require special ECX values to dump all information). cpuid can only decode \
+                    certain leaves, but this functionality will be expanded as the CPUID \
+                    specifications provided by AMD and Intel change.
+
+maintainers         gmail.com:rjvbertin openmaintainer
+license             ISC
+platforms           darwin
+supported_archs     i386 x86_64
+installs_libs       no
+
+checksums           rmd160  6c3ec2c066b244b98a7749c641932f0a919ee8a4 \
+                    sha256  1323d75dd0e57b448d08334a3c9ef6942d360b8f380820a63dca6a297bd957e3
+
+depends_build       port:p${perl5.major}-pathtools \
+                    port:p${perl5.major}-scalar-list-utils
+
+patchfiles-append   patch-makefile.diff
+
+configure {
+    # no configure script, just a few changes that need to be made to the Makefile
+    # for it to be configured correctly. Doing these reinplaces in configure{} instead
+    # of in post-patch{} maintains support for +universal.
+    reinplace "s|-Os|${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/GNUmakefile
+    reinplace "s|LDFLAGS := -lm|LDFLAGS := -lm ${configure.ldflags} [get_canonical_archflags ld]|g" ${worksrcpath}/GNUmakefile
+    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/GNUmakefile
+}
+
+build.args-append   CC=${configure.cc} LD=${configure.cc} V=1


Property changes on: trunk/dports/sysutils/cpuid/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/cpuid/files/patch-makefile.diff
===================================================================
--- trunk/dports/sysutils/cpuid/files/patch-makefile.diff	                        (rev 0)
+++ trunk/dports/sysutils/cpuid/files/patch-makefile.diff	2015-06-07 12:05:28 UTC (rev 137245)
@@ -0,0 +1,57 @@
+diff --git GNUmakefile GNUmakefile
+index de61e61..354549f 100644
+--- GNUmakefile
++++ GNUmakefile
+@@ -4,7 +4,7 @@ MAKEFLAGS += -Rr
+ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
+ uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
+ 
+-prefix := /usr/local
++prefix := @@PREFIX@@
+ bindir := $(prefix)/bin
+ 
+ ifneq ($(findstring MINGW,$(uname_S)),)
+@@ -72,21 +72,21 @@ ifneq ($(findstring CYGWIN,$(uname_S)),)
+ LDFLAGS += -lwinmm
+ endif
+ 
+-ifneq ($(shell $(CC) --version | grep Apple),)
+-APPLE_COMPILER := YesPlease
+-endif
++# ifneq ($(shell $(CC) --version | grep Apple),)
++# APPLE_COMPILER := YesPlease
++# endif
+ 
+-ifeq ($(uname_S),Darwin)
+-ifneq ($(USE_CHUD),)
+-CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
+-LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
+-endif
+-endif
++# ifeq ($(uname_S),Darwin)
++# ifneq ($(USE_CHUD),)
++# CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
++# LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
++# endif
++# endif
+ 
+-ifdef NO_GNU_GETOPT
+-CFLAGS += -Igetopt
+-OBJECTS += getopt/getopt_long.o
+-endif
++# ifdef NO_GNU_GETOPT
++# CFLAGS += -Igetopt
++# OBJECTS += getopt/getopt_long.o
++# endif
+ 
+ ifeq (,$(findstring clean,$(MAKECMDGOALS)))
+ DEPS := $(shell ls $(OBJECTS:.o=.d) 2>/dev/null)
+@@ -99,7 +99,7 @@ endif
+ .PHONY: all depend clean distclean install
+ 
+ install: $(BINARY)
+-	install -D -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
++	install -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
+ 
+ depend: $(DEPS)
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150607/f45a8791/attachment.html>


More information about the macports-changes mailing list