aboutsummaryrefslogtreecommitdiff
path: root/package/debian-mingw/rules
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2020-02-07 08:36:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2020-02-07 08:36:41 +0000
commitf0179cb6083cc92e5947ae56e6a0a5c5328aead0 (patch)
treebcee0ba9c2149b71f0bfc036df1e61e3105bf980 /package/debian-mingw/rules
parentcea297eb34d2361e79529034397465068ae34ecd (diff)
downloadsrc-f0179cb6083cc92e5947ae56e6a0a5c5328aead0.tar.gz
src-f0179cb6083cc92e5947ae56e6a0a5c5328aead0.zip
Vendor import ncurses 6.1-20200118vendor/ncurses/6.1-20200118
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=357645 svn path=/vendor/ncurses/6.1-20200118/; revision=357646; tag=vendor/ncurses/6.1-20200118
Diffstat (limited to 'package/debian-mingw/rules')
-rwxr-xr-xpackage/debian-mingw/rules53
1 files changed, 36 insertions, 17 deletions
diff --git a/package/debian-mingw/rules b/package/debian-mingw/rules
index 35dacc04eaa3..4aa7cb957ac9 100755
--- a/package/debian-mingw/rules
+++ b/package/debian-mingw/rules
@@ -11,40 +11,48 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+MY_ABI=6
+
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_BIN = /usr/bin
MINGW_TOP = /usr/$(TARGET)
-MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses6
+MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses$(MY_ABI)
CFLAGS = $(CC_NORMAL)
+verbose = # -v
+
CONFIG_OPTIONS = \
- --disable-echo \
--disable-db-install \
+ --disable-echo \
--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-opaque-curses \
+ --enable-opaque-form \
+ --enable-opaque-menu \
+ --enable-opaque-panel \
+ --enable-pc-files \
--enable-term-driver \
--enable-warnings \
--enable-widec \
--verbose \
+ --with-abi-version=$(MY_ABI) \
--with-cxx-shared \
--with-develop \
--with-fallbacks=unknown,rxvt \
+ --with-tic-path=/usr/bin/tic$(MY_ABI) \
+ --with-infocmp-path=/usr/bin/infocmp$(MY_ABI) \
--with-shared \
- --with-tparm-arg=intptr_t \
--with-trace \
--with-xterm-kbs=DEL \
--without-ada \
@@ -75,6 +83,8 @@ configure-stamp:
--target=$(TARGET) \
--prefix=$(MINGW_TOP) \
--with-build-cc=$(BUILD_CC) \
+ --with-pc-suffix=$(MY_ABI) \
+ --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig \
$(CONFIG_OPTIONS)
touch configure-stamp
@@ -102,10 +112,17 @@ install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
+ dh_installdirs $(verbose)
$(MAKE) install.libs DESTDIR=$(MINGW_TMP)
+ mkdir -p $(MINGW_TMP)$(MINGW_BIN)
+ for name in $(MINGW_TMP)$(MINGW_TOP)/bin/*-config; \
+ do \
+ base=`basename $$name`; \
+ ln -v $$name $(MINGW_TMP)$(MINGW_BIN)/$(TARGET)-$$base; \
+ done
+
touch install-stamp
# Build architecture-independent files here.
@@ -115,16 +132,18 @@ binary-indep: build install
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
- dh_testroot
- dh_installchangelogs NEWS
+ dh_testroot $(verbose)
+ dh_lintian $(verbose)
+ dh_installdocs $(verbose)
+ dh_installchangelogs $(verbose) NEWS
# dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_compress $(verbose)
+ dh_fixperms $(verbose)
+ dh_installdeb $(verbose)
+ dh_shlibdeps $(verbose)
+ dh_gencontrol $(verbose)
+ dh_md5sums $(verbose)
+ dh_builddeb $(verbose)
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install install-stamp