pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/botan-devel Restore explicit CPU selection ba...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3ebf62936220
branches:  trunk
changeset: 355156:3ebf62936220
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Nov 23 13:01:54 2016 +0000

description:
Restore explicit CPU selection based on MACHINE_ARCH, needing e.g. on
SmartOS.

diffstat:

 security/botan-devel/Makefile |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r da14b2fec631 -r 3ebf62936220 security/botan-devel/Makefile
--- a/security/botan-devel/Makefile     Wed Nov 23 09:27:11 2016 +0000
+++ b/security/botan-devel/Makefile     Wed Nov 23 13:01:54 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2016/11/11 19:46:05 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2016/11/23 13:01:54 joerg Exp $
 
 DISTNAME=      Botan-1.11.33
 PKGNAME=       ${DISTNAME:tl}
@@ -27,6 +27,18 @@
 CONFIGURE_ARGS+=       --cc-bin=${CXX} --cc=clang
 .endif
 
+.if ${MACHINE_ARCH} == "x86_64"
+CONFIGURE_ARGS+=       --cpu=amd64
+.elif ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=       --cpu=i386
+.elif ${MACHINE_ARCH} == "powerpc"
+CONFIGURE_ARGS+=       --cpu=ppc
+.elif ${MACHINE_ARCH} == "powerpc64"
+CONFIGURE_ARGS+=       --cpu=ppc64
+.elif ${MACHINE_ARCH} == "arm"
+CONFIGURE_ARGS+=       --cpu=arm
+.endif
+
 MAKE_FLAGS+=   LIB_OPT=${CXXFLAGS:Q}
 
 USE_TOOLS+=    gmake



Home | Main Index | Thread Index | Old Index