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.

60 lines
1.5 KiB

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