Mercurial > mxe-octave
annotate src/libffi.mk @ 2353:99516e73b368
Move doc/index.html -> index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 12:14:15 +0200 |
parents | f48c5b085a38 |
children | b5321bdec505 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2318
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. |
869 | 3 |
4 # libffi | |
5 PKG := libffi | |
6 $(PKG)_IGNORE := | |
1971
ffed90770a93
binutils glew imagemagick libffi x264
Mark Brand <mabrand@mabrand.nl>
parents:
1845
diff
changeset
|
7 $(PKG)_CHECKSUM := 97abf70e6a6d315d9259d58ac463663051d471e1 |
869 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := ftp://sourceware.org/pub/$(PKG)/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := gcc | |
12 | |
13 define $(PKG)_UPDATE | |
2318 | 14 wget -q --no-check-certificate -O- 'https://github.com/atgreen/libffi/tags' | \ |
869 | 15 grep '<a href="/atgreen/libffi/tarball/' | \ |
16 $(SED) -n 's,.*href="/atgreen/libffi/tarball/v\([0-9][^"]*\)".*,\1,p' | \ | |
17 head -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
21 cd '$(1)' && ./configure \ | |
22 --host='$(TARGET)' \ | |
23 --prefix='$(PREFIX)/$(TARGET)' \ | |
24 --disable-shared | |
1991
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
25 $(MAKE) -C '$(1)/$(TARGET)' -j '$(JOBS)' |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
26 $(MAKE) -C '$(1)/$(TARGET)' -j 1 install |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
27 |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
28 '$(TARGET)-gcc' \ |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
29 -W -Wall -Werror -std=c99 -pedantic \ |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
30 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libffi.exe' \ |
5d0f5094fb66
package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1971
diff
changeset
|
31 `'$(TARGET)-pkg-config' libffi --cflags --libs` |
869 | 32 endef |