Update libmpcdec to 1.2.6 (#3601)
[openwrt/svn-archive/archive.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.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/libexif
17 PKG_MD5SUM:=1b1e2b495c5aa20c08725f30545a110b
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 Build/Configure
29 $(call Build/Configure/Default, \
30 --enable-shared \
31 --enable-static \
32 --disable-rpath \
33 --without-libiconv-prefix \
34 --without-libintl-prefix \
35 )
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Build/InstallDev
47 mkdir -p $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
49 mkdir -p $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
51 endef
52
53 define Package/libexif/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libexif))