lots of package cleanups/fixes
[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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=giflib
12 PKG_VERSION:=4.1.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.sourceforge.net/libungif/
17 PKG_FIXUP := libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/giflib
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=GIF libraries
25 DEPENDS:=
26 endef
27
28 CONFIGURE_ARGS+=--without-x
29
30 define Build/Configure
31 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
32 if [ -x $(CONFIGURE_CMD) ]; then \
33 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
34 $(CONFIGURE_VARS) \
35 $(CONFIGURE_CMD) \
36 $(CONFIGURE_ARGS_XTRA) \
37 $(CONFIGURE_ARGS) ;\
38 fi \
39 )
40 endef
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/libgif.la $(1)/usr/lib
50 $(CP) $(PKG_BUILD_DIR)/lib/*.h $(1)/usr/include/
51 endef
52
53 define Package/giflib/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,giflib))