Mercurial > mxe-octave
annotate src/qjson.mk @ 2365:b5321bdec505
Move full package names from src/*.mk into package list (index.html)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 21:41:44 +0200 |
parents | 8765dd817dca |
children | 4d0f3a9da57e |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2015
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1934 | 3 |
4 PKG := qjson | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_CHECKSUM := 19bbef24132b238e99744bb35194c6dadece98f9 | |
7 $(PKG)_SUBDIR := $(PKG) | |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc qt | |
11 | |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://sourceforge.net/projects/qjson/files/qjson/' | \ | |
14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ | |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 echo '$(PREFIX)/bin/$(TARGET)-qmake' | |
20 mkdir '$(1)/build' | |
21 cd '$(1)/build' && cmake .. \ | |
22 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | |
23 -DCMAKE_BUILD_TYPE=Release \ | |
24 -DLIBTYPE=STATIC | |
25 | |
26 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install | |
27 endef |