view src/jpeg.mk @ 256:f14c13297108

improved quoting
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 28 Feb 2009 15:59:29 +0100
parents 38ddc0df2497
children 5bf9071e67b6
line wrap: on
line source

# jpeg
# http://www.ijg.org/
# http://packages.debian.org/unstable/source/libjpeg6b

PKG            := jpeg
$(PKG)_VERSION := 6b
$(PKG)_SUBDIR  := jpeg-$($(PKG)_VERSION)
$(PKG)_FILE    := libjpeg6b_$($(PKG)_VERSION).orig.tar.gz
$(PKG)_URL     := http://ftp.debian.org/debian/pool/main/libj/libjpeg6b/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://packages.debian.org/unstable/source/libjpeg6b' | \
    $(SED) -n 's,.*libjpeg6b_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | \
    tail -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        CC='$(TARGET)-gcc' RANLIB='$(TARGET)-ranlib' \
        --disable-shared \
        --prefix='$(PREFIX)/$(TARGET)'
    $(MAKE) -C '$(1)' -j '$(JOBS)' install-lib
endef