annotate src/libffi.mk @ 2318:4ca47331936d

package libffi: fix update macro
author LM <lmemsm@gmail.com>
date Sun, 25 Mar 2012 23:08:30 +1100
parents 009e1aaa8949
children f653602a0500
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # See doc/index.html for further information.
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # libffi
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := libffi
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1971
ffed90770a93 binutils glew imagemagick libffi x264
Mark Brand <mabrand@mabrand.nl>
parents: 1845
diff changeset
7 $(PKG)_VERSION := 3.0.10
ffed90770a93 binutils glew imagemagick libffi x264
Mark Brand <mabrand@mabrand.nl>
parents: 1845
diff changeset
8 $(PKG)_CHECKSUM := 97abf70e6a6d315d9259d58ac463663051d471e1
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://sourceware.org/$(PKG)/
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := ftp://sourceware.org/pub/$(PKG)/$($(PKG)_FILE)
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
2318
4ca47331936d package libffi: fix update macro
LM <lmemsm@gmail.com>
parents: 2086
diff changeset
16 wget -q --no-check-certificate -O- 'https://github.com/atgreen/libffi/tags' | \
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<a href="/atgreen/libffi/tarball/' | \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*href="/atgreen/libffi/tarball/v\([0-9][^"]*\)".*,\1,p' | \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --host='$(TARGET)' \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-shared
1991
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
27 $(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
28 $(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
29
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
30 '$(TARGET)-gcc' \
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
31 -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
32 '$(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
33 `'$(TARGET)-pkg-config' libffi --cflags --libs`
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef