[package] update cgilib to 0.7 (#5367)
[openwrt/svn-archive/archive.git] / libs / giflib / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=giflib
11 PKG_VERSION:=4.1.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/giflib
16 PKG_MD5SUM:=7125644155ae6ad33dbc9fc15a14735f
17
18 PKG_FIXUP := libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/giflib
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=GIF libraries
26 URL:=http://sourceforge.net/projects/giflib
27 endef
28
29 define Package/giflib/description
30 giflib is a library for reading and writing gif images.
31 It is API and ABI compatible with libungif which was in wide use while
32 the LZW compression algorithm was patented.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36 CONFIGURE_ARGS += --without-x
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/{lib,include}
44 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/lib/.libs/libgif.a $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/lib/libgif.la $(1)/usr/lib
47 $(CP) $(PKG_BUILD_DIR)/lib/*.h $(1)/usr/include/
48 endef
49
50 define Package/giflib/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,giflib))