blob: f00eb73060af61b364db8ed72a010ab033aea56b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# This file is part of MXE.
# See index.html for further information.
PKG := ncurses
$(PKG)_IGNORE :=
$(PKG)_VERSION := e14300b
$(PKG)_CHECKSUM := fcc1997439560b6cb7f9bf2f73f6245310f06c64
# $(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)
$(PKG)_DEPS := gcc libgnurx
define $(PKG)_UPDATE_RELEASE
$(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
$(PKG)_UPDATE = $(call MXE_GET_GITHUB_SHA, mirror/ncurses, master)
define $(PKG)_BUILD
# 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
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix=$(PREFIX)/$(TARGET) \
--with-build-cc=gcc \
--with-build-cpp=cpp \
--disable-home-terminfo \
--enable-sp-funcs \
--enable-term-driver \
--enable-interop \
--without-debug \
--without-ada \
--without-manpages \
--without-progs \
--without-tests \
--enable-pc-files \
PKG_CONFIG_LIBDIR='$(PREFIX)/$(TARGET)/lib/pkgconfig' \
$(if $(BUILD_STATIC), \
--with-normal --without-shared --with-static, \
--without-normal --without-static --with-shared)
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install TIC_PATH='$(1).native/progs/tic'
endef
|