Mercurial > mxe-octave
annotate src/physfs.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
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)_CHECKSUM := 2d3d3cc819ad26542d34451f44050b85635344d0 | |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz | |
10 $(PKG)_URL := http://icculus.org/physfs/downloads/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := gcc zlib | |
12 | |
13 define $(PKG)_UPDATE | |
14 wget -q -O- 'http://icculus.org/physfs/downloads/?M=D' | \ | |
15 $(SED) -n 's,.*<a href="physfs-\([0-9][^"]*\)\.tar.*,\1,pI' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 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
|
20 cd '$(1)' && cmake . \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
21 -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
|
22 -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
|
23 -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
|
24 -DPHYSFS_BUILD_TEST=FALSE \ |
1707
4e48476ea587
fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents:
1701
diff
changeset
|
25 -DPHYSFS_BUILD_WX_TEST=FALSE |
1615 | 26 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
27 | |
28 '$(TARGET)-gcc' \ | |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1615
diff
changeset
|
29 -W -Wall -Werror -ansi -pedantic -std=c99 \ |
1615 | 30 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-physfs.exe' \ |
31 -lphysfs -lz | |
32 endef |