Mercurial > mxe-octave
annotate src/physfs.mk @ 1701:5225c755c0ea
package physfs: allow unused vars
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Sat, 26 Mar 2011 01:31:58 +0100 |
parents | 9577f70222f8 |
children | 4e48476ea587 |
rev | line source |
---|---|
1615 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # physfs | |
5 PKG := physfs | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 2.0.2 | |
8 $(PKG)_CHECKSUM := 2d3d3cc819ad26542d34451f44050b85635344d0 | |
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz | |
11 $(PKG)_WEBSITE := http://icculus.org/physfs/ | |
12 $(PKG)_URL := http://icculus.org/physfs/downloads/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc zlib | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://icculus.org/physfs/downloads/?M=D' | \ | |
17 $(SED) -n 's,.*<a href="physfs-\([0-9][^"]*\)\.tar.*,\1,pI' | \ | |
18 head -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
22 cd '$(1)' && cmake . \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
23 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
24 -DPHYSFS_BUILD_SHARED=FALSE \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
25 -DPHYSFS_INTERNAL_ZLIB=FALSE \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
26 -DPHYSFS_BUILD_TEST=FALSE \ |
1701
5225c755c0ea
package physfs: allow unused vars
Mark Brand <mabrand@mabrand.nl>
parents:
1663
diff
changeset
|
27 -DPHYSFS_BUILD_WX_TEST=FALSE \ |
5225c755c0ea
package physfs: allow unused vars
Mark Brand <mabrand@mabrand.nl>
parents:
1663
diff
changeset
|
28 -DCMAKE_C_FLAGS='-Wno-unused-but-set-variable' |
1615 | 29 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
30 | |
31 '$(TARGET)-gcc' \ | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
32 -W -Wall -Werror -ansi -pedantic -std=c99 \ |
1615 | 33 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-physfs.exe' \ |
34 -lphysfs -lz | |
35 endef |