2012-03-28 14:46:58 +01:00
|
|
|
# This file is part of MXE.
|
2012-03-29 11:14:15 +01:00
|
|
|
# See index.html for further information.
|
2008-11-08 20:09:55 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := giflib
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2016-07-05 19:37:38 +01:00
|
|
|
$(PKG)_VERSION := 5.1.4
|
|
|
|
$(PKG)_CHECKSUM := df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
|
2016-07-05 19:37:38 +01:00
|
|
|
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/$($(PKG)_FILE)
|
2009-04-05 13:00:17 +01:00
|
|
|
$(PKG)_DEPS := gcc
|
2008-11-08 20:09:55 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2016-07-05 19:37:38 +01:00
|
|
|
$(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/' | \
|
2012-12-12 10:31:23 +00:00
|
|
|
grep '<a href.*giflib.*bz2/download' | \
|
|
|
|
$(SED) -n 's,.*giflib-\([0-9][^>]*\)\.tar.*,\1,p' | \
|
2010-12-02 19:31:45 +00:00
|
|
|
head -1
|
2008-11-08 20:09:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && ./configure \
|
2014-07-26 03:31:46 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2010-07-28 11:51:14 +01:00
|
|
|
CPPFLAGS='-D_OPEN_BINARY'
|
2012-07-04 08:01:39 +01:00
|
|
|
echo 'all:' > '$(1)/doc/Makefile'
|
2008-11-08 20:09:55 +00:00
|
|
|
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
|
2016-07-05 19:37:38 +01:00
|
|
|
endef
|