mirror of
https://github.com/Aigor44/ncursesw-morphos.git
synced 2024-12-27 07:49:06 +08:00
e2dee48666
+ some build-fixes for ncurses-examples with NetBSD-6.0 curses, though it lacks some common functions such as use_env() which is not yet addressed. + build-fix and some compiler warning fixes for ncurses-examples with OpenBSD 5.3 + fix a possible null-pointer reference in a trace message from newterm. + quiet a few warnings from NetBSD 6.0 namespace pollution by nonstandard popcount() function in standard strings.h header. + ignore g++ 4.2.1 warnings for "-Weffc++" in c++/cursesmain.cc + fix a few overlooked places for --enable-string-hacks option.
127 lines
2.8 KiB
RPMSpec
127 lines
2.8 KiB
RPMSpec
%?mingw_package_header
|
|
|
|
Summary: shared libraries for terminal handling
|
|
Name: mingw32-ncurses6
|
|
Release: 5.9
|
|
Version: 20130928
|
|
License: X11
|
|
Group: Development/Libraries
|
|
Source: ncurses-%{release}-%{version}.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-%{release}-%{version}
|
|
|
|
%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.
|