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