diff options
Diffstat (limited to 'src/ncurses.mk')
-rw-r--r-- | src/ncurses.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ncurses.mk b/src/ncurses.mk new file mode 100644 index 0000000..7b9c949 --- /dev/null +++ b/src/ncurses.mk @@ -0,0 +1,34 @@ +# This file is part of MXE. +# See index.html for further information. + +# ncurses +PKG := ncurses +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 3e042e5f2c7223bffdaac9646a533b8c758b65b5 +$(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION) +$(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \ + $(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\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 |