2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2012-04-15 17:37:45 +01:00
|
|
|
|
|
|
|
PKG := ncurses
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.gnu.org/software/ncurses/
|
|
|
|
$(PKG)_DESCR := Ncurses
|
2012-04-15 17:37:45 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2015-03-01 14:30:56 +00:00
|
|
|
$(PKG)_VERSION := e14300b
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 3564ffa540cc069854607a0fb10d258c12769f8f6ee752f66038ba95a5e5f650
|
2014-08-02 04:29:22 +01:00
|
|
|
# $(PKG)_VERSION := 5.9
|
|
|
|
# $(PKG)_SUBDIR := ncurses-$($(PKG)_VERSION)
|
|
|
|
# $(PKG)_FILE := ncurses-$($(PKG)_VERSION).tar.gz
|
|
|
|
# $(PKG)_URL := http://ftp.gnu.org/pub/gnu/ncurses/$($(PKG)_FILE)
|
|
|
|
$(PKG)_SUBDIR := mirror-$(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_URL := https://github.com/mirror/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
2014-07-27 18:24:38 +01:00
|
|
|
$(PKG)_DEPS := gcc libgnurx
|
2012-04-15 17:37:45 +01:00
|
|
|
|
2014-08-02 04:29:22 +01:00
|
|
|
define $(PKG)_UPDATE_RELEASE
|
2012-05-08 16:16:05 +01:00
|
|
|
$(WGET) -q -O- 'http://ftp.gnu.org/pub/gnu/ncurses/?C=M;O=D' | \
|
2012-04-15 17:39:35 +01:00
|
|
|
$(SED) -n 's,.*<a href="ncurses-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
2012-04-15 17:37:45 +01:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
2014-08-02 04:29:22 +01:00
|
|
|
$(PKG)_UPDATE = $(call MXE_GET_GITHUB_SHA, mirror/ncurses, master)
|
|
|
|
|
2012-04-15 17:37:45 +01:00
|
|
|
define $(PKG)_BUILD
|
2013-04-28 05:16:07 +01:00
|
|
|
# native build of terminfo compiler
|
|
|
|
cp -Rp '$(1)' '$(1).native'
|
|
|
|
cd '$(1).native' && ./configure
|
|
|
|
$(MAKE) -C '$(1).native/include' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1).native/progs' -j '$(JOBS)' tic
|
|
|
|
|
2015-09-03 09:23:53 +01:00
|
|
|
cd '$(1)' && \
|
|
|
|
TIC_PATH='$(1).native/progs/tic' \
|
|
|
|
./configure \
|
2012-04-15 17:38:55 +01:00
|
|
|
--host='$(TARGET)' \
|
2012-05-17 21:45:06 +01:00
|
|
|
--build="`config.guess`" \
|
2012-04-15 17:38:55 +01:00
|
|
|
--prefix=$(PREFIX)/$(TARGET) \
|
2015-09-30 05:21:10 +01:00
|
|
|
--with-build-cc=$(BUILD_CC) \
|
|
|
|
--with-build-cpp='$(BUILD_CC) -E' \
|
2012-04-15 17:38:55 +01:00
|
|
|
--disable-home-terminfo \
|
|
|
|
--enable-sp-funcs \
|
|
|
|
--enable-term-driver \
|
|
|
|
--enable-interop \
|
|
|
|
--without-debug \
|
|
|
|
--without-ada \
|
|
|
|
--without-manpages \
|
2014-03-10 09:41:54 +00:00
|
|
|
--without-progs \
|
|
|
|
--without-tests \
|
2012-04-15 17:38:55 +01:00
|
|
|
--enable-pc-files \
|
2015-09-11 08:01:42 +01:00
|
|
|
--with-pkg-config-libdir='$(PREFIX)/$(TARGET)/lib/pkgconfig' \
|
2014-08-02 04:29:22 +01:00
|
|
|
$(if $(BUILD_STATIC), \
|
|
|
|
--with-normal --without-shared --with-static, \
|
|
|
|
--without-normal --without-static --with-shared)
|
2013-04-28 05:16:07 +01:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
2015-09-03 09:23:53 +01:00
|
|
|
$(MAKE) -C '$(1)' -j 1 install
|
2015-03-01 14:30:56 +00:00
|
|
|
endef
|