packages/giflib: fix whitespaces
[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_LICENSE:=MIT
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/giflib
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=GIF libraries
30 URL:=http://sourceforge.net/projects/giflib
31 endef
32
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.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40 CONFIGURE_ARGS += --enable-x11=no
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR)
44 endef
45
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/
52 endef
53
54 define Package/giflib/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,giflib))