Mercurial > mxe-octave
annotate src/physfs.mk @ 3338:1e9695b83a80
imported patch msvc-gl2ps-doc
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 29 Nov 2013 18:46:47 -0500 |
parents | 5ef49fb3299d |
children | 13be64f9f16d |
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) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
10 $(PKG)_DEPS := zlib |
1615 | 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 | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
27 '$(MXE_CC)' \ |
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 \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
29 '$(2).c' -o '$(HOST_BINDIR)/test-physfs.exe' \ |
1615 | 30 -lphysfs -lz |
31 endef |