Mercurial > mxe-octave
annotate src/physfs.mk @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | 4e48476ea587 |
children | f48c5b085a38 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1707
diff
changeset
|
1 # This file is part of MXE. |
1615 | 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 \ |
1707
4e48476ea587
fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents:
1701
diff
changeset
|
27 -DPHYSFS_BUILD_WX_TEST=FALSE |
1615 | 28 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
29 | |
30 '$(TARGET)-gcc' \ | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
31 -W -Wall -Werror -ansi -pedantic -std=c99 \ |
1615 | 32 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-physfs.exe' \ |
33 -lphysfs -lz | |
34 endef |