mxe/src/termcap.mk

34 lines
1014 B
Makefile

# This file is part of MXE.
# See index.html for further information.
PKG := termcap
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.3.1
$(PKG)_CHECKSUM := 91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://ftp.gnu.org/gnu/termcap/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://ftp.gnu.org/gnu/termcap/' | \
grep 'termcap-' | \
$(SED) -n 's,.*termcap-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
# configure script is ancient and lacks cross-compiling support
cd '$(1)' && autoreconf -fi
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' \
AR='$(TARGET)-ar' \
oldincludedir= \
install
# no shared support in configure/Makefile
$(if $(BUILD_SHARED), \
$(MAKE_SHARED_FROM_STATIC) '$(1)/libtermcap.a')
endef