2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/ncurses
16 PKG_MD5SUM
:=cce05daf61a64501ef6cd8da1f727ec6
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libncurses
23 TITLE
:=Terminal handling library
24 URL
:=http
://www.gnu.org
/software
/ncurses
/
27 TARGET_CFLAGS
+= $(FPIC
)
36 --without-cxx-binding \
42 --with-terminfo-dirs
=/usr
/share
/terminfo \
43 --with-default-terminfo-dir
=/usr
/share
/terminfo
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 $(TARGET_CONFIGURE_OPTS
) \
48 BUILD_CC
="$(HOSTCC)" \
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 libs
install.libs
install.data
55 define Package
/libncurses
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
,menu
,form
}*.so.
* $(1)/usr
/lib
/
58 $(INSTALL_DIR
) $(1)/usr
/share
/terminfo
59 (cd
$(PKG_INSTALL_DIR
)/usr
/share
/terminfo
; \
61 [ -d
"$$$$dir" ] || continue
; \
62 mv
$$$$dir $$$$(echo
-ne
"\x$$$$dir"); \
65 for file in a
/ansi d
/dumb l
/linux r
/rxvt r
/rxvt-unicode s
/screen v
/vt100 v
/vt102 x
/xterm x
/xterm-color
; do \
66 $(INSTALL_DIR
) $(1)/usr
/share
/terminfo
/`dirname $$$$file`; \
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/terminfo
/$$$$file \
68 $(1)/usr
/share
/terminfo
/$$$$file; \
72 define Build
/InstallDev
73 mkdir
-p
$(1)/usr
/include
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/curses.h
$(1)/usr
/include/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ncurses.h
$(1)/usr
/include/
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ncurses_dll.h
$(1)/usr
/include/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/menu.h
$(1)/usr
/include/
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/panel.h
$(1)/usr
/include/
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/term
{,cap
}.h
$(1)/usr
/include/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/unctrl.h
$(1)/usr
/include/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/form.h
$(1)/usr
/include/
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/eti.h
$(1)/usr
/include/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libcurses.so
$(1)/usr
/lib
/
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
,menu
,form
}.
{a
,so
*} $(1)/usr
/lib
/
88 $(eval
$(call BuildPackage
,libncurses
))