aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-03-13 06:43:12 +0800
committerimp <imp@FreeBSD.org>2014-03-13 06:43:12 +0800
commit1939de073f5b927ddd01e054ed72faa1bd3e7b0d (patch)
tree27876e8c3f638fd8b5c69659eabc4dd968220f51 /sysutils
parenta3823468c4d64b2fab8b0151edf89209825d650d (diff)
downloadfreebsd-ports-gnome-1939de073f5b927ddd01e054ed72faa1bd3e7b0d.tar.gz
freebsd-ports-gnome-1939de073f5b927ddd01e054ed72faa1bd3e7b0d.tar.zst
freebsd-ports-gnome-1939de073f5b927ddd01e054ed72faa1bd3e7b0d.zip
Move to using a cached copy of Intel's zip file, per their request. Pull
in the fix from git to make cpucounters.cpp compile.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/intel-pcm/Makefile18
-rw-r--r--sysutils/intel-pcm/distinfo4
-rw-r--r--sysutils/intel-pcm/files/patch-cpucounters-cpp12
3 files changed, 22 insertions, 12 deletions
diff --git a/sysutils/intel-pcm/Makefile b/sysutils/intel-pcm/Makefile
index 6663d2035e50..c78d539b033c 100644
--- a/sysutils/intel-pcm/Makefile
+++ b/sysutils/intel-pcm/Makefile
@@ -3,24 +3,22 @@
PORTNAME= intel-pcm
PORTVERSION= 2.6
+PORTREVISION= 1
CATEGORIES= sysutils
+MASTER_SITES= LOCAL/imp
+DISTNAME= intelperformancecountermonitorv${PORTVERSION}
-MAINTAINER= adrian@FreeBSD.org
+MAINTAINER= imp@FreeBSD.org
COMMENT= Intel PCM toolkit
-LICENSE= BSD4CLAUSE
+LICENSE= BSD3CLAUSE
-USES= gmake compiler:c++11-lang
-
-USE_GITHUB= yes
-GH_ACCOUNT= erikarn
-GH_COMMIT= 9b302ef
-GH_TAGNAME= ${GH_COMMIT}
+USES= gmake compiler:c++11-lang zip
ONLY_FOR_ARCHS= i386 amd64
-WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-${GH_COMMIT}/src
-MAKE_ARGS= CC="${CXX}" OPT="${CXXFLAGS}"
+WRKSRC= ${WRKDIR}/IntelPerformanceCounterMonitorV${PORTVERSION}
+MAKE_ARGS= CC="${CXX}" OPT="${CXXFLAGS}" CXX="${CXX}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/*.x ${STAGEDIR}${PREFIX}/sbin
diff --git a/sysutils/intel-pcm/distinfo b/sysutils/intel-pcm/distinfo
index edb7fee036aa..ce29514d933d 100644
--- a/sysutils/intel-pcm/distinfo
+++ b/sysutils/intel-pcm/distinfo
@@ -1,2 +1,2 @@
-SHA256 (intel-pcm-2.6.tar.gz) = 8f8b8f55f4d2235a0ac6dfc125f0edb1064473102bef25a21de1b9598fe4f330
-SIZE (intel-pcm-2.6.tar.gz) = 807742
+SHA256 (intelperformancecountermonitorv2.6.zip) = 781dcaa0bfa49593878e16db131c31e8f0a401e6e58f8c2786a6d70b1be67857
+SIZE (intelperformancecountermonitorv2.6.zip) = 907379
diff --git a/sysutils/intel-pcm/files/patch-cpucounters-cpp b/sysutils/intel-pcm/files/patch-cpucounters-cpp
new file mode 100644
index 000000000000..e029cf2b4e5c
--- /dev/null
+++ b/sysutils/intel-pcm/files/patch-cpucounters-cpp
@@ -0,0 +1,12 @@
+diff -ru cpucounters.cpp cpucounters.cpp
+--- cpucounters.cpp 2013-11-04 05:43:31.000000000 -0700
++++ cpucounters.cpp 2014-03-07 05:47:24.000000000 -0700
+@@ -681,7 +681,7 @@
+ else
+ apic_ids_per_core = 1;
+
+- for (i = 0; i < num_cores; i++)
++ for (int i = 0; i < num_cores; i++)
+ {
+ char cpuctl_name[64];
+ int apic_id;