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