Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add optional package cmake with native build
- Loading branch information
1 parent
bf660c2
commit 8ff8097
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file is part of MXE. | ||
# See index.html for further information. | ||
|
||
PKG := cmake | ||
$(PKG)_IGNORE := | ||
$(PKG)_VERSION := 2.8.11.2 | ||
$(PKG)_CHECKSUM := 31f217c9305add433e77eff49a6eac0047b9e929 | ||
$(PKG)_SUBDIR := cmake-$($(PKG)_VERSION) | ||
$(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz | ||
$(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) | ||
$(PKG)_DEPS := | ||
|
||
define $(PKG)_UPDATE | ||
echo 'Warning: Updates are disabled for package cmake.' >&2; | ||
echo $($(PKG)_VERSION) | ||
endef | ||
|
||
define $(PKG)_BUILD_NATIVE | ||
mkdir '$(1).build' | ||
cd '$(1).build' && '$(1)/configure' \ | ||
--prefix='$(PREFIX)/native' | ||
$(MAKE) -C '$(1).build' -j '$(JOBS)' | ||
$(MAKE) -C '$(1).build' -j 1 install | ||
endef |