diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-08-25 09:12:13 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-08-25 09:12:13 (GMT) |
commit | 5b318144b90b7f915c54880ae0934be747e3fccd (patch) | |
tree | 2efc9f0dde44b7004adc74d49b0924be97aacb72 /src/cmake.mk | |
parent | 521a9a31783acd3350b7df75eff58f80e8c762f0 (diff) | |
download | mxe-5b318144b90b7f915c54880ae0934be747e3fccd.zip mxe-5b318144b90b7f915c54880ae0934be747e3fccd.tar.gz mxe-5b318144b90b7f915c54880ae0934be747e3fccd.tar.bz2 |
native packages: tidy up and install to BUILD prefix to avoid conflicts
Diffstat (limited to 'src/cmake.mk')
-rw-r--r-- | src/cmake.mk | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cmake.mk b/src/cmake.mk index 6cd54e7..7f2f06d 100644 --- a/src/cmake.mk +++ b/src/cmake.mk @@ -2,23 +2,25 @@ # See index.html for further information. PKG := cmake -$(PKG)_IGNORE := +$(PKG)_IGNORE := % $(PKG)_VERSION := 2.8.9 $(PKG)_CHECKSUM := b96663c0757a5edfbddc410aabf7126a92131e2b $(PKG)_SUBDIR := cmake-$($(PKG)_VERSION) $(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz -$(PKG)_URL := http://www.cmake.org/files/v2.8/$($(PKG)_FILE) +$(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE - echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; - echo $($(PKG)_VERSION) + $(WGET) -q -O- 'http://www.cmake.org/cmake/resources/software.html' | \ + $(SED) -n 's,.*cmake-\([0-9.]*\)\.tar.*,\1,p' | \ + $(SORT) -V | \ + tail -1 endef -define $(PKG)_BUILD_NATIVE +define $(PKG)_BUILD_$(BUILD) mkdir '$(1).build' cd '$(1).build' && '$(1)/configure' \ - --prefix='$(PREFIX)' + --prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install endef |