libunwind: update to 1.8.1
[openadk.git] / package / libffi / Makefile
blobc6cfe64e94c39e15d7df0388292fc99c0f8f8e84
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= libffi
7 PKG_VERSION:= 3.4.6
8 PKG_RELEASE:= 1
9 PKG_HASH:= b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e
10 PKG_DESCR:= foreign function interface library
11 PKG_SECTION:= libs/misc
12 HOST_BUILDDEP:= libtool-host
13 PKG_URL:= http://sourceware.org/libffi/
14 PKG_SITES:= https://github.com/libffi/libffi/releases/download/v${PKG_VERSION}/
15 PKG_OPTS:= dev
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 include ${ADK_TOPDIR}/mk/host.mk
20 include ${ADK_TOPDIR}/mk/package.mk
22 $(eval $(call HOST_template,LIBFFI,libffi,${PKG_VERSION}-${PKG_RELEASE}))
23 $(eval $(call PKG_template,LIBFFI,libffi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
25 HOST_STYLE:= auto
26 HOST_CONFIGURE_ARGS+= --disable-builddir --with-pic --disable-symvers
27 CONFIGURE_ARGS+= --disable-builddir --with-pic --disable-symvers
29 ifeq ($(ADK_PACKAGE_OPENJDK7),y)
30 CONFIGURE_ARGS+= --enable-static
31 endif
33 libffi-install:
34 ${INSTALL_DIR} ${IDIR_LIBFFI}/usr/lib
35 ${CP} ${WRKINST}/usr/lib*/libffi.so* ${IDIR_LIBFFI}/usr/lib
37 include ${ADK_TOPDIR}/mk/host-bottom.mk
38 include ${ADK_TOPDIR}/mk/pkg-bottom.mk