2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/giflib
16 PKG_MD5SUM:=7125644155ae6ad33dbc9fc15a14735f
19 PKG_LICENSE_FILES:=COPYING
22 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
24 include $(INCLUDE_DIR)/package.mk
30 URL:=http://sourceforge.net/projects/giflib
33 define Package/giflib/description
34 giflib is a library for reading and writing gif images.
35 It is API and ABI compatible with libungif which was in wide use while
36 the LZW compression algorithm was patented.
39 TARGET_CFLAGS += $(FPIC)
40 CONFIGURE_ARGS += --enable-x11=no
43 $(MAKE) -C $(PKG_BUILD_DIR)
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/{lib,include}
48 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib
49 $(CP) $(PKG_BUILD_DIR)/lib/.libs/libgif.a $(1)/usr/lib
50 $(CP) $(PKG_BUILD_DIR)/lib/libgif.la $(1)/usr/lib
51 $(CP) $(PKG_BUILD_DIR)/lib/*.h $(1)/usr/include/
54 define Package/giflib/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
59 $(eval $(call BuildPackage,giflib))