blob: 93de229fdcbfe3a3d557cf3fd19976573be0f9cb (
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
26
|
# giflib
# http://sourceforge.net/projects/libungif/
PKG := giflib
$(PKG)_VERSION := 4.1.6
$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
$(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
$(SED) 's,u_int32_t,unsigned int,' -i '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--without-x
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
endef
|