From d63681499da750ccb2d5d77e2bf1c8c9a2de6b1b Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 17 Sep 2006 11:11:03 +0000 Subject: [PATCH] Add libexif SVN-Revision: 4796 --- libs/libexif/Makefile | 75 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 libs/libexif/Makefile diff --git a/libs/libexif/Makefile b/libs/libexif/Makefile new file mode 100644 index 000000000..db7ac117a --- /dev/null +++ b/libs/libexif/Makefile @@ -0,0 +1,75 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# Makefile for libexif +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libexif +PKG_VERSION:=0.6.13 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@SF/libexif +PKG_MD5SUM:=1b1e2b495c5aa20c08725f30545a110b +PKG_CAT:=bzcat + +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/libexif + SECTION:=libs + CATEGORY:=Libraries + TITLE:=library for jpeg files with exif tags + DESCRIPTION:=library for jpeg files with exif tags\\\ + URL:=http://libexif.sourceforge.net/ +endef + +BIG_ENDIAN:=no +ifeq ($(ARCH),mips) +BIG_ENDIAN:=yes +endif +ifeq ($(ARCH),armeb) +BIG_ENDIAN:=yes +endif +ifeq ($(ARCH),powerpc) +BIG_ENDIAN:=yes +endif + +define Build/Configure +$(call Build/Configure/Default,--enable-shared \ + --enable-static \ + --without-libiconv-prefix,ac_cv_c_bigendian=$(BIG_ENDIAN)) +endef + +define Build/Compile +$(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \ + all install) +endef + +define Package/libexif/install + install -m0755 -d $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.so.* $(1)/usr/lib/ +endef + +define Build/InstallDev + mkdir -p $(STAGING_DIR)/usr/bin + mkdir -p $(STAGING_DIR)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/libexif $(STAGING_DIR)/usr/include/ + mkdir -p $(STAGING_DIR)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexif*.{a,so*} $(STAGING_DIR)/usr/lib/ +endef + +define Build/UninstallDev + rm -rf \ + $(STAGING_DIR)/usr/include/libexif \ + $(STAGING_DIR)/usr/lib/libexif*.{a,so*} +endef + +$(eval $(call BuildPackage,libexif)) -- 2.30.2