[packages] Add missing libtool fixups
[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.17
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libexif
16 PKG_MD5SUM:=f7cf4e623a48c9a3b13f7f95f0a41015
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libexif
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=library for jpeg files with exif tags
26 URL:=http://libexif.sourceforge.net/
27 endef
28
29 define Package/libexif/description
30 libexif is a library for parsing, editing, and saving EXIF data. It is
31 intended to replace lots of redundant implementations in command-line
32 utilities and programs with GUIs.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 --disable-rpath \
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
42 )
43 endef
44
45 TARGET_CFLAGS += $(FPIC)
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
58 endef
59
60 define Package/libexif/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libexif))