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.

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