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.

63 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2016 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.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/giflib
  13. PKG_HASH:=df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:giflib_project:giflib
  18. PKG_FIXUP:=autoreconf
  19. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  20. include $(INCLUDE_DIR)/host-build.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/giflib
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=GIF libraries
  26. URL:=http://sourceforge.net/projects/giflib
  27. endef
  28. define Package/giflib/description
  29. giflib is a library for reading and writing gif images.
  30. It is API and ABI compatible with libungif which was in wide use while
  31. the LZW compression algorithm was patented.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR)
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/{lib,include}
  39. $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib
  40. $(CP) $(PKG_BUILD_DIR)/lib/.libs/libgif.a $(1)/usr/lib
  41. $(CP) $(PKG_BUILD_DIR)/lib/libgif.la $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/lib/*.h $(1)/usr/include/
  43. endef
  44. define Package/giflib/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_BUILD_DIR)/lib/.libs/lib*so* $(1)/usr/lib/
  47. endef
  48. $(eval $(call HostBuild))
  49. $(eval $(call BuildPackage,giflib))