mxe/src/giflib.mk

28 lines
855 B
Makefile
Raw Normal View History

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
PKG := giflib
$(PKG)_IGNORE :=
2012-05-21 11:07:04 +01:00
$(PKG)_CHECKSUM := bc942711f75de7d8539f79be34d69c0d53c381c1
$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
2012-05-21 11:07:04 +01:00
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-4.x/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
2008-11-08 20:09:55 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/giflib 4.x/' | \
$(SED) -n 's,.*/giflib-\([0-9][^"]*\)/".*,\1,p' | \
head -1
2008-11-08 20:09:55 +00:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
2012-05-21 11:07:04 +01:00
--build="`config.guess`" \
2008-11-08 20:09:55 +00:00
--prefix='$(PREFIX)/$(TARGET)' \
2012-05-21 11:07:04 +01:00
--disable-shared \
--without-x \
CPPFLAGS='-D_OPEN_BINARY'
2008-11-08 20:09:55 +00:00
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
endef