Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: FreeCAD stack: python3-pivy fixes, coin3 4.0.0
Date: Sun, 22 Nov 2020 09:34:15 +0100	[thread overview]
Message-ID: <20201122083415.ssVQ8y5N9rl3GDhFGVsFHeF8I-OrepgnCTc93GMGMlU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25607@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2291 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/25607#issuecomment-731715695

Comment:
Picked from #26589
```diff
diff --git a/srcpkgs/python3-pivy/template b/srcpkgs/python3-pivy/template
index fa1044b8ce..4ab2347a5e 100644
--- a/srcpkgs/python3-pivy/template
+++ b/srcpkgs/python3-pivy/template
@@ -6,7 +6,7 @@ revision=2
 wrksrc="pivy-${version}"
 build_style=python3-module
 hostmakedepends="python3-devel swig cmake"
-makedepends="python3-devel coin3-devel"
+makedepends="python3-devel coin3-devel qt5-devel"
 short_desc="Python3 bindings for the high-level 3D graphics library Coin"
 maintainer="yopito <pierre.bourgin@free.fr>"
 license="ISC"
@@ -23,6 +23,49 @@ case "$XBPS_TARGET_MACHINE" in
 	ppc*) broken="{standard input}:3376761: Error: operand out of range";;
 esac
 
+if [ "$CROSS_BUILD" ]; then
+	CFLAGS+=" -I$XBPS_CROSS_BASE/usr/include/Coin3"
+fi
+
+pre_configure() {
+	[ -z "$CROSS_BUILD" ] && return 0
+	case "$XBPS_TARGET_MACHINE" in
+		x86_64*) _CMAKE_SYSTEM_PROCESSOR=x86_64 ;;
+		i686*) _CMAKE_SYSTEM_PROCESSOR=x86 ;;
+		aarch64*) _CMAKE_SYSTEM_PROCESSOR=aarch64 ;;
+		arm*) _CMAKE_SYSTEM_PROCESSOR=arm ;;
+		mips*) _CMAKE_SYSTEM_PROCESSOR=mips ;;
+		ppc64le*) _CMAKE_SYSTEM_PROCESSOR=ppc64le ;;
+		ppc64*) _CMAKE_SYSTEM_PROCESSOR=ppc64 ;;
+		ppcle*) _CMAKE_SYSTEM_PROCESSOR=ppcle ;;
+		ppc*) _CMAKE_SYSTEM_PROCESSOR=ppc ;;
+		*) _CMAKE_SYSTEM_PROCESSOR=generic ;;
+	esac
+	cat >cross_${XBPS_CROSS_TRIPLET}.cmake <<_EOF
+SET(CMAKE_SYSTEM_NAME Linux)
+SET(CMAKE_SYSTEM_VERSION 1)
+
+SET(CMAKE_C_COMPILER   ${CC})
+SET(CMAKE_CXX_COMPILER ${CXX})
+SET(CMAKE_CROSSCOMPILING TRUE)
+
+SET(CMAKE_SYSTEM_PROCESSOR ${_CMAKE_SYSTEM_PROCESSOR})
+
+SET(CMAKE_FIND_ROOT_PATH  "${XBPS_CROSS_BASE}/usr;${XBPS_CROSS_BASE}")
+
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+
+SET(wxWidgets_CONFIG_EXECUTABLE ${XBPS_WRAPPERDIR}/${wx_config:=wx-config})
+_EOF
+	cat >$XBPS_WRAPPERDIR/cmake <<_EOF
+#!/bin/sh
+/usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$wrksrc/cross_${XBPS_CROSS_TRIPLET}.cmake "$@"
+_EOF
+	chmod +x $XBPS_WRAPPERDIR/cmake
+}
+
 post_install() {
 	vlicense LICENSE
 }
```

  reply	other threads:[~2020-11-22  8:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 19:08 [PR PATCH] " yopito
2020-11-22  8:34 ` sgn [this message]
2020-11-22 23:55 ` [PR PATCH] [Updated] " yopito
2020-11-22 23:57 ` yopito
2020-11-23  0:19 ` sgn
2020-11-24 15:01 ` Piraty
2020-11-24 15:01 ` [PR PATCH] [Merged]: " Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201122083415.ssVQ8y5N9rl3GDhFGVsFHeF8I-OrepgnCTc93GMGMlU@z \
    --to=sgn@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).