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.

78 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)/package.mk
  21. define Package/giflib
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=GIF libraries
  25. URL:=https://sourceforge.net/projects/giflib
  26. endef
  27. define Package/giflib/description
  28. giflib is a library for reading and writing gif images.
  29. It is API and ABI compatible with libungif which was in wide use while
  30. the LZW compression algorithm was patented.
  31. endef
  32. define Package/giflib-utils
  33. SECTION:=utils
  34. CATEGORY:=Utilities
  35. TITLE:=GIF utilities
  36. URL:=https://sourceforge.net/projects/giflib
  37. endef
  38. define Package/giflib-utils/description
  39. These are the utilities that come with giflib.
  40. endef
  41. TARGET_CFLAGS += -ffunction-sections -fdata-sections $(FPIC)
  42. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  43. MAKE_FLAGS += \
  44. CFLAGS="$(TARGET_CFLAGS)" \
  45. LDFLAGS="$(TARGET_LDFLAGS)" \
  46. PREFIX=$(CONFIGURE_PREFIX)
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/{lib,include}
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgif.so* $(1)/usr/lib
  50. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libgif.a $(1)/usr/lib
  51. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  52. endef
  53. define Package/giflib/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgif.so* $(1)/usr/lib
  56. endef
  57. define Package/giflib-utils/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  60. endef
  61. $(eval $(call BuildPackage,giflib))
  62. $(eval $(call BuildPackage,giflib-utils))