From 39c85e3fbbb5523bd01a2461d7fa6c59861d5c64 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 23 Mar 2014 19:29:08 +0100 Subject: [PATCH] beecrypt: fixed to build and install python modules when cross-compiling --- security/beecrypt/beecrypt.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/security/beecrypt/beecrypt.conf b/security/beecrypt/beecrypt.conf index c730bbfdb..a4f25bdf5 100644 --- a/security/beecrypt/beecrypt.conf +++ b/security/beecrypt/beecrypt.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../beecrypt/beecrypt.conf -# Copyright (C) 2013 The OpenSDE Project +# Copyright (C) 2013 - 2014 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -27,4 +27,13 @@ fi if ! pkginstalled -f python; then var_append extraconfopt ' ' "--without-python" +else + if atstage cross; then + # Note: $pyver is exported through python's parse-config + # use the right Python.h + var_append configcache ' ' "ac_cv_python_include=-I$( pkgprefix -r includedir python)/python${pyver}" + # Note: intentionally no $root is used because libtool + # will inject it on install! + var_append configcache ' ' "ac_cv_python_libdir=$( pkgprefix libdir python)/python${pyver}/site-packages" + fi fi