Commit graph

107 commits

Author SHA1 Message Date
John
ee4ce35a68 build-style/cmake: dehardcode gtk2 wxWdigets when cross compiling 2018-11-28 16:49:52 -02:00
Andy Weidenbaum
afdfdf9991 build_style=perl6-dist: add 2018-11-26 04:11:50 -02:00
maxice8
c646f89f87 build-style/gem.sh: ignore ~> operator 2018-11-19 02:29:28 -02:00
maxice8
6ce9a1636a build-style/gemspec.sh: ignore ~> operator 2018-11-19 02:29:28 -02:00
maxice8
e946d7cfa2 build-style/gemspec.sh: fix cross compilation 2018-11-03 15:38:33 -03:00
Johannes
3aa797cb3a build-style cargo: move cargo config from wrksrc to home
since cargo 0.31.0 ${wrksrc}/.cargo/config is ignored for cargo install
fixes: https://github.com/void-linux/void-packages/issues/4328
2018-11-02 13:39:53 +01:00
Jürgen Buchmüller
7e0642f4ca build-style: qmake.sh add missing QMAKE_LINK_C=$CC 2018-11-02 12:25:31 +01:00
maxice8
70dce3d920
build-style/gemspec.sh: guard against usage of find on man and etc 2018-11-02 07:41:49 -03:00
maxice8
a8bbc60f5b
build-style/gem.sh: guard usage of find on etc and man 2018-11-02 07:41:36 -03:00
maxice8
03ea181231 build_style: Add gemspec build_style 2018-11-02 07:15:08 -03:00
maxice8
49e11e1ca5 build_style: Add gem build_style 2018-11-02 07:15:08 -03:00
Rasmus Thomsen
0318d0385a build-style/cargo.sh: add 2018-10-15 20:58:51 +02:00
maxice8
58d5cc4105 build-style/meson: enable b_ndebug and be explicit about paths used. 2018-10-09 10:36:32 -03:00
maxice8
b552a5f05d build-style/cmake.sh: set CMAKE_SYSTEM_PROCESSOR on cross-builds 2018-10-04 10:30:10 +02:00
maxice8
ea1b905d26
build-style/meson: enable Link-Time-Optimization by default. 2018-10-01 01:59:37 -03:00
Kyle Nusbaum
422e3461fe Fail go build when $go_import_path is not set
Closes: #2881 [via git-merge-pr]
2018-09-20 22:38:35 -07:00
maxice8
2748e21418
build-style/go.sh: fix indent 2018-09-18 21:41:08 -03:00
maxice8
608f10ea59
build-style/meson: add nm to binaries and export LD, AR, CPPFLAGS and
LDFLAGS.
2018-09-12 21:24:31 -03:00
maxice8
d0562177a5
build-style/meson: define PKG_CONFIG for host usage.
PKG_CONFIG environment variable should point to the pkg-config executable
to be used to fetch dependencies that use 'native: true' (indicate to build
against host libraries not cross-compiled ones)

To meet those requirements we set an absolute path to the host
pkg-config since the relative path to pkg-config is taken by the
wrapper.

This currently requires a patch that is a milestone of meson-0.48 that
was generated by the issue:

https://github.com/mesonbuild/meson/issues/1736
2018-09-10 01:17:05 -03:00
newbluemoon
435f99d4a7
common/build-style/perl-ModuleBuild.sh: use target perl includes 2018-09-08 07:10:55 -03:00
newbluemoon
4528a706ff
common/build-style/perl-module.sh: use target perl includes 2018-09-08 07:10:55 -03:00
maxice8
775ad8deba
build_style/meson: also unset _MESON_CPU_FAMILY. 2018-09-08 05:54:44 -03:00
newbluemoon
5e6ed15aa9 build-style/perl-ModuleBuild.sh: fix cross 2018-08-26 14:06:35 -03:00
maxice8
6580c8d657
build_style/meson.sh: export CFLAGS and CXXFLAGS from host
meson when compiling something with 'native: true' (for building
executables that are meant to be run on the host system) uses CFLAGS
and CXXFLAGS environment variables, we "pollute" them with
TARGET system cflags/cxxflags, such as -march= for the cross-compiled
arch.

so to fix it we export CFLAGS and CXXFLAGS to be CFLAGS_host and
CXXFLAGS_host respectively, they are set by XBPS and correspond to
the XBPS_CFLAGS/XBPS_CXXFLAGS. This same set of changes is also done
with CC and CXX see L#61

this was found when cross-compiling lighttpd which created the
'lemon' executable to generate inputs

thanks to @Cogitri from Exherbo for helping me debug this

[ci skip]
2018-08-16 01:49:38 -03:00
Alessio Sergi
b0feeed60e build-styles/waf{,3}: make sure waf uses the correct python version 2018-08-09 19:53:32 +02:00
maxice8
97b348502c meson.sh: Fix cross-compilation
following https://mesonbuild.com/Cross-compilation.html

- host_machine is our XBPS_TARGET_MACHINE
- build_machine is our XBPS_MACHINE, and meson can find out the details
on it's own
- also don't include -musl in the CPU because meson doesn't recognize it
and projects like Mesa (LibGL) don't enable optimizations for it
- cpu_family and cpu are different, they need to be set properly:
 - armv* is arm
 - mips* is mips
 - i686 is x86
 - x86_64 is x86_64
 - aarch64 is aarch64
2018-07-29 14:30:20 -03:00
Leah Neukirchen
d4e6c49808 build-style/haskell-stack.sh: init using --system-ghc too. 2018-04-05 14:32:40 +02:00
Piotr Wójcik
e1a62f4018 build-style/cmake.sh: fix default do_check 2018-03-09 13:43:10 -05:00
Michael Gehring
5d6b70bd29 common/build-style/scons.sh: fix comment 2018-03-05 20:49:36 +00:00
Enno Boland
4ae8c6e8e8
common/build-style: revert last fix, instead fix a typo 2018-02-26 19:52:04 +01:00
Enno Boland
2f792446a5
common/build-style: do not leak host CFLAGS 2018-02-26 19:19:12 +01:00
Jürgen Buchmüller
c43b120be0 perl-module: fall back to use host files
If perl is not installed for the target when cross building a module,
fall back to use the host Config*.p? and Errno.pm files.
2018-02-26 09:35:44 +01:00
newbluemoon
67c20224e0 xbps-src: make cmake find/use the wx-config wrapper 2018-01-09 13:35:09 +01:00
Enno Boland
768fd97393
Revert "build-style/cmake.sh: reset working dir to wrksrc after do_install"
This reverts commit 2d678d4188.
2017-11-29 15:02:01 +01:00
maxice8
84a9ac51db build-style/meson.sh: add generic do_check function.
Closes #9594.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2017-11-28 09:37:49 +01:00
Michael Aldridge
92d6e1a521 go build style: move GOPATH creation to do_configure() 2017-11-26 00:41:26 -08:00
hipperson0
fb26ec4a5b New package: cross-mips-linux-muslhf-0.24 2017-11-24 10:11:23 +01:00
Michael Gehring
0adf7415b7 common/build-style/meson.sh: fix comment 2017-11-24 06:44:44 +00:00
Enno Boland
b842440e76 build-style/cmake.sh: fix result code invalid invertation 2017-11-22 12:55:35 +01:00
maxice8
dd231e7a14 build-style/cmake.sh: add generic do_check function.
Closes #9391.
2017-11-21 12:33:38 +01:00
maxice8
9eea97221e build-style/perl-ModuleBuild.sh: add generic do_check function.
Closes #9408.
2017-11-21 11:51:08 +01:00
Leah Neukirchen
30cfeb722b build-style/gnu-makefile.sh: use "make check" if available. 2017-11-20 13:26:29 +01:00
Leah Neukirchen
6caa3ad3be build-style/configure.sh: use "make check" if available. 2017-11-20 13:26:29 +01:00
Leah Neukirchen
c8e8f4276b build-style/gnu-configure.sh: warn, don't fail if "make check" is not implemented.
Closes #9348.
2017-11-20 13:26:29 +01:00
maxice8
0285924292 build-style/perl-module.sh: use generic do_check function 2017-11-20 07:18:29 +01:00
Enno Boland
0d446641e7 build-style/gnu-configure.sh: use generic do_check function 2017-11-19 20:50:48 +01:00
Enno Boland
2d678d4188 build-style/cmake.sh: reset working dir to wrksrc after do_install 2017-11-18 21:25:50 +01:00
John
568df64d8e meson: fix cpp cross compilation 2017-09-30 14:20:47 +02:00
Enno Boland
daa28fbae0 Merge pull request #7801 from pbui/meson-cross
meson: add preliminary support for cross compilation
2017-09-26 09:34:01 +02:00
Leah Neukirchen
eae6f47e26 common/build-style/perl-module.sh: Config_heavy.pl doesn't have a .pm extensions. 2017-09-25 16:57:31 +02:00