Date:2010-11-12 21:10:21 (13 years 4 months ago)
Author:kyak
Commit:c9435fb08de2f3c85d3d96d401a67e832a1467a3
Message:add libncursesw package

Files: ncurses/Makefile (1 diff)
ncurses/patches/100-ncurses-5.6-20080112-urxvt.patch (1 diff)
ncurses/patches/101-ncurses-5.6-20080628-kbs.patch (1 diff)
ncurses/patches/500-cross.patch (1 diff)
ncurses/patches/900-terminfo.patch (1 diff)

Change Details

ncurses/Makefile
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ncurses
11PKG_VERSION:=5.7
12PKG_RELEASE:=3
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@GNU/ncurses
17PKG_MD5SUM:=cce05daf61a64501ef6cd8da1f727ec6
18
19PKG_INSTALL:=1
20PKG_BUILD_PARALLEL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/libncurses
25  SECTION:=libs
26  CATEGORY:=Libraries
27  TITLE:=Terminal handling library
28  URL:=http://www.gnu.org/software/ncurses/
29  VARIANT:=libncurses
30endef
31
32define Package/libncursesw
33  SECTION:=libs
34  CATEGORY:=Libraries
35  TITLE:=Terminal handling library (Unicode)
36  URL:=http://www.gnu.org/software/ncurses/
37  DEPENDS:=libncurses
38  VARIANT:=libncursesw
39endef
40
41TARGET_CFLAGS += $(FPIC)
42
43CONFIGURE_ARGS += \
44    --enable-echo \
45    --enable-const \
46    --enable-overwrite \
47    --disable-rpath \
48    --without-ada \
49    --without-cxx \
50    --without-cxx-binding \
51    --without-debug \
52    --without-profile \
53    --without-progs \
54    --with-normal \
55    --with-shared \
56    --with-terminfo-dirs=/usr/share/terminfo \
57    --with-default-terminfo-dir=/usr/share/terminfo
58
59ifeq ($(BUILD_VARIANT),libncursesw)
60    CONFIGURE_ARGS += \
61        --enable-widec \
62        --with-build-cppflags=-D_GNU_SOURCE
63endif
64
65MAKE_FLAGS += \
66    BUILD_CC="$(HOSTCC)" \
67    HOSTCC="$(HOSTCC)" \
68    HOSTCCFLAGS="" \
69    libs
70
71define Build/Install/Default
72    $(MAKE_VARS) \
73    $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
74        $(MAKE_INSTALL_FLAGS) \
75        $(1) install.libs install.data;
76endef
77
78define Package/libncurses/install
79    $(INSTALL_DIR) $(1)/usr/lib
80    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{curses,ncurses,panel,menu,form}.so* $(1)/usr/lib/
81    $(INSTALL_DIR) $(1)/usr/share/terminfo
82    (cd $(PKG_INSTALL_DIR)/usr/share/terminfo; \
83        for dir in ??; do \
84            [ -d "$$$$dir" ] || continue; \
85            mv $$$$dir $$$$(echo -ne "\x$$$$dir"); \
86        done \
87    )
88    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 \
89        $(INSTALL_DIR) $(1)/usr/share/terminfo/`dirname $$$$file`; \
90        $(CP) $(PKG_INSTALL_DIR)/usr/share/terminfo/$$$$file \
91            $(1)/usr/share/terminfo/$$$$file; \
92    done
93endef
94
95define Package/libncursesw/install
96    $(INSTALL_DIR) $(1)/usr/lib
97    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}w.so* $(1)/usr/lib/
98endef
99
100ifeq ($(BUILD_VARIANT),libncursesw)
101define Build/InstallDev
102    $(INSTALL_DIR) $(1)/usr/include/ncursesw/
103    $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ncursesw/
104
105    $(INSTALL_DIR) $(1)/usr/lib
106    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}w.{a,so*} $(1)/usr/lib/
107endef
108else
109define Build/InstallDev
110    $(INSTALL_DIR) $(1)/usr/include
111    $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
112
113    $(INSTALL_DIR) $(1)/usr/lib
114    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{curses,ncurses,panel,menu,form}.{a,so*} $(1)/usr/lib/
115endef
116endif
117
118$(eval $(call BuildPackage,libncurses))
119$(eval $(call BuildPackage,libncursesw))
ncurses/patches/100-ncurses-5.6-20080112-urxvt.patch
1--- a/misc/terminfo.src
2@@ -3965,6 +3965,172 @@ rxvt-cygwin-native|rxvt terminal emulato
3 rxvt-16color|xterm with 16 colors like aixterm,
4     ncv#32, use=ibm+16color, use=rxvt,
5
6+# rxvt-unicode
7+# http://cvs.schmorp.de/rxvt-unicode/doc/etc/rxvt-unicode.terminfo?revision=1.20
8+# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
9+# Updated: Özgür Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
10+# Updated: Marc Lehmann <pcg@goof.com>, 17 Feb 2005
11+rxvt-unicode|rxvt-unicode terminal (X Window System),
12+ am,
13+ bce,
14+ eo,
15+ km,
16+ msgr,
17+ xenl,
18+ hs,
19+ cols#80,
20+ it#8,
21+ lines#24,
22+ acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~-A.B+C\,D0EhFiG,
23+ bel=^G,
24+ blink=\E[5m,
25+ bold=\E[1m,
26+ civis=\E[?25l,
27+ clear=\E[H\E[2J,
28+ cnorm=\E[?25h,
29+ cr=^M,
30+ csr=\E[%i%p1%d;%p2%dr,
31+ cub=\E[%p1%dD,
32+ cub1=^H,
33+ cud=\E[%p1%dB,
34+ cud1=^J,
35+ cuf=\E[%p1%dC,
36+ cuf1=\E[C,
37+ cup=\E[%i%p1%d;%p2%dH,
38+ cuu=\E[%p1%dA,
39+ cuu1=\E[A,
40+ cvvis=\E[?25h,
41+ dch=\E[%p1%dP,
42+ dch1=\E[P,
43+ dl=\E[%p1%dM,
44+ dl1=\E[M,
45+ ed=\E[J,
46+ el=\E[K,
47+ el1=\E[1K,
48+ flash=\E[?5h$<20/>\E[?5l,
49+ home=\E[H,
50+ hpa=\E[%i%p1%dG,
51+ ht=^I,
52+ hts=\EH,
53+ ich=\E[%p1%d@,
54+ ich1=\E[@,
55+ il=\E[%p1%dL,
56+ il1=\E[L,
57+ ind=^J,
58+ is1=\E[?47l\E=\E[?1l,
59+ is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
60+ kDC=\E[3$,
61+ kIC=\E2$,
62+ kEND=\E[8$,
63+ kHOM=\E[7$,
64+ kLFT=\E[d,
65+ kNXT=\E[6$,
66+ kPRV=\E[5$,
67+ kRIT=\E[c,
68+ kbs=\177,
69+ ka1=\EOw,
70+ ka3=\EOy,
71+ kb2=\EOu,
72+ kc1=\EOq,
73+ kc3=\EOs,
74+ kcbt=\E[Z,
75+ kcub1=\E[D,
76+ kcud1=\E[B,
77+ kcuf1=\E[C,
78+ kcuu1=\E[A,
79+ kdch1=\E[3~,
80+ kel=\E[8\^,
81+ kend=\E[8~,
82+ kent=\EOM,
83+ kf1=\E[11~,
84+ kf10=\E[21~,
85+ kf11=\E[23~,
86+ kf12=\E[24~,
87+ kf13=\E[25~,
88+ kf14=\E[26~,
89+ kf15=\E[28~,
90+ kf16=\E[29~,
91+ kf17=\E[31~,
92+ kf18=\E[32~,
93+ kf19=\E[33~,
94+ kf2=\E[12~,
95+ kf20=\E[34~,
96+ kf3=\E[13~,
97+ kf4=\E[14~,
98+ kf5=\E[15~,
99+ kf6=\E[17~,
100+ kf7=\E[18~,
101+ kf8=\E[19~,
102+ kf9=\E[20~,
103+ kfnd=\E[1~,
104+ khome=\E[7~,
105+ kich1=\E[2~,
106+ kmous=\E[M,
107+ knp=\E[6~,
108+ kpp=\E[5~,
109+ kslt=\E[4~,
110+ rc=\E8,
111+ rev=\E[7m,
112+ ri=\EM,
113+ rmso=\E[27m,
114+ rmul=\E[24m,
115+ rs1=\Ec,
116+ rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
117+ sgr0=\E[m\017,
118+ enacs=,
119+ smacs=\E(0,
120+ rmacs=\E(B,
121+ smso=\E[7m,
122+ smul=\E[4m,
123+ tbc=\E[3g,
124+ vpa=\E[%i%p1%dd,
125+ colors#88,
126+ pairs#256,
127+ btns#5,
128+ lm#0,
129+ ccc,
130+ npc,
131+ mc5i,
132+ ncv#0,
133+ mir,
134+ xon,
135+ bw,
136+ ech=\E[%p1%dX,
137+ mc0=\E[i,
138+ mc4=\E[4i,
139+ mc5=\E[5i,
140+ sitm=\E[3m,
141+ ritm=\E[23m,
142+ smam=\E[?7h,
143+ rmam=\E[?7l,
144+ smir=\E[4h,
145+ rmir=\E[4l,
146+ smcup=\E[?1049h,
147+ rmcup=\E[r\E[?1049l,
148+ smkx=\E=,
149+ rmkx=\E>,
150+ indn=\E[%p1%dS,
151+ rin=\E[%p1%dT,
152+ sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
153+ op=\E[39;49m,
154+ setaf=\E[38;5;%p1%dm,
155+ setab=\E[48;5;%p1%dm,
156+ setf=%?%p1%{7}%>%t\E[38;5;%p1%dm%e\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
157+ setb=%?%p1%{7}%>%t\E[48;5;%p1%dm%e\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
158+ initc=\E]4;%p1%d;rgb\:%p2%{65535}%*%{1000}%/%4.4X/%p3%{65535}%*%{1000}%/%4.4X/%p4%{65535}%*%{1000}%/%4.4X\E\\,
159+ sc=\E7,
160+ s0ds=\E(B,
161+ s1ds=\E(0,
162+ s2ds=\E*B,
163+ s3ds=\E+B,
164+ u6=\E[%i%d;%dR,
165+ u7=\E[6n,
166+ u8=\E[?1;2c,
167+ u9=\E[c,
168+ tsl=\E]2;,
169+ fsl=\007,
170+ dsl=\E]2;\007,
171+
172 # mrxvt 0.5.3
173 #
174 # mrxvt is based on rxvt 2.7.11, but has by default XTERM_FKEYS defined, which
ncurses/patches/101-ncurses-5.6-20080628-kbs.patch
1--- a/misc/terminfo.src
2@@ -3054,6 +3054,7 @@ xterm-xfree86|xterm terminal emulator (X
3 # This version reflects the current xterm features.
4 xterm-new|modern xterm terminal emulator,
5     npc,
6+ kbs=\177,
7     indn=\E[%p1%dS, kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H,
8     kIC=\E[2;2~, kNXT=\E[6;2~, kPRV=\E[5;2~, kb2=\EOE,
9     kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
10@@ -3818,6 +3819,7 @@ mlterm+pcfkeys|fragment for PC-style fke
11 rxvt-basic|rxvt terminal base (X Window System),
12     OTbs, am, bce, eo, mir, msgr, xenl, xon,
13     cols#80, it#8, lines#24,
14+ kbs=\177,
15     acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16     bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
17     clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
18@@ -3828,7 +3830,7 @@ rxvt-basic|rxvt terminal base (X Window
19     enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, ht=^I,
20     hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
21     ind=^J, is1=\E[?47l\E=\E[?1l,
22- is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^H,
23+ is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
24     kcbt=\E[Z, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
25     rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
26     rmul=\E[24m,
27@@ -4541,6 +4543,7 @@ eterm|gnu emacs term.el terminal emulati
28 screen|VT 100/ANSI X3.64 virtual terminal,
29     OTbs, OTpt, am, km, mir, msgr, xenl, G0,
30     colors#8, cols#80, it#8, lines#24, pairs#64,
31+ kbs=\177,
32     acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
33     bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
34     clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
35@@ -4550,7 +4553,7 @@ screen|VT 100/ANSI X3.64 virtual termina
36     cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
37     dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
38     flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
39- il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcbt=\E[Z,
40+ il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kcbt=\E[Z,
41     kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
42     kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
43     kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
44@@ -4655,6 +4658,7 @@ screen.xterm-r6|screen customized for X1
45 # on Solaris because Sun's curses implementation gets confused.
46 screen.teraterm|disable ncv in teraterm,
47     ncv#127,
48+ kbs=^H,
49     acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
50     use=screen+fkeys, use=screen,
51 # Other terminals
ncurses/patches/500-cross.patch
1--- a/aclocal.m4
2@@ -4298,7 +4298,7 @@ CF_EOF
3             EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
4         fi
5         CF_SHARED_SONAME
6- MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $[@]'
7+ MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,$(LDFLAGS) -lc -o $[@]'
8         ;;
9     openbsd[[2-9]].*)
10         if test "$DFT_LWR_MODEL" = "shared" ; then
ncurses/patches/900-terminfo.patch
1--- a/misc/terminfo.src
2@@ -3707,12 +3707,11 @@ konsole-xf3x|KDE console window with key
3 # The value for kbs reflects local customization rather than the settings used
4 # for XFree86 xterm.
5 konsole-xf4x|KDE console window with keyboard for XFree86 4.x xterm,
6- kend=\EOF, khome=\EOH, use=konsole+pcfkeys,
7- use=konsole-vt100,
8-# Konsole does not implement shifted cursor-keys.
9-konsole+pcfkeys|konsole subset of xterm+pcfkeys,
10- kLFT@, kRIT@, kcbt=\E[Z, kind@, kri@, kDN@, kUP@, use=xterm+pcc2,
11- use=xterm+pcf0,
12+ kend=\EOF, kf1=\EOP, kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R,
13+ kf16=\EO2S, kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
14+ kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
15+ kf23=\E[23;2~, kf24=\E[24;2~, kf3=\EOR, kf4=\EOS,
16+ khome=\EOH, use=konsole-vt100,
17 # KDE's "vt100" keyboard has no relationship to any terminal that DEC made, but
18 # it is still useful for deriving the other entries.
19 konsole-vt100|KDE console window with vt100 (sic) keyboard,

Archive Download the corresponding diff file



interactive