Skip to content

Commit

Permalink
add optional package cmake with native build
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytheodore committed Jul 22, 2013
1 parent bf660c2 commit 8ff8097
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Expand Up @@ -1086,6 +1086,10 @@ <h2 id="packages">List of Packages</h2>
<td class="package">cgal</td>
<td class="website"><a href="http://www.cgal.org/">cgal</a></td>
</tr>
<tr>
<td class="package">cmake</td>
<td class="website"><a href="http://www.cmake.org">cmake</a></td>
</tr>
<tr>
<td class="package">cminpack</td>
<td class="website"><a href="http://devernay.free.fr/hacks/cminpack/cminpack.html">cminpack</a></td>
Expand Down
24 changes: 24 additions & 0 deletions src/cmake.mk
@@ -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

0 comments on commit 8ff8097

Please sign in to comment.