[package] update libexif to 0.6.17 (#5406)
[openwrt/svn-archive/archive.git] / libs / libexif / Makefile
1 #
2 # Copyright (C) 2006-2009 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.17
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libexif
16 PKG_MD5SUM:=f7cf4e623a48c9a3b13f7f95f0a41015
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libexif
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=library for jpeg files with exif tags
24 URL:=http://libexif.sourceforge.net/
25 endef
26
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
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --enable-shared \
36 --enable-static \
37 --disable-rpath \
38 --without-libiconv-prefix \
39 --without-libintl-prefix \
40 )
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
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))