# HG changeset patch # User Allen Choong # Date 1334507865 -36000 # Node ID 7f4703a75221733b188e6464226d5bc8609386fd # Parent 695798a54e5e6575a25e63da5dd3cf341125bf24 new package: ncurses diff -r 695798a54e5e -r 7f4703a75221 src/ncurses.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ncurses.mk Mon Apr 16 02:37:45 2012 +1000 @@ -0,0 +1,37 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# ncurses +PKG := ncurses +$(PKG)_IGNORE := +$(PKG)_VERSION := 5.9 +$(PKG)_CHECKSUM := 3e042e5f2c7223bffdaac9646a533b8c758b65b5 +$(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION) +$(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.gnu.org/software/ncurses/ +$(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://www.gnu.org/software/ncurses/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix=$(PREFIX)/$(TARGET) \ + --disable-home-terminfo \ + --enable-sp-funcs \ + --enable-term-driver \ + --enable-interop \ + --without-debug \ + --without-ada \ + --without-manpages \ + --enable-pc-files \ + --with-normal \ + --without-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef +