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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1615
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
2 # See doc/index.html for further information.
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
3
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
4 # physfs
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
5 PKG := physfs
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
7 $(PKG)_VERSION := 2.0.2
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 2d3d3cc819ad26542d34451f44050b85635344d0
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://icculus.org/physfs/
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
12 $(PKG)_URL := http://icculus.org/physfs/downloads/$($(PKG)_FILE)
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc zlib
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
14
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
16 wget -q -O- 'http://icculus.org/physfs/downloads/?M=D' | \
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
17 $(SED) -n 's,.*<a href="physfs-\([0-9][^"]*\)\.tar.*,\1,pI' | \
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
18 head -1
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
19 endef
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
20
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
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
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
30
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
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
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
33 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-physfs.exe' \
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
34 -lphysfs -lz
0ea7263be430 new package physfs
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
35 endef