mirror of https://git.wownero.com/dsc/mxe.git
new package: libffi
This commit is contained in:
parent
3502e19071
commit
71d7acb6b1
|
@ -0,0 +1,29 @@
|
|||
# This file is part of mingw-cross-env.
|
||||
# See doc/index.html for further information.
|
||||
|
||||
# libffi
|
||||
PKG := libffi
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 3.0.9
|
||||
$(PKG)_CHECKSUM := 56e41f87780e09d06d279690e53d4ea2c371ea88
|
||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_WEBSITE := http://sourceware.org/$(PKG)/
|
||||
$(PKG)_URL := ftp://sourceware.org/pub/$(PKG)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
wget -q -O- 'http://github.com/atgreen/libffi/downloads' | \
|
||||
grep '<a href="/atgreen/libffi/tarball/' | \
|
||||
$(SED) -n 's,.*href="/atgreen/libffi/tarball/v\([0-9][^"]*\)".*,\1,p' | \
|
||||
head -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
--host='$(TARGET)' \
|
||||
--prefix='$(PREFIX)/$(TARGET)' \
|
||||
--disable-shared
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1)' -j 1 install
|
||||
endef
|
Loading…
Reference in New Issue