4105a989134852213765b09855aea594e4972721
[packages.git] / libs / libexif / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libexif
12 PKG_VERSION:=0.6.16
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/libexif
17 PKG_MD5SUM:=deee153b1ded5a944ea05d041d959eca
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libexif
22   SECTION:=libs
23   CATEGORY:=Libraries
24   TITLE:=library for jpeg files with exif tags
25   URL:=http://libexif.sourceforge.net/
26 endef
27
28 define Package/libexif/description
29   libexif is a library for parsing, editing, and saving EXIF data. It is
30   intended to replace lots of redundant implementations in command-line
31   utilities and programs with GUIs.
32 endef
33
34 define Build/Configure
35         $(call Build/Configure/Default, \
36                 --enable-shared \
37                 --enable-static \
38                 --disable-rpath \
39                 --without-libiconv-prefix \
40                 --without-libintl-prefix \
41         )
42 endef
43
44 TARGET_CFLAGS += $(FPIC)
45
46 define Build/Compile
47         $(MAKE) -C $(PKG_BUILD_DIR) \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
49                 all install
50 endef
51
52 define Build/InstallDev
53         mkdir -p $(1)/usr/include
54         $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
55         mkdir -p $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
57 endef
58
59 define Package/libexif/install
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libexif))