annotate src/libffi.mk @ 3310:a606177f2057

Support file listing for libffi and llvm. * src/libffi.mk: Use DESTDIR during install. * src/llvm.mk: Use DESTDIR during install. Create installation directory for build tools.
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 11 Nov 2013 11:03:06 -0500
parents 1a25ea16434b
children 13be64f9f16d
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS :=
869
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 \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
22 --prefix='$(HOST_PREFIX)' \
3131
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 && $(CONFIGURE_POST_HOOK)
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)'
3310
a606177f2057 Support file listing for libffi and llvm.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3131
diff changeset
26 $(MAKE) -C '$(1)/$(TARGET)' -j 1 install DESTDIR='$(3)'
1991
5d0f5094fb66 package libffi: bugfix for build directory and add test program
Tony Theodore <tonyt@logyst.com>
parents: 1971
diff changeset
27
3131
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
28 if [ $(MXE_SYSTEM) != msvc ]; then \
3310
a606177f2057 Support file listing for libffi and llvm.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3131
diff changeset
29 PKG_CONFIG_PATH='$(3)$(HOST_PREFIX)/lib/pkgconfig' \
3131
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 '$(MXE_CC)' \
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31 -W -Wall -Werror -std=c99 -pedantic \
3310
a606177f2057 Support file listing for libffi and llvm.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3131
diff changeset
32 '$(2).c' -o '$(3)$(HOST_BINDIR)/test-libffi.exe' \
3131
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 `'$(MXE_PKG_CONFIG)' libffi --cflags --libs`; \
1a25ea16434b [MSVC] enable libffi compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 fi
869
b96e4593c968 new package: libffi
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 endef