view src/libiconv.mk @ 221:b588e9bb1dcc

portability fix for MacOS X
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 05 Feb 2009 00:35:56 +0100
parents 54e76514138d
children 5bf9071e67b6
line wrap: on
line source

# libiconv
# http://www.gnu.org/software/libiconv/

PKG            := libiconv
$(PKG)_VERSION := 1.12
$(PKG)_SUBDIR  := libiconv-$($(PKG)_VERSION)
$(PKG)_FILE    := libiconv-$($(PKG)_VERSION).tar.gz
$(PKG)_URL     := http://ftp.gnu.org/pub/gnu/libiconv/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://www.gnu.org/software/libiconv/' | \
    grep 'libiconv-' | \
    $(SED) -n 's,.*libiconv-\([0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    $(SED) 's, sed , $(SED) ,g' -i '$(1)/windows/windres-options'
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-shared \
        --disable-nls
    $(MAKE) -C '$(1)' -j '$(JOBS)' install
endef