From dbe5e873ab23baf618a9338d21f7af3738262349 Mon Sep 17 00:00:00 2001 From: Renato Caldas Date: Fri, 6 Mar 2015 14:01:44 +0000 Subject: [PATCH] libexif: added package. --- rules/libexif/default.bash | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 rules/libexif/default.bash diff --git a/rules/libexif/default.bash b/rules/libexif/default.bash new file mode 100644 index 0000000..5e7f241 --- /dev/null +++ b/rules/libexif/default.bash @@ -0,0 +1,46 @@ +version=\ +( + "0.6.21" +) + +url=\ +( + "http://sourceforge.net/projects/libexif/files/libexif/$version/libexif-$version.tar.bz2" +) + +md5=\ +( + "27339b89850f28c8f1c237f233e05b27" +) + +maintainer=\ +( + "Renato Caldas " +) + +configure() +{ + ../libexif-$version/configure \ + --prefix="$cfg_dir_toolchain_sysroot/usr" \ + --target=$cfg_target_canonical \ + --host=$cfg_target_canonical \ + --build=$cfg_host_canonical \ + --disable-static \ + --enable-shared +} + +build() +{ + $cmd_make +} + +host_install() +{ + $cmd_make install +} + +target_install() +{ + cp -a $cfg_dir_toolchain_sysroot/usr/lib/libexif*so* "$cfg_dir_rootfs/lib" + $cmd_target_strip -v "$cfg_dir_rootfs/lib/libexif.so"* +}