Mercurial > mxe-octave
annotate src/qjson.mk @ 2988:aca8511e7751
qt.mk: link to correct files in bin directory
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 May 2013 13:32:57 -0400 |
parents | 4c2874e00f0c |
children | 100e618349f7 |
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 | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://sourceforge.net/projects/qjson/files/qjson/' | \ |
1934 | 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 -DLIBTYPE=STATIC | |
24 | |
25 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install | |
26 endef |