aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/debian-mingw/changelog11
-rw-r--r--package/debian-mingw/compat1
-rw-r--r--package/debian-mingw/control16
-rw-r--r--package/debian-mingw/copyright112
-rwxr-xr-xpackage/debian-mingw/rules130
-rw-r--r--package/debian-mingw/source/format1
-rw-r--r--package/debian-mingw/watch4
-rw-r--r--package/debian-mingw64/changelog11
-rw-r--r--package/debian-mingw64/compat1
-rw-r--r--package/debian-mingw64/control16
-rw-r--r--package/debian-mingw64/copyright112
-rwxr-xr-xpackage/debian-mingw64/rules130
-rw-r--r--package/debian-mingw64/source/format1
-rw-r--r--package/debian-mingw64/watch4
-rw-r--r--package/debian/changelog11
-rw-r--r--package/debian/compat1
-rw-r--r--package/debian/control16
-rw-r--r--package/debian/copyright112
-rwxr-xr-xpackage/debian/rules123
-rw-r--r--package/debian/source/format1
-rw-r--r--package/debian/watch4
-rw-r--r--package/mingw-ncurses.nsi190
-rw-r--r--package/mingw-ncurses.spec126
-rw-r--r--package/ncurses.spec92
24 files changed, 1226 insertions, 0 deletions
diff --git a/package/debian-mingw/changelog b/package/debian-mingw/changelog
new file mode 100644
index 000000000000..bda20d7c9b43
--- /dev/null
+++ b/package/debian-mingw/changelog
@@ -0,0 +1,11 @@
+ncurses6 (5.9-20140222) unstable; urgency=low
+
+ * latest weekly patch
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 22 Feb 2014 11:55:12 -0500
+
+ncurses6 (5.9-20131005) unstable; urgency=low
+
+ * initial release
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 05 Oct 2013 13:35:29 -0400
diff --git a/package/debian-mingw/compat b/package/debian-mingw/compat
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/package/debian-mingw/compat
@@ -0,0 +1 @@
+5
diff --git a/package/debian-mingw/control b/package/debian-mingw/control
new file mode 100644
index 000000000000..b32a33ebc825
--- /dev/null
+++ b/package/debian-mingw/control
@@ -0,0 +1,16 @@
+Source: ncurses6
+Section: libdevel
+Priority: optional
+Maintainer: Thomas E. Dickey <dickey@invisible-island.net>
+Homepage: http://invisible-island.net/ncurses/
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.2
+
+Package: mingw32-ncurses6
+Architecture: any
+Depends: ${misc:Depends}
+Description: shared libraries for terminal handling
+ The ncurses library routines are a terminal-independent method of
+ updating character screens with reasonable optimization.
+ .
+ This package is used for testing ABI 6 with the MinGW 32-bit port.
diff --git a/package/debian-mingw/copyright b/package/debian-mingw/copyright
new file mode 100644
index 000000000000..2b279046d6ee
--- /dev/null
+++ b/package/debian-mingw/copyright
@@ -0,0 +1,112 @@
+This package is used for testing builds of ncurses.
+
+Copyright (c) 1998-2013,2014 Free Software Foundation, Inc.
+Copyright © 2001 by Pradeep Padala
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, distribute with modifications, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+
+Copyright (C) 1994 X Consortium
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of the X Consortium shall not
+be used in advertising or otherwise to promote the sale, use or other deal-
+ings in this Software without prior written authorization from the X Consor-
+tium.
+
+
+Copyright (c) 1980, 1991, 1992, 1993
+ The Regents of the University of California. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+
+Copyright 1996-2013,2014 by Thomas E. Dickey
+
+ All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+-- vile: txtmode file-encoding=utf-8
diff --git a/package/debian-mingw/rules b/package/debian-mingw/rules
new file mode 100755
index 000000000000..35dacc04eaa3
--- /dev/null
+++ b/package/debian-mingw/rules
@@ -0,0 +1,130 @@
+#!/usr/bin/make -f
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+BUILD_CC = gcc
+
+CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
+CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
+
+TARGET = i686-w64-mingw32
+MINGW_TOP = /usr/$(TARGET)
+MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses6
+
+CFLAGS = $(CC_NORMAL)
+
+CONFIG_OPTIONS = \
+ --disable-echo \
+ --disable-db-install \
+ --disable-getcap \
+ --disable-hard-tabs \
+ --disable-leaks \
+ --disable-macros \
+ --disable-overwrite \
+ --disable-termcap \
+ --enable-const \
+ --enable-ext-colors \
+ --enable-ext-mouse \
+ --enable-interop \
+ --enable-sp-funcs \
+ --enable-term-driver \
+ --enable-warnings \
+ --enable-widec \
+ --verbose \
+ --with-cxx-shared \
+ --with-develop \
+ --with-fallbacks=unknown,rxvt \
+ --with-shared \
+ --with-tparm-arg=intptr_t \
+ --with-trace \
+ --with-xterm-kbs=DEL \
+ --without-ada \
+ --without-debug \
+ --without-manpages \
+ --without-progs \
+ --without-tests
+
+export CFLAGS BUILD_CC
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ CC=$(TARGET)-gcc \
+ CFLAGS="$(CFLAGS)" \
+ ./configure \
+ --host=$(TARGET) \
+ --target=$(TARGET) \
+ --prefix=$(MINGW_TOP) \
+ --with-build-cc=$(BUILD_CC) \
+ $(CONFIG_OPTIONS)
+
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ [ ! -f makefile ] || $(MAKE) distclean
+
+ rm -f configure-stamp build-stamp install-stamp
+
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# No binary-indep target.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs NEWS
+ # dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install install-stamp
diff --git a/package/debian-mingw/source/format b/package/debian-mingw/source/format
new file mode 100644
index 000000000000..163aaf8d82b6
--- /dev/null
+++ b/package/debian-mingw/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/package/debian-mingw/watch b/package/debian-mingw/watch
new file mode 100644
index 000000000000..945a9962419f
--- /dev/null
+++ b/package/debian-mingw/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=passive ftp://invisible-island.net/ncurses/current/ncurses\.tar.gz \
+ debian uupdate
diff --git a/package/debian-mingw64/changelog b/package/debian-mingw64/changelog
new file mode 100644
index 000000000000..bda20d7c9b43
--- /dev/null
+++ b/package/debian-mingw64/changelog
@@ -0,0 +1,11 @@
+ncurses6 (5.9-20140222) unstable; urgency=low
+
+ * latest weekly patch
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 22 Feb 2014 11:55:12 -0500
+
+ncurses6 (5.9-20131005) unstable; urgency=low
+
+ * initial release
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 05 Oct 2013 13:35:29 -0400
diff --git a/package/debian-mingw64/compat b/package/debian-mingw64/compat
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/package/debian-mingw64/compat
@@ -0,0 +1 @@
+5
diff --git a/package/debian-mingw64/control b/package/debian-mingw64/control
new file mode 100644
index 000000000000..a17ed1fc81a3
--- /dev/null
+++ b/package/debian-mingw64/control
@@ -0,0 +1,16 @@
+Source: ncurses6
+Section: libdevel
+Priority: optional
+Maintainer: Thomas E. Dickey <dickey@invisible-island.net>
+Homepage: http://invisible-island.net/ncurses/
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.2
+
+Package: mingw64-ncurses6
+Architecture: any
+Depends: ${misc:Depends}
+Description: shared libraries for terminal handling
+ The ncurses library routines are a terminal-independent method of
+ updating character screens with reasonable optimization.
+ .
+ This package is used for testing ABI 6 with the MinGW 64-bit port.
diff --git a/package/debian-mingw64/copyright b/package/debian-mingw64/copyright
new file mode 100644
index 000000000000..2b279046d6ee
--- /dev/null
+++ b/package/debian-mingw64/copyright
@@ -0,0 +1,112 @@
+This package is used for testing builds of ncurses.
+
+Copyright (c) 1998-2013,2014 Free Software Foundation, Inc.
+Copyright © 2001 by Pradeep Padala
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, distribute with modifications, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+
+Copyright (C) 1994 X Consortium
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of the X Consortium shall not
+be used in advertising or otherwise to promote the sale, use or other deal-
+ings in this Software without prior written authorization from the X Consor-
+tium.
+
+
+Copyright (c) 1980, 1991, 1992, 1993
+ The Regents of the University of California. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+
+Copyright 1996-2013,2014 by Thomas E. Dickey
+
+ All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+-- vile: txtmode file-encoding=utf-8
diff --git a/package/debian-mingw64/rules b/package/debian-mingw64/rules
new file mode 100755
index 000000000000..864ff654f8ad
--- /dev/null
+++ b/package/debian-mingw64/rules
@@ -0,0 +1,130 @@
+#!/usr/bin/make -f
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+BUILD_CC = gcc
+
+CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
+CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
+
+TARGET = x86_64-w64-mingw32
+MINGW_TOP = /usr/$(TARGET)
+MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
+
+CFLAGS = $(CC_NORMAL)
+
+CONFIG_OPTIONS = \
+ --disable-echo \
+ --disable-db-install \
+ --disable-getcap \
+ --disable-hard-tabs \
+ --disable-leaks \
+ --disable-macros \
+ --disable-overwrite \
+ --disable-termcap \
+ --enable-const \
+ --enable-ext-colors \
+ --enable-ext-mouse \
+ --enable-interop \
+ --enable-sp-funcs \
+ --enable-term-driver \
+ --enable-warnings \
+ --enable-widec \
+ --verbose \
+ --with-cxx-shared \
+ --with-develop \
+ --with-fallbacks=unknown,rxvt \
+ --with-shared \
+ --with-tparm-arg=intptr_t \
+ --with-trace \
+ --with-xterm-kbs=DEL \
+ --without-ada \
+ --without-debug \
+ --without-manpages \
+ --without-progs \
+ --without-tests
+
+export CFLAGS BUILD_CC
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ CC=$(TARGET)-gcc \
+ CFLAGS="$(CFLAGS)" \
+ ./configure \
+ --host=$(TARGET) \
+ --target=$(TARGET) \
+ --prefix=$(MINGW_TOP) \
+ --with-build-cc=$(BUILD_CC) \
+ $(CONFIG_OPTIONS)
+
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ [ ! -f makefile ] || $(MAKE) distclean
+
+ rm -f configure-stamp build-stamp install-stamp
+
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# No binary-indep target.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs NEWS
+ # dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install install-stamp
diff --git a/package/debian-mingw64/source/format b/package/debian-mingw64/source/format
new file mode 100644
index 000000000000..163aaf8d82b6
--- /dev/null
+++ b/package/debian-mingw64/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/package/debian-mingw64/watch b/package/debian-mingw64/watch
new file mode 100644
index 000000000000..945a9962419f
--- /dev/null
+++ b/package/debian-mingw64/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=passive ftp://invisible-island.net/ncurses/current/ncurses\.tar.gz \
+ debian uupdate
diff --git a/package/debian/changelog b/package/debian/changelog
new file mode 100644
index 000000000000..019318ddf19a
--- /dev/null
+++ b/package/debian/changelog
@@ -0,0 +1,11 @@
+ncurses6 (5.9-20140222) unstable; urgency=low
+
+ * latest weekly patch
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Sat, 22 Feb 2014 11:55:12 -0500
+
+ncurses6 (5.9-20120608) unstable; urgency=low
+
+ * initial release
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Fri, 08 Jun 2012 07:54:29 -0400
diff --git a/package/debian/compat b/package/debian/compat
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/package/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/package/debian/control b/package/debian/control
new file mode 100644
index 000000000000..8f80f25c78c1
--- /dev/null
+++ b/package/debian/control
@@ -0,0 +1,16 @@
+Source: ncurses6
+Section: libdevel
+Priority: optional
+Maintainer: Thomas E. Dickey <dickey@invisible-island.net>
+Homepage: http://invisible-island.net/ncurses/
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.2
+
+Package: ncurses6
+Architecture: any
+Depends: ${misc:Depends}
+Description: shared libraries for terminal handling
+ The ncurses library routines are a terminal-independent method of
+ updating character screens with reasonable optimization.
+ .
+ This package is used for testing ABI 6.
diff --git a/package/debian/copyright b/package/debian/copyright
new file mode 100644
index 000000000000..2b279046d6ee
--- /dev/null
+++ b/package/debian/copyright
@@ -0,0 +1,112 @@
+This package is used for testing builds of ncurses.
+
+Copyright (c) 1998-2013,2014 Free Software Foundation, Inc.
+Copyright © 2001 by Pradeep Padala
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, distribute with modifications, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+
+Copyright (C) 1994 X Consortium
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of the X Consortium shall not
+be used in advertising or otherwise to promote the sale, use or other deal-
+ings in this Software without prior written authorization from the X Consor-
+tium.
+
+
+Copyright (c) 1980, 1991, 1992, 1993
+ The Regents of the University of California. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+
+Copyright 1996-2013,2014 by Thomas E. Dickey
+
+ All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the
+sale, use or other dealings in this Software without prior written
+authorization.
+
+-- vile: txtmode file-encoding=utf-8
diff --git a/package/debian/rules b/package/debian/rules
new file mode 100755
index 000000000000..e4cb1090f769
--- /dev/null
+++ b/package/debian/rules
@@ -0,0 +1,123 @@
+#!/usr/bin/make -f
+# MAde with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Cristoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
+CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
+
+MY_DIR=/usr/local/ncurses6
+MYDATA=/usr/local/ncurses/share/terminfo
+BUILD_DIR=$(CURDIR)/debian/ncurses6
+
+CFLAGS = $(CC_NORMAL)
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ RPATH_LIST=../lib:$(MY_DIR)/lib \
+ CFLAGS="$(CFLAGS)" ./configure \
+ --host=$(DEB_HOST_GNU_TYPE) \
+ --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=$(MY_DIR) \
+ --with-default-terminfo-dir=$(MYDATA) \
+ --with-terminfo-dirs=$(MYDATA):/usr/share/terminfo \
+ --disable-echo \
+ --disable-getcap \
+ --disable-leaks \
+ --disable-macros \
+ --disable-termcap \
+ --enable-const \
+ --enable-ext-colors \
+ --enable-ext-mouse \
+ --enable-hard-tabs \
+ --enable-interop \
+ --enable-rpath \
+ --enable-sp-funcs \
+ --enable-warnings \
+ --enable-widec \
+ --verbose \
+ --with-develop \
+ --with-shared \
+ --with-termlib \
+ --with-ticlib \
+ --with-trace \
+ --with-cxx-shared \
+ --with-xterm-kbs=DEL \
+ --without-ada \
+ --without-debug \
+ --without-normal
+
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ [ ! -f makefile ] || $(MAKE) distclean
+
+ rm -f configure-stamp build-stamp install-stamp
+
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install.libs install.progs DESTDIR=$(BUILD_DIR)
+
+ ( cd test && make ncurses LOCAL_LIBDIR=$(MY_DIR)/lib )
+ mv test/ncurses $(BUILD_DIR)$(MY_DIR)/bin/ncurses6
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# No binary-indep target.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs NEWS
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install install-stamp
diff --git a/package/debian/source/format b/package/debian/source/format
new file mode 100644
index 000000000000..163aaf8d82b6
--- /dev/null
+++ b/package/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/package/debian/watch b/package/debian/watch
new file mode 100644
index 000000000000..945a9962419f
--- /dev/null
+++ b/package/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=passive ftp://invisible-island.net/ncurses/current/ncurses\.tar.gz \
+ debian uupdate
diff --git a/package/mingw-ncurses.nsi b/package/mingw-ncurses.nsi
new file mode 100644
index 000000000000..81463c7d3606
--- /dev/null
+++ b/package/mingw-ncurses.nsi
@@ -0,0 +1,190 @@
+; $Id: mingw-ncurses.nsi,v 1.28 2014/02/22 16:55:12 tom Exp $
+
+; TODO add examples
+; TODO bump ABI to 6
+
+; Define the application name
+!define APPNAME "ncurses"
+!define EXENAME "ncurses.exe"
+
+!define VERSION_MAJOR "5"
+!define VERSION_MINOR "9"
+!define VERSION_YYYY "2014"
+!define VERSION_MMDD "0222"
+!define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}
+
+!define MY_ABI "5"
+!define MY_MODEL "w"
+
+!define SUBKEY "ncurses"
+
+!define INSTALL "${APPNAME} (Console)"
+!define VERSION ${VERSION_MAJOR}.${VERSION_MINOR}
+!define VERSION_FULL ${VERSION}-${VERSION_PATCH}
+
+; Main Install settings
+Name "${INSTALL}"
+InstallDir "c:\mingw"
+InstallDirRegKey HKLM "Software\${SUBKEY}" "$INSTDIR\bin"
+OutFile "NSIS-Output\${APPNAME}-${VERSION_FULL}-setup.exe"
+
+CRCCheck on
+SetCompressor /SOLID lzma
+
+VIAddVersionKey ProductName "${SUBKEY}"
+VIAddVersionKey CompanyName "http://invisible-island.net"
+VIAddVersionKey FileDescription "NCurses Installer (MinGW)"
+VIAddVersionKey FileVersion ${VERSION_FULL}
+VIAddVersionKey ProductVersion ${VERSION_FULL}
+VIAddVersionKey Comments "This installer was built with NSIS and cross-compiling to MinGW."
+VIAddVersionKey InternalName "${APPNAME}-${VERSION_FULL}-setup.exe"
+; This is a dotted set of numbers limited to 16-bits each
+VIProductVersion "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_YYYY}.${VERSION_MMDD}"
+
+; Modern interface settings
+!include "MUI.nsh"
+
+!define MUI_ABORTWARNING
+;!define MUI_FINISHPAGE_RUN
+;"$INSTDIR\bin\${EXENAME}"
+
+!insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_LICENSE "..\COPYING"
+!insertmacro MUI_PAGE_COMPONENTS
+!insertmacro MUI_PAGE_DIRECTORY
+!insertmacro MUI_PAGE_INSTFILES
+!insertmacro MUI_PAGE_FINISH
+
+!insertmacro MUI_UNPAGE_CONFIRM
+!insertmacro MUI_UNPAGE_INSTFILES
+
+; Set languages (first is default language)
+!insertmacro MUI_LANGUAGE "English"
+!insertmacro MUI_RESERVEFILE_LANGDLL
+
+InstType "Full" ; SectionIn 1
+InstType "Typical" ; SectionIn 2
+InstType "Minimal" ; SectionIn 3
+
+Section "${APPNAME}" Section1
+
+ SectionIn 1 2 3
+
+ ; Set Section properties
+ SetOverwrite on
+
+ ; Set Section Files and Shortcuts
+ SetOutPath "$INSTDIR\bin"
+
+ File ".\bin\*.dll"
+
+ SetOutPath "$INSTDIR\share\${APPNAME}"
+ File /oname=README.txt "..\README"
+ File /oname=README-mingw.txt "..\README.mingw"
+
+ CreateDirectory "$SMPROGRAMS\${INSTALL}"
+ CreateShortCut "$SMPROGRAMS\${INSTALL}\${APPNAME}.lnk" "$INSTDIR\bin\${EXENAME}"
+ CreateShortCut "$SMPROGRAMS\${INSTALL}\Uninstall.lnk" "$INSTDIR\uninstall.exe"
+
+SectionEnd
+
+Section "development" Section2
+
+ SectionIn 1 2
+
+ ; Set Section properties
+ SetOverwrite on
+
+ ; Set Section Files and Shortcuts
+ SetOutPath "$INSTDIR\share\${APPNAME}"
+
+ SetOutPath "$INSTDIR\include\${APPNAME}${MY_MODEL}"
+
+ File ".\include\${APPNAME}${MY_MODEL}\*.h"
+
+ SetOutPath "$INSTDIR\lib"
+
+ File ".\lib\*.a"
+
+SectionEnd
+
+Section "examples" Section3
+
+ SectionIn 1
+
+ ; Set Section properties
+ SetOverwrite on
+
+ ; Set Section Files and Shortcuts
+ SetOutPath "$INSTDIR\lib\${APPNAME}"
+
+SectionEnd
+
+Section -FinishSection
+
+ WriteRegStr HKLM "Software\${SUBKEY}" "" "$INSTDIR"
+ WriteRegStr HKLM "Software\${SUBKEY}" "Environment" ""
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALL}" "DisplayName" "${APPNAME} ${VERSION_FULL} (Console)"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALL}" "UninstallString" "$INSTDIR\uninstall.exe"
+ WriteUninstaller "$INSTDIR\uninstall.exe"
+
+SectionEnd
+
+; Modern install component descriptions
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section1} "${SUBKEY} runtime"
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section2} "Development headers and libraries"
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section3} "Examples"
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+;Uninstall section
+Section Uninstall
+
+ ;Remove from registry...
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALL}"
+ DeleteRegKey HKLM "SOFTWARE\${SUBKEY}"
+
+ ; Delete self
+ Delete "$INSTDIR\uninstall.exe"
+
+ ; Delete Shortcuts
+ Delete "$SMPROGRAMS\${INSTALL}\${APPNAME}.lnk"
+ Delete "$SMPROGRAMS\${INSTALL}\Uninstall.lnk"
+
+ ; Clean up application
+ Delete "$INSTDIR\bin\libform${MY_MODEL}${MY_ABI}.dll"
+ Delete "$INSTDIR\bin\libmenu${MY_MODEL}${MY_ABI}.dll"
+ Delete "$INSTDIR\bin\libncurses++${MY_MODEL}${MY_ABI}.dll"
+ Delete "$INSTDIR\bin\libncurses${MY_MODEL}${MY_ABI}.dll"
+ Delete "$INSTDIR\bin\libpanel${MY_MODEL}${MY_ABI}.dll"
+
+ Delete "$INSTDIR\include\${APPNAME}${MY_MODEL}\*.h"
+
+ Delete "$INSTDIR\lib\libform${MY_MODEL}.a"
+ Delete "$INSTDIR\lib\libmenu${MY_MODEL}.a"
+ Delete "$INSTDIR\lib\libncurses++${MY_MODEL}.a"
+ Delete "$INSTDIR\lib\libncurses${MY_MODEL}.a"
+ Delete "$INSTDIR\lib\libpanel${MY_MODEL}.a"
+
+ Delete "$INSTDIR\lib\libform${MY_MODEL}.dll.a"
+ Delete "$INSTDIR\lib\libmenu${MY_MODEL}.dll.a"
+ Delete "$INSTDIR\lib\libncurses++${MY_MODEL}.dll.a"
+ Delete "$INSTDIR\lib\libncurses${MY_MODEL}.dll.a"
+ Delete "$INSTDIR\lib\libpanel${MY_MODEL}.dll.a"
+
+ Delete "$INSTDIR\lib\${APPNAME}\*.exe"
+
+ Delete "$INSTDIR\share\${APPNAME}\*.*"
+
+ ; Remove remaining directories
+ RMDir "$SMPROGRAMS\${INSTALL}"
+ RMDir "$INSTDIR\share\${APPNAME}"
+ RMDir "$INSTDIR\share"
+ RMDir "$INSTDIR\lib\${APPNAME}"
+ RMDir "$INSTDIR\lib"
+ RMDir "$INSTDIR\include\${APPNAME}${MY_MODEL}"
+ RMDir "$INSTDIR\include"
+ RMDir "$INSTDIR\bin"
+ RMDir "$INSTDIR\"
+
+SectionEnd \ No newline at end of file
diff --git a/package/mingw-ncurses.spec b/package/mingw-ncurses.spec
new file mode 100644
index 000000000000..2e86c17f368e
--- /dev/null
+++ b/package/mingw-ncurses.spec
@@ -0,0 +1,126 @@
+%?mingw_package_header
+
+Summary: shared libraries for terminal handling
+Name: mingw32-ncurses6
+Version: 5.9
+Release: 20140222
+License: X11
+Group: Development/Libraries
+Source: ncurses-%{version}-%{release}.tgz
+# URL: http://invisible-island.net/ncurses/
+
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw32-gcc
+BuildRequires: mingw32-binutils
+
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-gcc
+BuildRequires: mingw64-binutils
+
+%define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
+%define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
+
+%description -n mingw32-ncurses6
+Cross-compiling support for ncurses to mingw32.
+
+The ncurses library routines are a terminal-independent method of
+updating character screens with reasonable optimization.
+
+This package is used for testing ABI 6 with cross-compiles to MinGW.
+
+%package -n mingw64-ncurses6
+Summary: Curses library for MinGW64
+
+%description -n mingw64-ncurses6
+Cross-compiling support for ncurses to mingw64.
+
+The ncurses library routines are a terminal-independent method of
+updating character screens with reasonable optimization.
+
+This package is used for testing ABI 6 with cross-compiles to MinGW.
+
+%prep
+
+%define CFG_OPTS \\\
+ --disable-echo \\\
+ --disable-db-install \\\
+ --disable-getcap \\\
+ --disable-hard-tabs \\\
+ --disable-leaks \\\
+ --disable-macros \\\
+ --disable-overwrite \\\
+ --disable-termcap \\\
+ --enable-const \\\
+ --enable-ext-colors \\\
+ --enable-ext-mouse \\\
+ --enable-interop \\\
+ --enable-sp-funcs \\\
+ --enable-term-driver \\\
+ --enable-warnings \\\
+ --enable-widec \\\
+ --verbose \\\
+ --with-cxx-shared \\\
+ --with-develop \\\
+ --with-fallbacks=unknown,rxvt \\\
+ --with-shared \\\
+ --with-tparm-arg=intptr_t \\\
+ --with-trace \\\
+ --with-xterm-kbs=DEL \\\
+ --without-ada \\\
+ --without-debug \\\
+ --with-install-prefix=$RPM_BUILD_ROOT \\\
+ --without-manpages \\\
+ --without-progs \\\
+ --without-tests
+
+%define debug_package %{nil}
+%setup -q -n ncurses-%{version}-%{release}
+
+%build
+mkdir BUILD-W32
+pushd BUILD-W32
+CFLAGS="%{CC_NORMAL}" \
+CC=%{mingw32_cc} \
+%mingw32_configure %{CFG_OPTS}
+make
+popd
+
+mkdir BUILD-W64
+pushd BUILD-W64
+CFLAGS="%{CC_NORMAL}" \
+CC=%{mingw64_cc} \
+%mingw64_configure %{CFG_OPTS}
+make
+popd
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+pushd BUILD-W32
+%{mingw32_make} install
+popd
+
+pushd BUILD-W64
+%{mingw64_make} install
+popd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+
+%files -n mingw32-ncurses6
+%{mingw32_bindir}/*
+%{mingw32_includedir}/*
+%{mingw32_libdir}/*
+
+%files -n mingw64-ncurses6
+%{mingw64_bindir}/*
+%{mingw64_includedir}/*
+%{mingw64_libdir}/*
+
+%changelog
+
+* Sat Aug 03 2013 Thomas E. Dickey
+- initial version, using mingw-pdcurses package as a guide.
diff --git a/package/ncurses.spec b/package/ncurses.spec
new file mode 100644
index 000000000000..d786d6e3818b
--- /dev/null
+++ b/package/ncurses.spec
@@ -0,0 +1,92 @@
+Summary: shared libraries for terminal handling
+Name: ncurses6
+Version: 5.9
+Release: 20140222
+License: X11
+Group: Development/Libraries
+Source: ncurses-%{version}-%{release}.tgz
+# URL: http://invisible-island.net/ncurses/
+
+%define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
+%define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
+
+%define _prefix /usr/local/ncurses6
+%define MYDATA /usr/local/ncurses/share/terminfo
+
+%description
+The ncurses library routines are a terminal-independent method of
+updating character screens with reasonable optimization.
+
+This package is used for testing ABI 6.
+
+%prep
+
+%define debug_package %{nil}
+%setup -q -n ncurses-%{version}-%{release}
+
+%build
+CFLAGS="%{CC_NORMAL}" \
+RPATH_LIST=../lib:%{_prefix}/lib \
+%configure \
+ --target %{_target_platform} \
+ --prefix=%{_prefix} \
+ --includedir='${prefix}/include' \
+ --with-default-terminfo-dir=%{MYDATA} \
+ --with-install-prefix=$RPM_BUILD_ROOT \
+ --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \
+ --disable-echo \
+ --disable-getcap \
+ --disable-leaks \
+ --disable-macros \
+ --disable-overwrite \
+ --disable-termcap \
+ --enable-const \
+ --enable-ext-colors \
+ --enable-ext-mouse \
+ --enable-hard-tabs \
+ --enable-interop \
+ --enable-rpath \
+ --enable-sp-funcs \
+ --enable-warnings \
+ --enable-widec \
+ --verbose \
+ --with-develop \
+ --with-shared \
+ --with-termlib \
+ --with-ticlib \
+ --with-trace \
+ --with-cxx-shared \
+ --with-xterm-kbs=DEL \
+ --without-ada \
+ --without-debug \
+ --without-normal
+
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install.libs install.progs
+rm -f test/ncurses
+( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses6 )
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{_includedir}/*
+%{_libdir}/*
+#%{_datadir}/*
+
+%changelog
+
+* Sat Mar 09 2013 Thomas E. Dickey
+- add --with-cxx-shared option to demonstrate c++ binding as shared library
+
+* Sat Oct 27 2012 Thomas E. Dickey
+- add ncurses program as "ncurses6" to provide demonstration.
+
+* Fri Jun 08 2012 Thomas E. Dickey
+- initial version.