[packages] libexif: update to 0.6.19
[openwrt/svn-archive/archive.git] / libs / libexif / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libexif
11 PKG_VERSION:=0.6.19
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libexif
16 PKG_MD5SUM:=56144a030a4c875c600b1ccf713f69f7
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libexif
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=library for jpeg files with exif tags
27 URL:=http://libexif.sourceforge.net/
28 endef
29
30 define Package/libexif/description
31 libexif is a library for parsing, editing, and saving EXIF data. It is
32 intended to replace lots of redundant implementations in command-line
33 utilities and programs with GUIs.
34 endef
35
36 CONFIGURE_ARGS+= \
37 --enable-shared \
38 --enable-static \
39 --disable-rpath \
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
42
43 TARGET_CFLAGS += $(FPIC)
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
50 endef
51
52 define Package/libexif/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libexif))