# This file is part of MXE.
# See index.html for further information.
PKG := giflib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 5.1.4
$(PKG)_CHECKSUM := df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5
$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/' | \
grep ']*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
CPPFLAGS='-D_OPEN_BINARY'
echo 'all:' > '$(1)/doc/Makefile'
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
endef