view src/readline.mk @ 3003:7d692ab680ab

Change makefile download and build rules to log to symbolic link file instead of log/timestamp/file. * Makefile: update $(PREFIX)/installed/$(1): rule to output build and download output to symbolic file.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 29 May 2013 20:54:04 -0400
parents 4f9b72cf7ee7
children 100e618349f7
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := readline
$(PKG)_IGNORE   :=
$(PKG)_CHECKSUM := a9761cd9c3da485eb354175fcc2fe35856bc43ac
$(PKG)_SUBDIR   := readline-$($(PKG)_VERSION)
$(PKG)_FILE     := readline-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)

ifeq ($(MXE_NATIVE_BUILD),yes)
  $(PKG)_TERMCAP_LIB := ncurses
else
  ifeq ($(MXE_SYSTEM),mingw)
    $(PKG)_TERMCAP_LIB := termcap
  else
    $(PKG)_TERMCAP_LIB := ncurses
  endif
endif

$(PKG)_DEPS     := gcc $($(PKG)_TERMCAP_LIB)

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \
    grep 'readline-' | \
    $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    $(SED) -i 's,^ *case SIGQUIT:.*,,' '$(1)/signals.c'
    $(SED) -i 's,^ *case SIGTSTP:.*,,' '$(1)/signals.c'
    cd '$(1)' && ./configure \
        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
        --host='$(TARGET)' \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(PREFIX)/$(TARGET)' \
        --enable-multibyte \
        --without-purify
    $(MAKE) -C '$(1)' -j '$(JOBS)' install
endef