]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian-mingw64/rules
ncurses 5.9 - patch 20150321
[ncurses.git] / package / debian-mingw64 / rules
index 864ff654f8adc4e7105d0204ac10ba60ea1dd452..599112c182af513d721610d245aaaa9b1e6b2f5c 100644 (file)
@@ -17,6 +17,7 @@ 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_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
 
@@ -40,6 +41,8 @@ CONFIG_OPTIONS = \
        --enable-warnings \
        --enable-widec \
        --verbose \
+       --with-chtype=uint32_t \
+       --with-mmask_t=uint32_t \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
@@ -106,6 +109,13 @@ install-stamp: build-stamp
 
        $(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.