source: freewrt/package/libffi-sable/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[475ad56]1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=libffi-sable
6PKG_VERSION:=3325
7PKG_RELEASE:=3
8PKG_MD5SUM:=0c32eaaea0269c5fbe156fcd0be3e5bd
9
10PKG_SOURCE_URL:=http://sablevm.org/download/snapshot/2005-01-21/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT:=zcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(TOPDIR)/package/rules.mk
18
19BR2_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 \
[c57fbc9]47 --enable-largefile \
48 --disable-nls \
[475ad56]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) $(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) $(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/
74 touch $@
75
76install-dev: $(STAGING_DIR)/usr/lib/libffi.so
77
78uninstall-dev:
79 rm -rf \
80 $(STAGING_DIR)/usr/include/ffi{,target}.h \
81 $(STAGING_DIR)/usr/lib/libffi.{a,so*} \
82
83compile-targets: install-dev
84clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.