summaryrefslogtreecommitdiffstats
path: root/src/jpeg.mk
blob: fcf2bb6cd44a7fcc4ac02d9daa8b1b1305ec960a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# jpeg
# http://packages.debian.org/unstable/source/libjpeg6b

PKG            := jpeg
$(PKG)_VERSION := 6b
$(PKG)_SUBDIR  := jpeg-$($(PKG)_VERSION)
$(PKG)_WEBSITE := http://www.ijg.org/
$(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