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.

65 lines
1.7 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:=libexif
  9. PKG_VERSION:=0.6.22
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/$(PKG_NAME)/$(PKG_NAME)/releases/download/$(PKG_NAME)-0_6_22-release/
  13. PKG_HASH:=5048f1c8fc509cc636c2f97f4b40c293338b6041a5652082d5ee2cf54b530c56
  14. PKG_LICENSE:=LGPL-2.1
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:libexif:libexif
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libexif
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=library for jpeg files with exif tags
  24. URL:=https://libexif.github.io/
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  26. endef
  27. define Package/libexif/description
  28. libexif is a library for parsing, editing, and saving EXIF data. It is
  29. intended to replace lots of redundant implementations in command-line
  30. utilities and programs with GUIs.
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --enable-shared \
  34. --enable-static \
  35. --disable-rpath \
  36. --disable-nls \
  37. --without-libiconv-prefix \
  38. --without-libintl-prefix \
  39. TARGET_CFLAGS += $(FPIC)
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexif.pc $(1)/usr/lib/pkgconfig/
  47. endef
  48. define Package/libexif/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,libexif))