762c7c4b693fd17676b55ad8b9c5a891d8be2ce1
[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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=giflib
12 PKG_VERSION:=4.1.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/giflib
17 PKG_MD5SUM:=7125644155ae6ad33dbc9fc15a14735f
18
19 PKG_FIXUP := libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/giflib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=GIF libraries
27 URL:=http://sourceforge.net/projects/giflib
28 endef
29
30 define Package/giflib/description
31 giflib is a library for reading and writing gif images.
32 It is API and ABI compatible with libungif which was in wide use while
33 the LZW compression algorithm was patented.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37 CONFIGURE_ARGS += --without-x
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR)
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/{lib,include}
45 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(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))