pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/cpu_features
Module Name: pkgsrc
Committed By: adam
Date: Thu Mar 16 09:11:13 UTC 2023
Modified Files:
pkgsrc/devel/cpu_features: Makefile
Log Message:
cpu_features: switch to cmake/build.mk; pkglint fixes
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/cpu_features/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/cpu_features/Makefile
diff -u pkgsrc/devel/cpu_features/Makefile:1.6 pkgsrc/devel/cpu_features/Makefile:1.7
--- pkgsrc/devel/cpu_features/Makefile:1.6 Fri May 13 10:39:35 2022
+++ pkgsrc/devel/cpu_features/Makefile Thu Mar 16 09:11:13 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/05/13 10:39:35 tnn Exp $
+# $NetBSD: Makefile,v 1.7 2023/03/16 09:11:13 adam Exp $
GITHUB_TAG= v${PKGVERSION_NOREV}
DISTNAME= cpu_features-0.7.0
@@ -10,7 +10,6 @@ HOMEPAGE= https://github.com/google/cpu_
COMMENT= Cross platform C99 library to get CPU features at runtime
LICENSE= apache-2.0
-USE_CMAKE= yes
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DCMAKE_POSITION_INDEPENDENT_CODE=ON
CMAKE_ARGS+= -DBUILD_TESTING=OFF
@@ -19,16 +18,17 @@ CMAKE_ARGS+= -DBUILD_TESTING=OFF
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PLIST_SUBST+= CPU_FEATURES_ARCH=x86
-.elif !empty(MACHINE_ARCH:M*aarch64*)
+.elif ${MACHINE_ARCH:M*aarch64*}
PLIST_SUBST+= CPU_FEATURES_ARCH=aarch64
-.elif !empty(MACHINE_ARCH:M*powerpc*)
+.elif ${MACHINE_ARCH:M*powerpc*}
PLIST_SUBST+= CPU_FEATURES_ARCH=ppc
-.elif !empty(MACHINE_ARCH:M*arm*)
+.elif ${MACHINE_ARCH:M*arm*}
PLIST_SUBST+= CPU_FEATURES_ARCH=arm
-.elif !empty(MACHINE_ARCH:M*mips*)
+.elif ${MACHINE_ARCH:M*mips*}
PLIST_SUBST+= CPU_FEATURES_ARCH=mips
.else
PKG_FAIL_REASON+= "${MACHINE_ARCH} unsupported, see CMakeLists.txt"
.endif
+.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index