view src/lame.mk @ 1285:573d85563baa

bugfix for lame: wine confuses the cross-compilation detection
author Tony Theodore <tonyt@logyst.com>
date Tue, 05 Oct 2010 17:56:43 +1100
parents 050f5ff03b26
children 2726fbef533c
line wrap: on
line source

# This file is part of mingw-cross-env.
# See doc/index.html for further information.

# lame
PKG             := lame
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.98.4
$(PKG)_CHECKSUM := eb29c7c937b9b7330ca979dfabc25ab2a31b9db2
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE  := http://lame.sourceforge.net/
$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/lame/files/lame/) | \
    $(SED) -n 's,.*lame-\([0-9][^>]*\)\.tar.*,\1,p' | \
    tail -1
endef

define $(PKG)_BUILD
    # wine confuses the cross-compiling detection, so set it explicitly
    $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-shared
    $(MAKE) -C '$(1)' -j '$(JOBS)'
    $(MAKE) -C '$(1)' -j 1 install
endef