diff options
author | Mark Brand <mabrand@mabrand.nl> | 2011-07-13 20:45:26 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2011-07-13 20:45:26 (GMT) |
commit | 5f9ddbc7388765d462898740da0663c4a83815da (patch) | |
tree | 2dd7663cc99b21e1de9000f56e6fb405ea39f837 /src/qjson.mk | |
parent | d48102423662d29dca4b8b9c21b49a026113bf3e (diff) | |
download | mxe-5f9ddbc7388765d462898740da0663c4a83815da.zip mxe-5f9ddbc7388765d462898740da0663c4a83815da.tar.gz mxe-5f9ddbc7388765d462898740da0663c4a83815da.tar.bz2 |
new package: qjson
Diffstat (limited to 'src/qjson.mk')
-rw-r--r-- | src/qjson.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/qjson.mk b/src/qjson.mk new file mode 100644 index 0000000..dfd8616 --- /dev/null +++ b/src/qjson.mk @@ -0,0 +1,31 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +PKG := qjson +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.7.1 +$(PKG)_CHECKSUM := 19bbef24132b238e99744bb35194c6dadece98f9 +$(PKG)_SUBDIR := $(PKG) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://$(PKG).sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc qt + +define $(PKG)_UPDATE + wget -q -O- 'http://sourceforge.net/projects/qjson/files/qjson/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + echo '$(PREFIX)/bin/$(TARGET)-qmake' + mkdir '$(1)/build' + cd '$(1)/build' && cmake .. \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DQT_QMAKE_EXECUTABLE='$(PREFIX)/bin/$(TARGET)-qmake' \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIBTYPE=STATIC + + $(MAKE) -C '$(1)/build' -j '$(JOBS)' install +endef + |