summaryrefslogtreecommitdiffstats
path: root/src/ncurses.mk
diff options
context:
space:
mode:
authorAllen Choong <allencch@hotmail.com>2012-04-15 16:37:45 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-04-15 16:37:45 (GMT)
commita2f542edde758a0d092763c34b81017f0ba0e7d8 (patch)
tree6571d57884c084a91c180dae4e7188615873b37e /src/ncurses.mk
parenta091c1fcb6a0f6ce67d60ca78612a0df607c98ca (diff)
downloadmxe-a2f542edde758a0d092763c34b81017f0ba0e7d8.zip
mxe-a2f542edde758a0d092763c34b81017f0ba0e7d8.tar.gz
mxe-a2f542edde758a0d092763c34b81017f0ba0e7d8.tar.bz2
new package: ncurses
Diffstat (limited to 'src/ncurses.mk')
-rw-r--r--src/ncurses.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/ncurses.mk b/src/ncurses.mk
new file mode 100644
index 0000000..48aedb5
--- /dev/null
+++ b/src/ncurses.mk
@@ -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
+