ncurses 5.9 - patch 20150328
[ncurses.git] / package / debian-mingw / rules
index ba40251cdfbcc89b67cab7f32f14584adce7923f..9b910ea56b39f324c45fbda45948392f722118e4 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    = i686-w64-mingw32
+MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses6
 
@@ -34,6 +35,7 @@ CONFIG_OPTIONS = \
        --enable-const \
        --enable-ext-colors \
        --enable-ext-mouse \
+       --enable-ext-putwin \
        --enable-interop \
        --enable-sp-funcs \
        --enable-term-driver \
@@ -108,6 +110,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.