madwifi: put an upper limit on the amount of sampling that minstrel should do when
[openwrt.git] / package / ncurses / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ncurses
12 PKG_VERSION:=5.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/ncurses
17 PKG_MD5SUM:=b6593abe1089d6aab1551c105c9300e3
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libncurses
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Terminal handling library
25 URL:=http://www.gnu.org/software/ncurses/
26 endef
27
28 define Build/Configure
29 endef
30
31 define Build/Compile
32 rm -rf $(PKG_INSTALL_DIR)
33 mkdir -p $(PKG_INSTALL_DIR)
34 -$(MAKE) -C $(PKG_BUILD_DIR) distclean
35 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
36 CONFIG_SITE="" \
37 ./configure \
38 --target=$(GNU_HOST_NAME) \
39 --host=$(GNU_HOST_NAME) \
40 --build=$(GNU_HOST_NAME) \
41 --program-prefix="" \
42 --program-suffix="" \
43 --prefix=/usr \
44 --exec-prefix=/usr \
45 --bindir=/usr/bin \
46 --datadir=/usr/share \
47 --includedir=/usr/include \
48 --infodir=/usr/share/info \
49 --libdir=/usr/lib \
50 --libexecdir=/usr/lib \
51 --localstatedir=/var \
52 --mandir=/usr/share/man \
53 --sbindir=/usr/sbin \
54 --sysconfdir=/etc \
55 $(DISABLE_NLS) \
56 $(DISABLE_LARGEFILE) \
57 --enable-echo \
58 --enable-const \
59 --enable-overwrite \
60 --disable-rpath \
61 --without-ada \
62 --without-cxx \
63 --without-cxx-binding \
64 --without-debug \
65 --without-profile \
66 --with-progs \
67 --with-normal \
68 --without-shared \
69 --with-terminfo-dirs=/usr/share/terminfo \
70 --with-default-terminfo-dir=/usr/share/terminfo \
71 );
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 DESTDIR="$(PKG_INSTALL_DIR)" \
74 libs install.progs
75 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
76 $(TARGET_CONFIGURE_OPTS) \
77 CFLAGS="$(TARGET_CFLAGS)" \
78 CPPFLAGS="$(TARGET_CPPFLAGS)" \
79 LDFLAGS="$(TARGET_LDFLAGS)" \
80 ./configure \
81 --target=$(GNU_TARGET_NAME) \
82 --host=$(GNU_TARGET_NAME) \
83 --build=$(GNU_HOST_NAME) \
84 --program-prefix="" \
85 --program-suffix="" \
86 --prefix=/usr \
87 --exec-prefix=/usr \
88 --bindir=/usr/bin \
89 --datadir=/usr/share \
90 --includedir=/usr/include \
91 --infodir=/usr/share/info \
92 --libdir=/usr/lib \
93 --libexecdir=/usr/lib \
94 --localstatedir=/var \
95 --mandir=/usr/share/man \
96 --sbindir=/usr/sbin \
97 --sysconfdir=/etc \
98 $(DISABLE_NLS) \
99 $(DISABLE_LARGEFILE) \
100 --enable-echo \
101 --enable-const \
102 --enable-overwrite \
103 --disable-rpath \
104 --without-ada \
105 --without-cxx \
106 --without-cxx-binding \
107 --without-debug \
108 --without-profile \
109 --without-progs \
110 --with-normal \
111 --with-shared \
112 --with-terminfo-dirs=/usr/share/terminfo \
113 --with-default-terminfo-dir=/usr/share/terminfo \
114 );
115 rm -f $(PKG_BUILD_DIR)/lib/lib*
116 $(MAKE) -C $(PKG_BUILD_DIR) \
117 $(TARGET_CONFIGURE_OPTS) \
118 BUILD_CC="$(TARGET_CC)" \
119 HOSTCC="$(HOSTCC)" \
120 HOSTCCFLAGS="" \
121 DESTDIR="$(PKG_INSTALL_DIR)" \
122 libs install.libs install.data
123 endef
124
125 define Package/libncurses/install
126 $(INSTALL_DIR) $(1)/usr/lib
127 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}*.so.* $(1)/usr/lib/
128 $(INSTALL_DIR) $(1)/usr/share/terminfo
129 (cd $(PKG_INSTALL_DIR)/usr/share/terminfo; \
130 for dir in ??; do \
131 [ -d "$$$$dir" ] || continue; \
132 mv $$$$dir $$$$(echo -ne "\x$$$$dir"); \
133 done \
134 )
135 for file in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 x/xterm x/xterm-color; do \
136 $(INSTALL_DIR) $(1)/usr/share/terminfo/`dirname $$$$file`; \
137 $(CP) $(PKG_INSTALL_DIR)/usr/share/terminfo/$$$$file \
138 $(1)/usr/share/terminfo/$$$$file; \
139 done
140 endef
141
142 define Build/InstallDev
143 mkdir -p $(1)/usr/include
144 $(CP) $(PKG_INSTALL_DIR)/usr/include/curses.h $(1)/usr/include/
145 $(CP) $(PKG_INSTALL_DIR)/usr/include/ncurses.h $(1)/usr/include/
146 $(CP) $(PKG_INSTALL_DIR)/usr/include/ncurses_dll.h $(1)/usr/include/
147 $(CP) $(PKG_INSTALL_DIR)/usr/include/menu.h $(1)/usr/include/
148 $(CP) $(PKG_INSTALL_DIR)/usr/include/panel.h $(1)/usr/include/
149 $(CP) $(PKG_INSTALL_DIR)/usr/include/term{,cap}.h $(1)/usr/include/
150 $(CP) $(PKG_INSTALL_DIR)/usr/include/unctrl.h $(1)/usr/include/
151 $(CP) $(PKG_INSTALL_DIR)/usr/include/form.h $(1)/usr/include/
152 $(CP) $(PKG_INSTALL_DIR)/usr/include/eti.h $(1)/usr/include/
153 mkdir -p $(1)/usr/lib
154 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurses.so $(1)/usr/lib/
155 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}.{a,so*} $(1)/usr/lib/
156 endef
157
158 $(eval $(call BuildPackage,libncurses))
This page took 0.055046 seconds and 5 git commands to generate.