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.

80 lines
2.0 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.2.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/giflib
  13. PKG_HASH:=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
  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_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  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:=https://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. define Package/giflib-utils
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. TITLE:=GIF utilities
  37. URL:=https://sourceforge.net/projects/giflib
  38. endef
  39. define Package/giflib-utils/description
  40. These are the utilities that come with giflib.
  41. endef
  42. TARGET_CFLAGS += -ffunction-sections -fdata-sections $(FPIC)
  43. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  44. MAKE_FLAGS += \
  45. CFLAGS="$(TARGET_CFLAGS)" \
  46. LDFLAGS="$(TARGET_LDFLAGS)" \
  47. PREFIX=$(CONFIGURE_PREFIX)
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/{lib,include}
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgif.so* $(1)/usr/lib
  51. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libgif.a $(1)/usr/lib
  52. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  53. endef
  54. define Package/giflib/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgif.so* $(1)/usr/lib
  57. endef
  58. define Package/giflib-utils/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  61. endef
  62. $(eval $(call HostBuild))
  63. $(eval $(call BuildPackage,giflib))
  64. $(eval $(call BuildPackage,giflib-utils))