Mercurial > mxe-octave
annotate src/physfs.mk @ 2833:5e20e0961816
update package physfs
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Tue, 30 Oct 2012 19:51:55 +0100 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
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. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1615 | 3 |
4 PKG := physfs | |
5 $(PKG)_IGNORE := | |
2833 | 6 $(PKG)_CHECKSUM := 327308c777009a41bbabb9159b18c4c0ac069537 |
1615 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
2833 | 8 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 |
1615 | 9 $(PKG)_URL := http://icculus.org/physfs/downloads/$($(PKG)_FILE) |
10 $(PKG)_DEPS := gcc zlib | |
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://icculus.org/physfs/downloads/?M=D' | \ |
1615 | 14 $(SED) -n 's,.*<a href="physfs-\([0-9][^"]*\)\.tar.*,\1,pI' | \ |
15 head -1 | |
16 endef | |
17 | |
18 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
|
19 cd '$(1)' && cmake . \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
20 -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
|
21 -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
|
22 -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
|
23 -DPHYSFS_BUILD_TEST=FALSE \ |
1707
4e48476ea587
fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents:
1701
diff
changeset
|
24 -DPHYSFS_BUILD_WX_TEST=FALSE |
1615 | 25 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
26 | |
27 '$(TARGET)-gcc' \ | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
28 -W -Wall -Werror -ansi -pedantic -std=c99 \ |
1615 | 29 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-physfs.exe' \ |
30 -lphysfs -lz | |
31 endef |