summaryrefslogtreecommitdiffstats
path: root/src/giflib.mk
blob: 9b3d2f688cdc6315db1c3681d8e7a72334003d37 (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
25
# giflib

PKG            := giflib
$(PKG)_VERSION := 4.1.6
$(PKG)_SUBDIR  := giflib-$($(PKG)_VERSION)
$(PKG)_FILE    := giflib-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://sourceforge.net/projects/libungif/
$(PKG)_URL     := http://$(SOURCEFORGE_MIRROR)/giflib/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=102202&package_id=119585' | \
    grep 'giflib-' | \
    $(SED) -n 's,.*giflib-\([0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

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