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
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}/
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}))
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
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