You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=giflib
  9. PKG_VERSION:=5.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/giflib
  13. PKG_MD5SUM:=c7e9f1c10b755ab955156d4c1ac7fc5d
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/giflib
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=GIF libraries
  23. URL:=http://sourceforge.net/projects/giflib
  24. endef
  25. define Package/giflib/description
  26. giflib is a library for reading and writing gif images.
  27. It is API and ABI compatible with libungif which was in wide use while
  28. the LZW compression algorithm was patented.
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += --enable-x11=no
  32. define Build/Compile
  33. $(MAKE) -C $(PKG_BUILD_DIR)
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/{lib,include}
  37. $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/lib/.libs/libgif.a $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/lib/libgif.la $(1)/usr/lib
  40. $(CP) $(PKG_BUILD_DIR)/lib/*.h $(1)/usr/include/
  41. endef
  42. define Package/giflib/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,giflib))