Add picocom package, move serial comm. stuff to its section in Config.in
[openwrt.git] / package / libffi-sable / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libffi-sable
6 PKG_VERSION:=3325
7 PKG_RELEASE:=3
8 PKG_MD5SUM:=0c32eaaea0269c5fbe156fcd0be3e5bd
9
10 PKG_SOURCE_URL:=http://sablevm.org/download/snapshot/2005-01-21/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 BR2_PACKAGE_LIBFFI_SABLE=m
20
21 $(eval $(call PKG_template,LIBFFI_SABLE,libffi-sable,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
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" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --enable-static \
51 --disable-debug \
52 );
53 touch $@
54
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)" \
60 all install
61 touch $@
62
63 $(IPKG_LIBFFI_SABLE):
64 install -m0755 -d $(IDIR_LIBFFI_SABLE)/usr/lib
65 cp -fpR $(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)
68
69 $(STAGING_DIR)/usr/lib/libffi.so: $(PKG_BUILD_DIR)/.built
70 mkdir -p $(STAGING_DIR)/usr/include
71 cp -fpR $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(STAGING_DIR)/usr/include/
72 mkdir -p $(STAGING_DIR)/usr/lib
73 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(STAGING_DIR)/usr/lib/
74 touch $@
75
76 install-dev: $(STAGING_DIR)/usr/lib/libffi.so
77
78 uninstall-dev:
79 rm -rf \
80 $(STAGING_DIR)/usr/include/ffi{,target}.h \
81 $(STAGING_DIR)/usr/lib/libffi.{a,so*} \
82
83 compile: install-dev
84 clean: uninstall-dev
This page took 0.04177 seconds and 5 git commands to generate.