diff options
author | Sergey <non_2001@mail.ru> | 2014-12-13 23:15:18 (GMT) |
---|---|---|
committer | Sergey <non_2001@mail.ru> | 2014-12-15 19:07:26 (GMT) |
commit | ee4d150fb7730d7d4bb7bd91c33972c428dcbe20 (patch) | |
tree | 4e6515d767aff3e23bb49c953a5d0feda4457099 /src/tinyxml2.mk | |
parent | b4dc0346f5c64ca402ec5b93e2c9f97e2af4d56d (diff) | |
download | mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.zip mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.tar.gz mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.tar.bz2 |
tinyxml2
Diffstat (limited to 'src/tinyxml2.mk')
-rw-r--r-- | src/tinyxml2.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tinyxml2.mk b/src/tinyxml2.mk new file mode 100644 index 0000000..e06ce63 --- /dev/null +++ b/src/tinyxml2.mk @@ -0,0 +1,27 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := tinyxml2 +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.2.0 +$(PKG)_CHECKSUM := 7869aa08241ce16f93ba3732c1cde155b1f2b6a0 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/leethomason/tinyxml2/archive/$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/leethomason/tinyxml2/releases' | \ + $(SED) -n 's,.*/archive/\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + mkdir '$(1)/build' + cd '$(1)/build' && cmake .. \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + $(if $(BUILD_STATIC), \ + -DBUILD_STATIC_LIBS=ON) + + $(MAKE) -C '$(1)/build' -j '$(JOBS)' install +endef
\ No newline at end of file |