libmad: update to 0.16.4
[feed/packages.git] / libs / libexif / Makefile
1 #
2 # Copyright (C) 2006-2014 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.24
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://github.com/libexif/libexif/releases/download/v$(PKG_VERSION)
16 PKG_HASH:=d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae
17
18 PK_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
19 PKG_LICENSE:=LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:libexif:libexif
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libexif
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=library for jpeg files with exif tags
33 URL:=https://libexif.github.io/
34 endef
35
36 define Package/libexif/description
37 libexif is a library for parsing, editing, and saving EXIF data. It is
38 intended to replace lots of redundant implementations in command-line
39 utilities and programs with GUIs.
40 endef
41
42 CONFIGURE_ARGS+= \
43 --enable-shared \
44 --enable-static \
45 --disable-rpath \
46 --disable-nls \
47 --without-libiconv-prefix \
48 --without-libintl-prefix \
49
50 TARGET_CFLAGS += $(FPIC)
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexif.pc $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/libexif/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libexif))