source: freewrt/package/readline/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= readline
10PKG_VERSION:= 5.0
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 9a39d15f1ed592883f8c6671e8c13120
13
14PKG_SOURCE_URL:= @GNU/readline
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,LIBREADLINE,libreadline,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(strip $(TARGET_CFLAGS))" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 --disable-nls \
46 --enable-shared \
47 --enable-static \
48 --with-curses \
49 );
50 touch $@
51
52$(WRKBUILD)/.built:
53 $(MAKE) -C $(WRKBUILD) \
54 DESTDIR="$(WRKINST)" \
55 all install
56 touch $@
57
58$(IPKG_LIBREADLINE):
59 $(INSTALL_DIR) $(IDIR_LIBREADLINE)/usr/lib
60 $(INSTALL_DATA) $(WRKINST)/usr/lib/libhistory.so.* \
61 $(IDIR_LIBREADLINE)/usr/lib/
62 $(INSTALL_DATA) $(WRKINST)/usr/lib/libreadline.so.* \
63 $(IDIR_LIBREADLINE)/usr/lib/
64 $(RSTRIP) $(IDIR_LIBREADLINE)
65 $(IPKG_BUILD) $(IDIR_LIBREADLINE) $(PACKAGE_DIR)
66
67$(STAGING_DIR)/usr/lib/libreadline.so: $(WRKBUILD)/.built
68 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/readline
69 $(INSTALL_DATA) $(WRKINST)/usr/include/readline/* \
70 $(STAGING_DIR)/usr/include/readline
71 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
72 $(INSTALL_DATA) $(WRKINST)/usr/lib/libhistory.a \
73 $(STAGING_DIR)/usr/lib/
74 $(INSTALL_DATA) $(WRKINST)/usr/lib/libhistory.so* \
75 $(STAGING_DIR)/usr/lib/
76 $(INSTALL_DATA) $(WRKINST)/usr/lib/libreadline.a \
77 $(STAGING_DIR)/usr/lib/
78 $(INSTALL_DATA) $(WRKINST)/usr/lib/libreadline.so* \
79 $(STAGING_DIR)/usr/lib/
80
81install-dev: $(STAGING_DIR)/usr/lib/libreadline.so
82
83uninstall-dev:
84 rm -rf \
85 $(STAGING_DIR)/usr/include/readline \
86 $(STAGING_DIR)/usr/lib/libhistory.a \
87 $(STAGING_DIR)/usr/lib/libhistory.so* \
88 $(STAGING_DIR)/usr/lib/libreadline.a \
89 $(STAGING_DIR)/usr/lib/libreadline.so*
90
91compile-targets: install-dev
92clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.