translated package: jpeg

This commit is contained in:
Volker Grabsch 2008-11-08 21:00:54 +01:00
parent 4853b650d5
commit 56ed9c8a75
1 changed files with 24 additions and 0 deletions

24
src/jpeg.mk Normal file
View File

@ -0,0 +1,24 @@
# 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