curses 1.3.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +19 -0
  3. data/.github/workflows/ubuntu.yml +26 -0
  4. data/.github/workflows/windows.yml +25 -0
  5. data/History.md +34 -0
  6. data/README.md +14 -46
  7. data/Rakefile +0 -86
  8. data/curses.gemspec +2 -3
  9. data/ext/curses/curses.c +70 -58
  10. data/ext/curses/extconf.rb +134 -21
  11. data/lib/curses.rb +5 -12
  12. data/sample/addch.rb +16 -0
  13. data/sample/attr_demo.rb +32 -0
  14. data/sample/colors.rb +26 -0
  15. data/sample/menu.rb +3 -3
  16. data/sample/mouse_move.rb +75 -0
  17. data/vendor/PDCurses/.gitignore +47 -0
  18. data/vendor/PDCurses/.travis.yml +49 -0
  19. data/vendor/PDCurses/CMakeLists.txt +68 -0
  20. data/vendor/PDCurses/HISTORY.md +2036 -0
  21. data/vendor/PDCurses/IMPLEMNT.md +327 -0
  22. data/vendor/PDCurses/README.md +77 -0
  23. data/vendor/PDCurses/acs_defs.h +265 -0
  24. data/vendor/PDCurses/appveyor.yml +218 -0
  25. data/vendor/PDCurses/cmake/README.md +71 -0
  26. data/vendor/PDCurses/cmake/build_dependencies.cmake +178 -0
  27. data/vendor/PDCurses/cmake/build_options.cmake +25 -0
  28. data/vendor/PDCurses/cmake/dll_version.cmake +26 -0
  29. data/vendor/PDCurses/cmake/gen_config_header.cmake +43 -0
  30. data/vendor/PDCurses/cmake/get_version.cmake +17 -0
  31. data/vendor/PDCurses/cmake/make_uninstall.cmake +19 -0
  32. data/vendor/PDCurses/cmake/project_common.cmake +121 -0
  33. data/vendor/PDCurses/cmake/resource.in.cmake +52 -0
  34. data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +83 -0
  35. data/vendor/PDCurses/cmake/target_arch.cmake +36 -0
  36. data/vendor/PDCurses/cmake/version.in.cmake +73 -0
  37. data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +96 -0
  38. data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +106 -0
  39. data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +105 -0
  40. data/vendor/PDCurses/curses.h +1846 -0
  41. data/vendor/PDCurses/curspriv.h +134 -0
  42. data/vendor/PDCurses/demos/README.md +25 -0
  43. data/vendor/PDCurses/demos/firework.c +144 -0
  44. data/vendor/PDCurses/demos/newtest.c +581 -0
  45. data/vendor/PDCurses/demos/ozdemo.c +447 -0
  46. data/vendor/PDCurses/demos/ptest.c +283 -0
  47. data/vendor/PDCurses/demos/rain.c +157 -0
  48. data/vendor/PDCurses/demos/testcurs.c +1607 -0
  49. data/vendor/PDCurses/demos/tui.c +1048 -0
  50. data/vendor/PDCurses/demos/tui.h +65 -0
  51. data/vendor/PDCurses/demos/tuidemo.c +233 -0
  52. data/vendor/PDCurses/demos/version.c +61 -0
  53. data/vendor/PDCurses/demos/worm.c +432 -0
  54. data/vendor/PDCurses/demos/xmas.c +955 -0
  55. data/vendor/PDCurses/dos/CMakeLists.txt +47 -0
  56. data/vendor/PDCurses/dos/Makefile.bcc +83 -0
  57. data/vendor/PDCurses/dos/Makefile.dmc +257 -0
  58. data/vendor/PDCurses/dos/Makefile.msc +113 -0
  59. data/vendor/PDCurses/dos/Makefile.wcc +107 -0
  60. data/vendor/PDCurses/dos/README.md +51 -0
  61. data/vendor/PDCurses/dos/bccdos.lrf +9 -0
  62. data/vendor/PDCurses/dos/mscdos.lrf +50 -0
  63. data/vendor/PDCurses/dos/pdcclip.c +132 -0
  64. data/vendor/PDCurses/dos/pdcdisp.c +135 -0
  65. data/vendor/PDCurses/dos/pdcdos.h +194 -0
  66. data/vendor/PDCurses/dos/pdcgetsc.c +98 -0
  67. data/vendor/PDCurses/dos/pdckbd.c +513 -0
  68. data/vendor/PDCurses/dos/pdcscrn.c +785 -0
  69. data/vendor/PDCurses/dos/pdcsetsc.c +101 -0
  70. data/vendor/PDCurses/dos/pdcutil.c +212 -0
  71. data/vendor/PDCurses/libobjs.mif +26 -0
  72. data/vendor/PDCurses/makedist.mif +20 -0
  73. data/vendor/PDCurses/man/README.md +21 -0
  74. data/vendor/PDCurses/man/intro.md +361 -0
  75. data/vendor/PDCurses/man/manext.c +119 -0
  76. data/vendor/PDCurses/man/sdl.md +152 -0
  77. data/vendor/PDCurses/man/sdl2.md +58 -0
  78. data/vendor/PDCurses/man/x11.md +407 -0
  79. data/vendor/PDCurses/ncurses/CMakeLists.txt +66 -0
  80. data/vendor/PDCurses/ncurses/README.md +26 -0
  81. data/vendor/PDCurses/ncurses/makefile +29 -0
  82. data/vendor/PDCurses/os2/CMakeLists.txt +41 -0
  83. data/vendor/PDCurses/os2/Makefile.bcc +90 -0
  84. data/vendor/PDCurses/os2/Makefile.wcc +43 -0
  85. data/vendor/PDCurses/os2/README.md +43 -0
  86. data/vendor/PDCurses/os2/iccos2.lrf +50 -0
  87. data/vendor/PDCurses/os2/iccos2.mak +256 -0
  88. data/vendor/PDCurses/os2/pdcclip.c +188 -0
  89. data/vendor/PDCurses/os2/pdcdisp.c +93 -0
  90. data/vendor/PDCurses/os2/pdcgetsc.c +89 -0
  91. data/vendor/PDCurses/os2/pdckbd.c +521 -0
  92. data/vendor/PDCurses/os2/pdcos2.h +55 -0
  93. data/vendor/PDCurses/os2/pdcscrn.c +449 -0
  94. data/vendor/PDCurses/os2/pdcsetsc.c +112 -0
  95. data/vendor/PDCurses/os2/pdcutil.c +52 -0
  96. data/vendor/PDCurses/panel.h +56 -0
  97. data/vendor/PDCurses/pdcurses/README.md +25 -0
  98. data/vendor/PDCurses/pdcurses/addch.c +693 -0
  99. data/vendor/PDCurses/pdcurses/addchstr.c +245 -0
  100. data/vendor/PDCurses/pdcurses/addstr.c +240 -0
  101. data/vendor/PDCurses/pdcurses/attr.c +359 -0
  102. data/vendor/PDCurses/pdcurses/beep.c +68 -0
  103. data/vendor/PDCurses/pdcurses/bkgd.c +223 -0
  104. data/vendor/PDCurses/pdcurses/border.c +411 -0
  105. data/vendor/PDCurses/pdcurses/clear.c +159 -0
  106. data/vendor/PDCurses/pdcurses/color.c +298 -0
  107. data/vendor/PDCurses/pdcurses/debug.c +109 -0
  108. data/vendor/PDCurses/pdcurses/delch.c +96 -0
  109. data/vendor/PDCurses/pdcurses/deleteln.c +211 -0
  110. data/vendor/PDCurses/pdcurses/deprec.c +27 -0
  111. data/vendor/PDCurses/pdcurses/getch.c +417 -0
  112. data/vendor/PDCurses/pdcurses/getstr.c +474 -0
  113. data/vendor/PDCurses/pdcurses/getyx.c +139 -0
  114. data/vendor/PDCurses/pdcurses/inch.c +127 -0
  115. data/vendor/PDCurses/pdcurses/inchstr.c +214 -0
  116. data/vendor/PDCurses/pdcurses/initscr.c +367 -0
  117. data/vendor/PDCurses/pdcurses/inopts.c +324 -0
  118. data/vendor/PDCurses/pdcurses/insch.c +271 -0
  119. data/vendor/PDCurses/pdcurses/insstr.c +264 -0
  120. data/vendor/PDCurses/pdcurses/instr.c +246 -0
  121. data/vendor/PDCurses/pdcurses/kernel.c +259 -0
  122. data/vendor/PDCurses/pdcurses/keyname.c +157 -0
  123. data/vendor/PDCurses/pdcurses/mouse.c +438 -0
  124. data/vendor/PDCurses/pdcurses/move.c +57 -0
  125. data/vendor/PDCurses/pdcurses/outopts.c +159 -0
  126. data/vendor/PDCurses/pdcurses/overlay.c +214 -0
  127. data/vendor/PDCurses/pdcurses/pad.c +260 -0
  128. data/vendor/PDCurses/pdcurses/panel.c +633 -0
  129. data/vendor/PDCurses/pdcurses/printw.c +126 -0
  130. data/vendor/PDCurses/pdcurses/refresh.c +279 -0
  131. data/vendor/PDCurses/pdcurses/scanw.c +578 -0
  132. data/vendor/PDCurses/pdcurses/scr_dump.c +213 -0
  133. data/vendor/PDCurses/pdcurses/scroll.c +101 -0
  134. data/vendor/PDCurses/pdcurses/slk.c +591 -0
  135. data/vendor/PDCurses/pdcurses/termattr.c +182 -0
  136. data/vendor/PDCurses/pdcurses/terminfo.c +217 -0
  137. data/vendor/PDCurses/pdcurses/touch.c +163 -0
  138. data/vendor/PDCurses/pdcurses/util.c +312 -0
  139. data/vendor/PDCurses/pdcurses/window.c +569 -0
  140. data/vendor/PDCurses/sdl1/Makefile.mng +110 -0
  141. data/vendor/PDCurses/sdl1/README.md +31 -0
  142. data/vendor/PDCurses/sdl1/deffont.h +385 -0
  143. data/vendor/PDCurses/sdl1/deficon.h +23 -0
  144. data/vendor/PDCurses/sdl1/pdcclip.c +131 -0
  145. data/vendor/PDCurses/sdl1/pdcdisp.c +373 -0
  146. data/vendor/PDCurses/sdl1/pdcgetsc.c +30 -0
  147. data/vendor/PDCurses/sdl1/pdckbd.c +405 -0
  148. data/vendor/PDCurses/sdl1/pdcscrn.c +414 -0
  149. data/vendor/PDCurses/sdl1/pdcsdl.h +31 -0
  150. data/vendor/PDCurses/sdl1/pdcsetsc.c +64 -0
  151. data/vendor/PDCurses/sdl1/pdcutil.c +40 -0
  152. data/vendor/PDCurses/sdl1/sdltest.c +79 -0
  153. data/vendor/PDCurses/sdl2/CMakeLists.txt +76 -0
  154. data/vendor/PDCurses/sdl2/Makefile.vc +164 -0
  155. data/vendor/PDCurses/sdl2/README.md +34 -0
  156. data/vendor/PDCurses/sdl2/deffont.h +385 -0
  157. data/vendor/PDCurses/sdl2/deficon.h +23 -0
  158. data/vendor/PDCurses/sdl2/pdcclip.c +93 -0
  159. data/vendor/PDCurses/sdl2/pdcdisp.c +534 -0
  160. data/vendor/PDCurses/sdl2/pdcgetsc.c +30 -0
  161. data/vendor/PDCurses/sdl2/pdckbd.c +480 -0
  162. data/vendor/PDCurses/sdl2/pdcscrn.c +443 -0
  163. data/vendor/PDCurses/sdl2/pdcsdl.h +33 -0
  164. data/vendor/PDCurses/sdl2/pdcsetsc.c +67 -0
  165. data/vendor/PDCurses/sdl2/pdcutil.c +39 -0
  166. data/vendor/PDCurses/sdl2/sdltest.c +81 -0
  167. data/vendor/PDCurses/term.h +48 -0
  168. data/vendor/PDCurses/version.mif +7 -0
  169. data/vendor/PDCurses/vt/CMakeLists.txt +28 -0
  170. data/vendor/PDCurses/vt/Makefile.bcc +111 -0
  171. data/vendor/PDCurses/vt/Makefile.dmc +258 -0
  172. data/vendor/PDCurses/vt/Makefile.vc +144 -0
  173. data/vendor/PDCurses/vt/Makefile.wcc +107 -0
  174. data/vendor/PDCurses/vt/README.md +64 -0
  175. data/vendor/PDCurses/vt/pdcclip.c +20 -0
  176. data/vendor/PDCurses/vt/pdcdisp.c +284 -0
  177. data/vendor/PDCurses/vt/pdcgetsc.c +27 -0
  178. data/vendor/PDCurses/vt/pdckbd.c +394 -0
  179. data/vendor/PDCurses/vt/pdcscrn.c +434 -0
  180. data/vendor/PDCurses/vt/pdcsetsc.c +45 -0
  181. data/vendor/PDCurses/vt/pdcutil.c +43 -0
  182. data/vendor/PDCurses/vt/pdcvt.h +16 -0
  183. data/vendor/PDCurses/watcom.mif +68 -0
  184. data/vendor/PDCurses/wincon/CMakeLists.txt +27 -0
  185. data/vendor/PDCurses/wincon/Makefile.bcc +88 -0
  186. data/vendor/PDCurses/wincon/Makefile.dmc +256 -0
  187. data/vendor/PDCurses/wincon/Makefile.lcc +273 -0
  188. data/vendor/PDCurses/wincon/Makefile.mng +176 -0
  189. data/vendor/PDCurses/wincon/Makefile.vc +144 -0
  190. data/vendor/PDCurses/wincon/Makefile.wcc +51 -0
  191. data/vendor/PDCurses/wincon/README.md +85 -0
  192. data/vendor/PDCurses/wincon/pdcclip.c +174 -0
  193. data/vendor/PDCurses/wincon/pdcdisp.c +143 -0
  194. data/vendor/PDCurses/wincon/pdcgetsc.c +55 -0
  195. data/vendor/PDCurses/wincon/pdckbd.c +786 -0
  196. data/vendor/PDCurses/wincon/pdcscrn.c +717 -0
  197. data/vendor/PDCurses/wincon/pdcsetsc.c +91 -0
  198. data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
  199. data/vendor/PDCurses/wincon/pdcurses.rc +28 -0
  200. data/vendor/PDCurses/wincon/pdcutil.c +41 -0
  201. data/vendor/PDCurses/wincon/pdcwin.h +31 -0
  202. data/vendor/PDCurses/wingui/CMakeLists.txt +27 -0
  203. data/vendor/PDCurses/wingui/Makefile.bcc +85 -0
  204. data/vendor/PDCurses/wingui/Makefile.dmc +259 -0
  205. data/vendor/PDCurses/wingui/Makefile.lcc +273 -0
  206. data/vendor/PDCurses/wingui/Makefile.mng +171 -0
  207. data/vendor/PDCurses/wingui/Makefile.vc +144 -0
  208. data/vendor/PDCurses/wingui/Makefile.wcc +51 -0
  209. data/vendor/PDCurses/wingui/README.md +93 -0
  210. data/vendor/PDCurses/wingui/pdcclip.c +174 -0
  211. data/vendor/PDCurses/wingui/pdcdisp.c +718 -0
  212. data/vendor/PDCurses/wingui/pdcgetsc.c +30 -0
  213. data/vendor/PDCurses/wingui/pdckbd.c +143 -0
  214. data/vendor/PDCurses/wingui/pdcscrn.c +2797 -0
  215. data/vendor/PDCurses/wingui/pdcsetsc.c +89 -0
  216. data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
  217. data/vendor/PDCurses/wingui/pdcurses.rc +28 -0
  218. data/vendor/PDCurses/wingui/pdcutil.c +61 -0
  219. data/vendor/PDCurses/wingui/pdcwin.h +122 -0
  220. data/vendor/PDCurses/x11/Makefile.in +754 -0
  221. data/vendor/PDCurses/x11/PDCurses.spec +82 -0
  222. data/vendor/PDCurses/x11/README.md +62 -0
  223. data/vendor/PDCurses/x11/ScrollBox.c +319 -0
  224. data/vendor/PDCurses/x11/ScrollBox.h +51 -0
  225. data/vendor/PDCurses/x11/ScrollBoxP.h +70 -0
  226. data/vendor/PDCurses/x11/aclocal.m4 +994 -0
  227. data/vendor/PDCurses/x11/big_icon.xbm +46 -0
  228. data/vendor/PDCurses/x11/compose.h +201 -0
  229. data/vendor/PDCurses/x11/config.guess +1500 -0
  230. data/vendor/PDCurses/x11/config.h.in +100 -0
  231. data/vendor/PDCurses/x11/config.sub +1616 -0
  232. data/vendor/PDCurses/x11/configure +6700 -0
  233. data/vendor/PDCurses/x11/configure.ac +295 -0
  234. data/vendor/PDCurses/x11/debian/changelog +6 -0
  235. data/vendor/PDCurses/x11/debian/compat +1 -0
  236. data/vendor/PDCurses/x11/debian/control +11 -0
  237. data/vendor/PDCurses/x11/debian/copyright +27 -0
  238. data/vendor/PDCurses/x11/debian/rules +98 -0
  239. data/vendor/PDCurses/x11/install-sh +253 -0
  240. data/vendor/PDCurses/x11/little_icon.xbm +14 -0
  241. data/vendor/PDCurses/x11/ncurses_cfg.h +45 -0
  242. data/vendor/PDCurses/x11/pdcclip.c +173 -0
  243. data/vendor/PDCurses/x11/pdcdisp.c +85 -0
  244. data/vendor/PDCurses/x11/pdcgetsc.c +28 -0
  245. data/vendor/PDCurses/x11/pdckbd.c +104 -0
  246. data/vendor/PDCurses/x11/pdcscrn.c +258 -0
  247. data/vendor/PDCurses/x11/pdcsetsc.c +95 -0
  248. data/vendor/PDCurses/x11/pdcutil.c +52 -0
  249. data/vendor/PDCurses/x11/pdcx11.c +316 -0
  250. data/vendor/PDCurses/x11/pdcx11.h +191 -0
  251. data/vendor/PDCurses/x11/sb.c +155 -0
  252. data/vendor/PDCurses/x11/x11.c +3686 -0
  253. data/vendor/PDCurses/x11/xcurses-config.in +81 -0
  254. metadata +258 -24
  255. data/.travis.yml +0 -16
  256. data/appveyor.yml +0 -16
@@ -0,0 +1,295 @@
1
+ dnl Process this file with autoconf to produce a configure script.
2
+
3
+ AC_INIT([PDCurses], [3.4], [wmcbrine@gmail.com], [PDCurses])
4
+ AC_CONFIG_SRCDIR([pdcx11.h])
5
+
6
+ AC_SUBST(prefix)
7
+
8
+ AC_PROG_CC
9
+
10
+ AC_CONFIG_HEADER(config.h)
11
+ dnl Checks for system first
12
+ AC_CANONICAL_SYSTEM([])
13
+
14
+ on_qnx=no
15
+ on_osx=no
16
+ case "$target" in
17
+ *hp-hpux*)
18
+ SYS_DEFS="-D_HPUX_SOURCE"
19
+ ;;
20
+ *ibm-aix*)
21
+ SYS_DEFS="-D_ALL_SOURCE"
22
+ ;;
23
+ *dec-osf*)
24
+ SYS_DEFS="-D_XOPEN_SOURCE_EXTENDED"
25
+ ;;
26
+ *pc-sco*)
27
+ SYS_DEFS="-UM_XENIX -b elf"
28
+ ;;
29
+ *qnx*)
30
+ on_qnx=yes
31
+ SYS_DEFS="-Q"
32
+ ;;
33
+ *apple-darwin*)
34
+ on_osx=yes
35
+ MH_CHECK_OSX_ARCH()
36
+ SYS_DEFS="$valid_arch_flags"
37
+ EEXTRA="$valid_arch_flags"
38
+ ;;
39
+ *)
40
+ ;;
41
+ esac
42
+ AC_SUBST(SYS_DEFS)
43
+ AC_SUBST(EEXTRA)
44
+
45
+ MH_CHECK_MAX_SIGNALS(NSIG __sys_nsig)
46
+
47
+ dnl Check for other programs.
48
+ AC_PROG_LN_S
49
+ AC_PROG_RANLIB
50
+ AC_PROG_INSTALL
51
+ AC_PROG_MAKE_SET
52
+
53
+ dnl ensure that the system has System V IPC support
54
+ MH_IPC
55
+
56
+ if test $ac_cv_header_stdc != yes; then
57
+ AC_MSG_ERROR([Need ANSI C headers])
58
+ fi
59
+
60
+ dnl Checks for libraries.
61
+
62
+ dnl we check for dlfcn.h or dl.h so we know if we can build shared objects
63
+ AC_CHECK_HEADERS(fcntl.h \
64
+ sys/time.h \
65
+ sys/select.h \
66
+ dlfcn.h \
67
+ dl.h
68
+ )
69
+
70
+ dnl Checks for typedefs, structures, and compiler characteristics.
71
+ AC_HEADER_TIME
72
+ MH_CHECK_LIB(socket nls)
73
+ AC_SUBST(MH_EXTRA_LIBS)
74
+ MH_CHECK_CC_O
75
+
76
+ dnl Checks for library functions.
77
+ AC_TYPE_SIGNAL
78
+ AC_CHECK_FUNCS(vsscanf usleep poll vsnprintf)
79
+
80
+ dnl Check for X includes and X libraries
81
+ AC_PATH_X
82
+ MH_CHECK_X_INC
83
+ MH_CHECK_X_LIB
84
+ MH_CHECK_X_HEADERS(DECkeysym.h Sunkeysym.h xpm.h XF86keysym.h)
85
+ MH_CHECK_X_KEYDEFS(XK_KP_Delete XK_KP_Insert XK_KP_End XK_KP_Down XK_KP_Next \
86
+ XK_KP_Left XK_KP_Right XK_KP_Home XK_KP_Up XK_KP_Prior XK_KP_Begin)
87
+ MH_CHECK_X_TYPEDEF(XPointer)
88
+ dnl
89
+ dnl extra for xpm library
90
+ if test $ac_cv_header_xpm_h = yes; then
91
+ MH_XLIBS="$MH_XLIBS -lXpm"
92
+ fi
93
+ dnl ---------- allow --enable-debug to compile in debug mode ---------
94
+ AC_ARG_ENABLE(debug,
95
+ [ --enable-debug turn on debugging],
96
+ [with_debug=$enableval],
97
+ [with_debug=no],
98
+ )
99
+ cflags_g="`echo $CFLAGS | grep -c '\-g'`"
100
+ cflags_O="`echo $CFLAGS | grep -c '\-O'`"
101
+
102
+ if test "$with_debug" = yes; then
103
+ if test "$cflags_g" = "0"; then
104
+ CFLAGS="${CFLAGS} -g"
105
+ fi
106
+ if test "$cflags_O" != "0"; then
107
+ CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
108
+ fi
109
+ CFLAGS="${CFLAGS} -DPDCDEBUG"
110
+ else
111
+ if test "$cflags_O" = "0"; then
112
+ CFLAGS="${CFLAGS} -O"
113
+ fi
114
+ if test "$cflags_g" != "0"; then
115
+ CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`"
116
+ fi
117
+ fi
118
+ if test "$ac_cv_prog_CC" = "gcc"; then
119
+ if test "$with_debug" = yes; then
120
+ CFLAGS="${CFLAGS} -Wall"
121
+ else
122
+ CFLAGS="-O2 -Wall -fomit-frame-pointer"
123
+ fi
124
+ fi
125
+ if test "$on_qnx" = yes; then
126
+ if test "$with_debug" = yes; then
127
+ CFLAGS="-g"
128
+ else
129
+ CFLAGS="-Otax"
130
+ fi
131
+ fi
132
+
133
+ dnl --------------- check for wide character support -----------------
134
+ dnl allow --enable-widec to include wide character support
135
+ AC_ARG_ENABLE(widec,
136
+ [ --enable-widec include support for wide characters],
137
+ [with_widec=$enableval],
138
+ [with_widec=no],
139
+ )
140
+ PDC_WIDE=""
141
+ if test "$with_widec" = yes; then
142
+ PDC_WIDE="-DPDC_WIDE"
143
+ SYS_DEFS="$SYS_DEFS $PDC_WIDE"
144
+ fi
145
+ AC_SUBST(PDC_WIDE)
146
+
147
+ dnl -------------------- check for XIM support -----------------------
148
+ dnl allow --enable-xim to include XIM support
149
+ AC_ARG_ENABLE(xim,
150
+ [ --enable-xim include support for XIM],
151
+ [with_xim=$enableval],
152
+ [with_xim=no],
153
+ )
154
+ if test "$with_xim" = yes; then
155
+ SYS_DEFS="$SYS_DEFS -DPDC_XIM"
156
+ fi
157
+
158
+ dnl ------------------------ force UTF-8? ----------------------------
159
+ dnl allow --enable-force-utf8 to override locale settings
160
+ AC_ARG_ENABLE(force-utf8,
161
+ [ --enable-force-utf8 override locale settings; use UTF-8],
162
+ [force_utf8=$enableval],
163
+ [force_utf8=no],
164
+ )
165
+ if test "$force_utf8" = yes; then
166
+ SYS_DEFS="$SYS_DEFS -DPDC_FORCE_UTF8"
167
+ fi
168
+
169
+ dnl ----------------- check for Purify support -----------------------
170
+ dnl allow --enable-purify to enable linking with Purify
171
+ AC_ARG_ENABLE(purify,
172
+ [ --enable-purify link with Purify (TM)],
173
+ [with_purify=$enableval],
174
+ [with_purify=no],
175
+ )
176
+ if test "$with_purify" = yes; then
177
+ PURIFY="purify"
178
+ else
179
+ PURIFY=""
180
+ fi
181
+ AC_SUBST(PURIFY)
182
+
183
+ dnl --------------------- check for Xaw3d library --------------------
184
+ dnl allow --with-xaw3d to link with PDCurses
185
+ AC_ARG_WITH(xaw3d,
186
+ [ --with-xaw3d link with Xaw3d],
187
+ [with_xaw3d=$withval],
188
+ [with_xaw3d=no],
189
+ )
190
+ if test "$with_xaw3d" = yes; then
191
+ AC_DEFINE([USE_XAW3D], [1],
192
+ [Define if you want to use Xaw3d library]
193
+ )
194
+ fi
195
+
196
+ dnl --------------------- check for neXtaw library -------------------
197
+ dnl allow --with-nextaw to link with PDCurses
198
+ AC_ARG_WITH(nextaw,
199
+ [ --with-nextaw link with neXtaw],
200
+ [with_nextaw=$withval],
201
+ [with_nextaw=no],
202
+ )
203
+ if test "$with_nextaw" = yes; then
204
+ AC_DEFINE([USE_NEXTAW], [1],
205
+ [Define if you want to use neXtaw library]
206
+ )
207
+ fi
208
+
209
+ dnl -------------- check how to make shared libraries ----------------
210
+ dnl Force the ability of shared library usage
211
+ USE_ABI=yes
212
+ MH_SHARED_LIBRARY(XCurses)
213
+
214
+ MH_CHECK_RPM()
215
+ MH_GET_DISTRO_NAME()
216
+ MH_CHECK_ARCH
217
+
218
+ AC_CONFIG_FILES([Makefile xcurses-config])
219
+ AC_OUTPUT
220
+
221
+ AC_DEFINE([PDC_MAX_SIGNALS], [],
222
+ [Define as the system defined limit for number of signals]
223
+ )
224
+
225
+ AC_DEFINE([HAVE_DECKEYSYM_H], [],
226
+ [Define if you have the <DECkeySym.h> header file]
227
+ )
228
+
229
+ AC_DEFINE([HAVE_SUNKEYSYM_H], [],
230
+ [Define if you have the <Sunkeysym.h> header file]
231
+ )
232
+
233
+ AC_DEFINE([HAVE_XF86KEYSYM_H], [],
234
+ [Define if you have the <XF86keysym.h> header file]
235
+ )
236
+
237
+ AC_DEFINE([HAVE_XPM_H], [],
238
+ [Define if you have the <xpm.h> header file]
239
+ )
240
+
241
+ AC_DEFINE([HAVE_XK_KP_DELETE], [],
242
+ [Define if you have this defined in <keysym.h>]
243
+ )
244
+
245
+ AC_DEFINE([HAVE_XK_KP_INSERT], [],
246
+ [Define if you have this defined in <keysym.h>]
247
+ )
248
+
249
+ AC_DEFINE([HAVE_XK_KP_END], [],
250
+ [Define if you have this defined in <keysym.h>]
251
+ )
252
+
253
+ AC_DEFINE([HAVE_XK_KP_DOWN], [],
254
+ [Define if you have this defined in <keysym.h>]
255
+ )
256
+
257
+ AC_DEFINE([HAVE_XK_KP_NEXT], [],
258
+ [Define if you have this defined in <keysym.h>]
259
+ )
260
+
261
+ AC_DEFINE([HAVE_XK_KP_LEFT], [],
262
+ [Define if you have this defined in <keysym.h>]
263
+ )
264
+
265
+ AC_DEFINE([HAVE_XK_KP_RIGHT], [],
266
+ [Define if you have this defined in <keysym.h>]
267
+ )
268
+
269
+ AC_DEFINE([HAVE_XK_KP_HOME], [],
270
+ [Define if you have this defined in <keysym.h>]
271
+ )
272
+
273
+ AC_DEFINE([HAVE_XK_KP_UP], [],
274
+ [Define if you have this defined in <keysym.h>]
275
+ )
276
+
277
+ AC_DEFINE([HAVE_XK_KP_PRIOR], [],
278
+ [Define if you have this defined in <keysym.h>]
279
+ )
280
+
281
+ AC_DEFINE([HAVE_XK_KP_BEGIN], [],
282
+ [Define if you have this defined in <keysym.h>]
283
+ )
284
+
285
+ AC_DEFINE([USE_XAW3D], [],
286
+ [Define if you want to use Xaw3d library]
287
+ )
288
+
289
+ AC_DEFINE([USE_NEXTAW], [],
290
+ [Define if you want to use neXtaw library]
291
+ )
292
+
293
+ AC_DEFINE([XPOINTER_TYPEDEFED], [],
294
+ [Define XPointer is typedefed in X11/Xlib.h]
295
+ )
@@ -0,0 +1,6 @@
1
+ pdcurses (3.4-1) unstable; urgency=low
2
+
3
+ * Initial deb package
4
+ * See HISTORY file for full changelog
5
+
6
+ -- Mark Hessling <mark@rexx.org> Mon, 22 Jul 2013 12:00:00 +1000
@@ -0,0 +1 @@
1
+ 5
@@ -0,0 +1,11 @@
1
+ Source: pdcurses
2
+ Section: devel
3
+ Priority: optional
4
+ Maintainer: Mark Hessling <mark@rexx.org>
5
+ Build-Depends: debhelper (>= 5), autotools-dev
6
+ Standards-Version: 3.7.2
7
+
8
+ Package: pdcurses
9
+ Architecture: any
10
+ Depends: ${shlibs:Depends}
11
+ Description: Public Domand CUrses library for multiple platforms.
@@ -0,0 +1,27 @@
1
+ This package was debianized by Mark Hessling <mark@rexx.org> on
2
+ Mon, 22 Jul 2013 13:18:35 +1000.
3
+
4
+ Upstream Author:
5
+
6
+ William Mcbrine <wmcbrine@users.sf.net>
7
+
8
+ Copyright:
9
+
10
+ Public Domain
11
+
12
+ License:
13
+
14
+ The core package is in the public domain, but small portions of PDCurses
15
+ are subject to copyright under various licenses. Each directory
16
+ contains a README file, with a section titled "Distribution Status"
17
+ which describes the status of the files in that directory.
18
+
19
+ If you use PDCurses in an application, an acknowledgement would be
20
+ appreciated, but is not mandatory. If you make corrections or
21
+ enhancements to PDCurses, please forward them to the current maintainer
22
+ for the benefit of other users.
23
+
24
+ This software is provided AS IS with NO WARRANTY whatsoever.
25
+
26
+ The Debian packaging is Public Domain
27
+
@@ -0,0 +1,98 @@
1
+ #!/usr/bin/make -f
2
+ # -*- makefile -*-
3
+ # Sample debian/rules that uses debhelper.
4
+ # This file was originally written by Joey Hess and Craig Small.
5
+ # As a special exception, when this file is copied by dh-make into a
6
+ # dh-make output file, you may use that output file without restriction.
7
+ # This special exception was added by Craig Small in version 0.37 of dh-make.
8
+
9
+ # Uncomment this to turn on verbose mode.
10
+ #export DH_VERBOSE=1
11
+
12
+
13
+ # These are used for cross-compiling and for saving the configure script
14
+ # from having to guess our platform (since we know it already)
15
+ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16
+ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
+
18
+
19
+ config.status: configure
20
+ dh_testdir
21
+ # Add here commands to configure the package.
22
+ ifneq "$(wildcard /usr/share/misc/config.sub)" ""
23
+ cp -f /usr/share/misc/config.sub config.sub
24
+ endif
25
+ ifneq "$(wildcard /usr/share/misc/config.guess)" ""
26
+ cp -f /usr/share/misc/config.guess config.guess
27
+ endif
28
+ ./configure --enable-libdir-change=no --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" --enable-force-utf8 --enable-widec
29
+
30
+
31
+ build: build-stamp
32
+
33
+ build-stamp: config.status
34
+ dh_testdir
35
+
36
+ # Add here commands to compile the package.
37
+ $(MAKE)
38
+
39
+ touch $@
40
+
41
+ clean:
42
+ dh_testdir
43
+ dh_testroot
44
+ rm -f build-stamp
45
+
46
+ # Add here commands to clean up after the build process.
47
+ -$(MAKE) distclean
48
+ rm -f config.sub config.guess
49
+
50
+ dh_clean
51
+
52
+ install: build
53
+ dh_testdir
54
+ dh_testroot
55
+ dh_clean -k
56
+ dh_installdirs
57
+
58
+ # Add here commands to install the package into debian/pdcurses
59
+ $(MAKE) prefix=$(CURDIR)/debian/pdcurses/usr install
60
+
61
+
62
+ # Build architecture-independent files here.
63
+ binary-indep: build install
64
+ # We have nothing to do by default.
65
+
66
+ # Build architecture-dependent files here.
67
+ binary-arch: build install
68
+ dh_testdir
69
+ dh_testroot
70
+ dh_installchangelogs
71
+ dh_installdocs
72
+ dh_installexamples
73
+ # dh_install
74
+ # dh_installmenu
75
+ # dh_installdebconf
76
+ # dh_installlogrotate
77
+ # dh_installemacsen
78
+ # dh_installpam
79
+ # dh_installmime
80
+ # dh_python
81
+ # dh_installinit
82
+ # dh_installcron
83
+ # dh_installinfo
84
+ dh_installman
85
+ dh_link
86
+ dh_strip
87
+ dh_compress
88
+ dh_fixperms
89
+ # dh_perl
90
+ dh_makeshlibs
91
+ dh_installdeb
92
+ dh_shlibdeps
93
+ dh_gencontrol
94
+ dh_md5sums
95
+ dh_builddeb
96
+
97
+ binary: binary-indep binary-arch
98
+ .PHONY: build clean binary-indep binary-arch binary install
@@ -0,0 +1,253 @@
1
+ #! /bin/sh
2
+ #
3
+ # install - install a program, script, or datafile
4
+ # This comes from X11R5 (mit/util/scripts/install.sh).
5
+ #
6
+ # Copyright 1991 by the Massachusetts Institute of Technology
7
+ #
8
+ # Permission to use, copy, modify, distribute, and sell this software and its
9
+ # documentation for any purpose is hereby granted without fee, provided that
10
+ # the above copyright notice appear in all copies and that both that
11
+ # copyright notice and this permission notice appear in supporting
12
+ # documentation, and that the name of M.I.T. not be used in advertising or
13
+ # publicity pertaining to distribution of the software without specific,
14
+ # written prior permission. M.I.T. makes no representations about the
15
+ # suitability of this software for any purpose. It is provided "as is"
16
+ # without express or implied warranty.
17
+ #
18
+ # Calling this script install-sh is preferred over install.sh, to prevent
19
+ # `make' implicit rules from creating a file called install from it
20
+ # when there is no Makefile.
21
+ #
22
+ # This script is compatible with the BSD install script, but was written
23
+ # from scratch. It can only install one file at a time, a restriction
24
+ # shared with many OS's install programs.
25
+
26
+
27
+ # set DOITPROG to echo to test this script
28
+
29
+ # Don't use :- since 4.3BSD and earlier shells don't like it.
30
+ #
31
+ # Modified 1 Feb 2000 MHES to cater for mkdir -p
32
+ #
33
+ doit="${DOITPROG-}"
34
+
35
+
36
+ # put in absolute paths if you don't have them in your path; or use env. vars.
37
+
38
+ mvprog="${MVPROG-mv}"
39
+ cpprog="${CPPROG-cp}"
40
+ chmodprog="${CHMODPROG-chmod}"
41
+ chownprog="${CHOWNPROG-chown}"
42
+ chgrpprog="${CHGRPPROG-chgrp}"
43
+ stripprog="${STRIPPROG-strip}"
44
+ rmprog="${RMPROG-rm}"
45
+ mkdirprog="${MKDIRPROG-mkdir}"
46
+
47
+ transformbasename=""
48
+ transform_arg=""
49
+ instcmd="$mvprog"
50
+ chmodcmd="$chmodprog 0755"
51
+ chowncmd=""
52
+ chgrpcmd=""
53
+ stripcmd=""
54
+ rmcmd="$rmprog -f"
55
+ mvcmd="$mvprog"
56
+ mkdircmd="$mkdirprog -p"
57
+ src=""
58
+ dst=""
59
+ dir_arg=""
60
+
61
+ while [ x"$1" != x ]; do
62
+ case $1 in
63
+ -c) instcmd="$cpprog"
64
+ shift
65
+ continue;;
66
+
67
+ -d) dir_arg=true
68
+ shift
69
+ continue;;
70
+
71
+ -m) chmodcmd="$chmodprog $2"
72
+ shift
73
+ shift
74
+ continue;;
75
+
76
+ -o) chowncmd="$chownprog $2"
77
+ shift
78
+ shift
79
+ continue;;
80
+
81
+ -g) chgrpcmd="$chgrpprog $2"
82
+ shift
83
+ shift
84
+ continue;;
85
+
86
+ -s) stripcmd="$stripprog"
87
+ shift
88
+ continue;;
89
+
90
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
91
+ shift
92
+ continue;;
93
+
94
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
95
+ shift
96
+ continue;;
97
+
98
+ *) if [ x"$src" = x ]
99
+ then
100
+ src=$1
101
+ else
102
+ # this colon is to work around a 386BSD /bin/sh bug
103
+ :
104
+ dst=$1
105
+ fi
106
+ shift
107
+ continue;;
108
+ esac
109
+ done
110
+
111
+ if [ x"$src" = x ]
112
+ then
113
+ echo "install: no input file specified"
114
+ exit 1
115
+ else
116
+ true
117
+ fi
118
+
119
+ if [ x"$dir_arg" != x ]; then
120
+ dst=$src
121
+ src=""
122
+
123
+ if [ -d $dst ]; then
124
+ instcmd=:
125
+ else
126
+ instcmd=mkdir
127
+ fi
128
+ else
129
+
130
+ # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
131
+ # might cause directories to be created, which would be especially bad
132
+ # if $src (and thus $dsttmp) contains '*'.
133
+
134
+ if [ -f $src -o -d $src ]
135
+ then
136
+ true
137
+ else
138
+ echo "install: $src does not exist"
139
+ exit 1
140
+ fi
141
+
142
+ if [ x"$dst" = x ]
143
+ then
144
+ echo "install: no destination specified"
145
+ exit 1
146
+ else
147
+ true
148
+ fi
149
+
150
+ # If destination is a directory, append the input filename; if your system
151
+ # does not like double slashes in filenames, you may need to add some logic
152
+
153
+ if [ -d $dst ]
154
+ then
155
+ dst="$dst"/`basename $src`
156
+ else
157
+ true
158
+ fi
159
+ fi
160
+
161
+ ## this sed command emulates the dirname command
162
+ dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
163
+
164
+ # Make sure that the destination directory exists.
165
+ # this part is taken from Noah Friedman's mkinstalldirs script
166
+
167
+ # Skip lots of stat calls in the usual case.
168
+ if [ ! -d "$dstdir" ]; then
169
+ defaultIFS='
170
+ '
171
+ IFS="${IFS-${defaultIFS}}"
172
+
173
+ oIFS="${IFS}"
174
+ # Some sh's can't handle IFS=/ for some reason.
175
+ IFS='%'
176
+ set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
177
+ IFS="${oIFS}"
178
+
179
+ pathcomp=''
180
+
181
+ while [ $# -ne 0 ] ; do
182
+ pathcomp="${pathcomp}${1}"
183
+ shift
184
+
185
+ if [ ! -d "${pathcomp}" ] ;
186
+ then
187
+ $mkdircmd "${pathcomp}"
188
+ else
189
+ true
190
+ fi
191
+
192
+ pathcomp="${pathcomp}/"
193
+ done
194
+ fi
195
+
196
+ if [ x"$dir_arg" != x ]
197
+ then
198
+ $doit $instcmd $dst &&
199
+
200
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
201
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
202
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
203
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
204
+ else
205
+
206
+ # If we're going to rename the final executable, determine the name now.
207
+
208
+ if [ x"$transformarg" = x ]
209
+ then
210
+ dstfile=`basename $dst`
211
+ else
212
+ dstfile=`basename $dst $transformbasename |
213
+ sed $transformarg`$transformbasename
214
+ fi
215
+
216
+ # don't allow the sed command to completely eliminate the filename
217
+
218
+ if [ x"$dstfile" = x ]
219
+ then
220
+ dstfile=`basename $dst`
221
+ else
222
+ true
223
+ fi
224
+
225
+ # Make a temp file name in the proper directory.
226
+
227
+ dsttmp=$dstdir/#inst.$$#
228
+
229
+ # Move or copy the file name to the temp name
230
+
231
+ $doit $instcmd $src $dsttmp &&
232
+
233
+ trap "rm -f ${dsttmp}" 0 &&
234
+
235
+ # and set any options; do chmod last to preserve setuid bits
236
+
237
+ # If any of these fail, we abort the whole thing. If we want to
238
+ # ignore errors from any of these, just make sure not to ignore
239
+ # errors from the above "$doit $instcmd $src $dsttmp" command.
240
+
241
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
242
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
243
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
244
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
245
+
246
+ # Now rename the file to the real destination.
247
+
248
+ $doit $rmcmd -f $dstdir/$dstfile &&
249
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
250
+
251
+ fi &&
252
+
253
+ exit 0