annotate src/libffi.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents 4d0f3a9da57e
children 100e618349f7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
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 PKG := libffi
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2441
17669944fd2f update package libffi
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
6 $(PKG)_CHECKSUM := bff6a6c886f90ad5e30dee0b46676e8e0297d81d
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := ftp://sourceware.org/pub/$(PKG)/$($(PKG)_FILE)
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2441
diff changeset
13 $(WGET) -q -O- 'https://github.com/atgreen/libffi/tags' | \
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<a href="/atgreen/libffi/tarball/' | \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*href="/atgreen/libffi/tarball/v\([0-9][^"]*\)".*,\1,p' | \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --prefix='$(PREFIX)/$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
23 $(ENABLE_SHARED_OR_STATIC)
1991
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
24 $(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
25 $(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
26
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
27 '$(TARGET)-gcc' \
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
28 -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
29 '$(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
30 `'$(TARGET)-pkg-config' libffi --cflags --libs`
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef