3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0c32eaaea0269c5fbe156fcd0be3e5bd
10 PKG_SOURCE_URL
:=http
://sablevm.org
/download
/snapshot
/2005-01-21/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 BR2_PACKAGE_LIBFFI_SABLE
=m
21 $(eval
$(call PKG_template
,LIBFFI_SABLE
,libffi-sable
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
55 $(PKG_BUILD_DIR
)/.built
:
56 rm -rf
$(PKG_INSTALL_DIR
)
57 mkdir
-p
$(PKG_INSTALL_DIR
)
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 DESTDIR
="$(PKG_INSTALL_DIR)" \
64 install -m0755
-d
$(IDIR_LIBFFI_SABLE
)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.so.
* $(IDIR_LIBFFI_SABLE
)/usr
/lib
/
66 $(RSTRIP
) $(IDIR_LIBFFI_SABLE
)
67 $(IPKG_BUILD
) $(IDIR_LIBFFI_SABLE
) $(PACKAGE_DIR
)
69 $(STAGING_DIR
)/usr
/lib
/libffi.so
: $(PKG_BUILD_DIR
)/.built
70 mkdir
-p
$(STAGING_DIR
)/usr
/include
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ffi
{,target
}.h
$(STAGING_DIR
)/usr
/include/
72 mkdir
-p
$(STAGING_DIR
)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
76 install-dev
: $(STAGING_DIR
)/usr
/lib
/libffi.so
80 $(STAGING_DIR
)/usr
/include/ffi
{,target
}.h \
81 $(STAGING_DIR
)/usr
/lib
/libffi.
{a
,so
*} \
83 compile-targets
: install-dev
84 clean-targets
: uninstall-dev