ORBit2: fix cross build
This commit is contained in:
parent
a119517137
commit
1e552159f2
1 changed files with 20 additions and 2 deletions
|
@ -12,8 +12,26 @@ license="GPL-2, LGPL-2.1"
|
|||
homepage="http://projects.gnome.org/ORBit2/"
|
||||
distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
|
||||
checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
|
||||
# Needs idl-compiler/orbit-idl-2 for the host
|
||||
nocross=yes
|
||||
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" ORBit2"
|
||||
make_build_args+=" IDL_COMPILER=/usr/bin/orbit-idl-2"
|
||||
configure_args+=" ac_cv_alignof_CORBA_boolean=${ac_cv_alignof_CORBA_boolean=1}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_char=${ac_cv_alignof_CORBA_char=1}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_double=${ac_cv_alignof_CORBA_double=8}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_float=${ac_cv_alignof_CORBA_float=4}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_long=${ac_cv_alignof_CORBA_long=4}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_long_double=${ac_cv_alignof_CORBA_long_double=8}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_long_long=${ac_cv_alignof_CORBA_long_long=8}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_octet=${ac_cv_alignof_CORBA_octet=1}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_short=${ac_cv_alignof_CORBA_short=2}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_struct=${ac_cv_alignof_CORBA_struct=1}"
|
||||
configure_args+=" ac_cv_alignof_CORBA_wchar=${ac_cv_alignof_CORBA_wchar=2}"
|
||||
case "${XBPS_TARGET_MACHINE}" in
|
||||
x86_64*|aarch64*) configure_args+=" ac_cv_alignof_CORBA_pointer=${ac_cv_alignof_CORBA_pointer=8}";;
|
||||
*) configure_args+=" ac_cv_alignof_CORBA_pointer=${ac_cv_alignof_CORBA_pointer=4}";;
|
||||
esac
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
rm -f ${DESTDIR}/usr/lib/*.a
|
||||
|
|
Loading…
Reference in a new issue