Commit Graph

345 Commits

Author SHA1 Message Date
Uwe Koloska 6fa3b9f986 add variable to define directory for tmp-directories
sometimes it's necessary to not build inside the mxe folder. The
variable MXE_TMP can be used to change the base directory for creating
tmp directories that are used for building.

Rationale: when using virtualbox to build the cross-compile environment
and the mxe project is in a shared folder, at least stripping is not
working because of an internal error of the shared filesystem.  So the
solution is to change the tmp-directory to a place inside the VM.
2015-10-14 16:48:15 +02:00
Boris Nagaev 94f55814e9 check-requirements: check for native gdk-pixbuf
Check with command `gdk-pixbuf-csource --help`.

close #927
2015-10-14 01:26:21 +03:00
Boris Nagaev 530d479b4f require patch number to start with a digit
MXE recongized file src/lua-rapidjson-1-use-unix-file-functions.patch
as a patch for lua, however it was intended to be a patch for lua-rapidjson.
Patch filename pattern was src/$(1)-*.patch.
* captured "rapidjson-1-use-unix-file-functions".

Currently * was replaced with [0-9]* to require patch name starting with
a digit.

close #921
2015-10-12 22:24:48 +03:00
Tony Theodore 6c01c7dc55 Makefile: fix download for script only packages
fixes #899

also cleanup download-foo dependencies
2015-10-01 14:52:33 +10:00
Tony Theodore 4cbbcfa0b6 Makefile: add note about WINEPREFIX 2015-10-01 12:38:39 +10:00
Tony Theodore 8e2d0e85c5 set WINEPREFIX to a readonly directory to force wine to fail
fixes #841
2015-09-30 14:57:37 +10:00
Tony Theodore 7996642c4b Revert "Make CHECK_PKG_ARCHIVE return true for packages without files"
This reverts commit e474e77244.
2015-09-30 14:21:34 +10:00
Tony Theodore 8a6a33a48c Makefile: rename CC/CXX_BUILD --> BUILD_CC/CXX
somewhat more aligned to the <target>-<tool> convention
2015-09-30 14:19:47 +10:00
Tony Theodore 3db411ccac Makefile: add CC/CXX_BUILD portability variables
fixes #900
2015-09-30 13:16:47 +10:00
Timothy Gu e474e77244 Make CHECK_PKG_ARCHIVE return true for packages without files
Should fix #899.
2015-09-29 16:29:17 -07:00
Timothy Gu 252128a30b add macro MXE_GET_GITHUB_TAGS
Source: https://github.com/mxe/mxe/pull/649#issuecomment-143390677
2015-09-26 10:23:59 +03:00
Boris Nagaev b76e14d777 style: move pipe to new line 2015-09-26 10:22:22 +03:00
Tony Theodore eb7eaa7b9e Makefile: add cmake shared/static boolean variables 2015-09-26 00:06:15 +10:00
Tony Theodore fc0ed34fb9 all packages: really use sha256 checksums 2015-09-23 18:32:58 +10:00
Tony Theodore df6f8926c2 Makefile: add cleanup-deps-style to reorder deps 2015-09-23 17:34:45 +10:00
Tony Theodore a228c0488f all packages: switch to sha256 checksums
closes #871
2015-09-23 17:27:16 +10:00
Boris Nagaev 164e7435c9 report downloading from backup 2015-09-18 09:09:37 +03:00
Tony Theodore 19d1be38ae Move general configuration from pkgconf to mxe-conf and add cmake/mxe-conf.d 2015-09-12 13:43:04 +10:00
Tony Theodore 4d858c468b Makefile: include mxe-conf as an order-only dep of all packages
Order-only deps have the benefit of guaranteed early execution and not requiring full rebuilds. It isn't a real package, so we don't want an entry in index.html.
2015-09-12 13:43:04 +10:00
Tony Theodore 5c62f03175 Makefile: allow script-only packages
* Create PREPARE_PKG_SOURCE function to simplify conditional unpacking and patching (possibly future git init)
* Only attempt download if there is a pkg url
* Only prepare source if there is a pkg file - useful for target specific overrides (say gcc on $(BUILD))
2015-09-12 13:43:04 +10:00
Tony Theodore c97cc62e1a Makefile: log autoconf and automake versions 2015-09-07 15:28:25 +10:00
Tony Theodore d1e18ad8cb Makefile: print package messages during build 2015-09-05 23:32:17 +10:00
Tony Theodore 307efd50da Makefile: don't remove versions.json on clean 2015-09-05 19:24:38 +10:00
Timothy Gu 34d2cb0286 Fix occasion [done] message weirdness 2015-07-26 19:44:19 -07:00
Timothy Gu 18fafbeb98 Merge pull request #568 from tonytheodore/parallel
Makefile: build targets in parallel
2015-07-09 09:48:23 +08:00
Timothy Gu 1c38e8aea5 Mark versions.json as phony 2015-07-05 18:51:40 -07:00
Timothy Gu 8cf0795e34 Merge pull request #638 from TobiX/index-versions-cache
index.html versions cache
2015-07-06 08:30:36 +08:00
Volker Grabsch 34f6fac9a5 Use command "7za" instead of "7z"
The "7za" command is available on more Unix systems.
2015-06-29 12:46:15 +02:00
Martin Gerhardy 3559d54844 new package box2d
this introduces a new dependency for unpacking the 7z archive from Box2D
2015-06-29 08:34:46 +02:00
Timothy Gu 465131a2b6 Add LD_LIBRARY_PATH & ACLOCAL_PATH to safe envvars
Fixes #697.
2015-06-18 22:18:06 -07:00
Timothy Gu 1bd25fc0ec MXE_GET_GITHUB_SHA: simplify regex and make the hash longer 2015-03-09 18:15:01 -07:00
Tobias Gruetzmacher 06747eaca2 Add a new makefile target to cache versions.
All package versions are written int one JSON file.
2015-02-27 12:57:52 +01:00
Volker Grabsch eaac1a873f Merge branch 'stable' 2015-01-11 18:23:11 -05:00
Volker Grabsch 0c6cc9c91c Split cleanup-style into even smaller commands 2015-01-11 18:20:46 -05:00
Volker Grabsch dacd2ba109 Do not execute too many shell commands at once in "cleanup-style"
Otherwise, the argument to "bash -c ..." is very large, resulting in
the following error message on systems with small ARG_MAX:

make: execvp: bash: Argument list too long
2015-01-11 18:20:36 -05:00
Volker Grabsch 40fd96e236 Remove empty line at EOF 2015-01-11 18:10:50 -05:00
Volker Grabsch 8fb5da24f5 Merge branch 'stable' 2015-01-11 10:07:05 -05:00
Volker Grabsch 27d37c27e7 Add missing .PHONY entry for cleanup-style 2015-01-11 10:06:29 -05:00
Timothy Gu 47c3d0c170 Remove extraneous comma
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-12-14 12:55:27 -05:00
Timothy Gu 73898524ea Print config.log when build succeeded as well
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-12-14 12:53:57 -05:00
Tony Theodore fde591f2c4 Makefile: build targets in parallel
I was never really happy with the way targets are serialized, it's fighting against `make` (causing issues like #234 and #219), and the target header isn't particularly informative. This fixes #234 and should also provide a speedup when building all targets simultaneously.

Download rules are now pre-requisites of build rules to stop multiple download attempts, and all build logs have a target suffix.

More work is needed on #219, since download rules are always outdated unless a marker file is used. I'll look at this separately as I also want to allow script only packages.
2014-11-27 18:42:40 +11:00
Timothy Gu b06795b831 Add a $(BITS) convenience variable
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-11-16 22:25:19 -05:00
Tony Theodore a063f823e8 Makefile: remove check for pkg-config since we build pkgconf 2014-10-29 21:07:08 +11:00
Timothy Gu bcdc828e1c Fix display of "autodetected jobs" when $(JOBS) is set in settings.mk
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-20 22:22:00 -07:00
Timothy Gu df1b36c387 Show autodetected cores when no $(JOBS) is specified
If there is a more readable way of doing this, please point out.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-18 17:31:12 +00:00
Timothy Gu 9ebd3cedf7 update: Add "UPDATE_DRYRUN" mode
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-14 21:42:51 -04:00
Timothy Gu 981b2c1d9b Add message when i686-pc-mingw32 is used
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-14 23:48:09 +00:00
Timothy Gu 978fed72ed Fix target name check
This makes it error out when
    make MXE_TARGETS=i686-w64-mingw32.stati
etc.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-14 23:48:09 +00:00
Timothy Gu 0d612118bc build-matrix: Speed up with unary notation
4.6s -> 3.9s.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-14 19:46:31 -04:00
Timothy Gu d87240eb7b Remove i686-pc-mingw32
Fixes #400 and #492.

See #453.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-10-14 01:32:44 +00:00