view src/libffi.mk @ 3746:0ef36efbd9cd

qt: for cross compile, move the native binaries to the builkd directory * src/qt.mk: instead of installing (TARGET-)qmake, moc,uic,lrease, move the binary to that name. * src/qscintilla.mk: use MXE_QMAKE, MXE_UIC, MXE_MOC. * Makefile.in: define vars MXE_UIC, MXE_MOC
author John Donoghue
date Wed, 26 Nov 2014 15:14:43 -0500
parents d95b8b84cea7
children c85991d2fed4
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := libffi
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.1
$(PKG)_CHECKSUM := cb373ef2115ec7c57913b84ca72eee14b10ccdc3
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := ftp://sourceware.org/pub/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS     :=

define $(PKG)_UPDATE
    $(WGET) -q -O- 'https://github.com/atgreen/libffi/tags' | \
    grep '<a href="/atgreen/libffi/archive/' | \
    $(SED) -n 's,.*href="/atgreen/libffi/archive/v\([0-9][^"]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        --prefix='$(HOST_PREFIX)' \
        $(ENABLE_SHARED_OR_STATIC) \
	&& $(CONFIGURE_POST_HOOK)
    $(MAKE) -C '$(1)/$(TARGET)' -j '$(JOBS)'
    $(MAKE) -C '$(1)/$(TARGET)' -j 1 install DESTDIR='$(3)'

endef