From 21afcd85668f45d134406bbd0b60ad2df847e344 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Fri, 4 Sep 2015 17:46:37 +0100 Subject: [PATCH] lzo: added default rule. --- rules/lzo/common.bash | 19 +++++++++++++++++++ rules/lzo/default.bash | 20 ++++++++++++++++++++ rules/lzo/host.bash | 20 +------------------- 3 files changed, 40 insertions(+), 19 deletions(-) create mode 100644 rules/lzo/common.bash create mode 100644 rules/lzo/default.bash diff --git a/rules/lzo/common.bash b/rules/lzo/common.bash new file mode 100644 index 0000000..373e572 --- /dev/null +++ b/rules/lzo/common.bash @@ -0,0 +1,19 @@ +version=\ +( + '2.09' +) + +url=\ +( + "http://www.oberhumer.com/opensource/lzo/download/lzo-$version.tar.gz" +) + +md5=\ +( + 'c7ffc9a103afe2d1bba0b015e7aa887f' +) + +maintainer=\ +( + 'Ricardo Martins ' +) diff --git a/rules/lzo/default.bash b/rules/lzo/default.bash new file mode 100644 index 0000000..08e61a2 --- /dev/null +++ b/rules/lzo/default.bash @@ -0,0 +1,20 @@ +. "$pkg_common" + +configure() +{ + ./configure \ + --prefix="$cfg_dir_toolchain_sysroot/usr" \ + --target="$cfg_target_canonical" \ + --host="$cfg_target_canonical" \ + --build="$cfg_host_canonical" +} + +build() +{ + $cmd_make +} + +host_install() +{ + $cmd_make install +} diff --git a/rules/lzo/host.bash b/rules/lzo/host.bash index 78f60ef..1695e4c 100644 --- a/rules/lzo/host.bash +++ b/rules/lzo/host.bash @@ -1,22 +1,4 @@ -version=\ -( - '2.03' -) - -url=\ -( - "http://www.oberhumer.com/opensource/lzo/download/lzo-$version.tar.gz" -) - -md5=\ -( - '0c3d078c2e8ea5a88971089a2f02a726' -) - -maintainer=\ -( - 'Ricardo Martins ' -) +. "$pkg_common" configure() {