From 9de6cffd972e3d90699b4de97794bd712dc593ae Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 24 Aug 2017 10:34:46 +0000 Subject: [PATCH] liboil: update old bep file to working recipe (#1581) --- dev-libs/liboil/liboil-0.3.17.recipe | 79 +++++++++++++++---- dev-libs/liboil/patches/liboil-0.3.17.patch | 8 -- .../liboil/patches/liboil-0.3.17.patchset | 29 +++++++ 3 files changed, 92 insertions(+), 24 deletions(-) delete mode 100644 dev-libs/liboil/patches/liboil-0.3.17.patch create mode 100644 dev-libs/liboil/patches/liboil-0.3.17.patchset diff --git a/dev-libs/liboil/liboil-0.3.17.recipe b/dev-libs/liboil/liboil-0.3.17.recipe index ae39d737e..8d591d60b 100644 --- a/dev-libs/liboil/liboil-0.3.17.recipe +++ b/dev-libs/liboil/liboil-0.3.17.recipe @@ -1,28 +1,75 @@ -DESCRIPTION=" -liboil is a library of simple functions that are optimized for various CPUs. -" +SUMMARY="Library of Optimized Inner Loops" +DESCRIPTION="Liboil is now in maintenence-only mode. No new features will \ +be added, and bugs will be fixed according to their severity and \ +availablility of patches. \ +Users of liboil are recommended to switch to Orc \ +(http://code.entropywave.com/projects/orc/). Please contact \ +David Schleef about converting liboil functions \ +to Orc code -- in many cases this work has already been done." HOMEPAGE="http://liboil.freedesktop.org/wiki/" -SOURCE_URI="http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz" +COPYRIGHT="2002-2005 David A. Schleef, All rights reserved." +LICENSE="BSD (2-clause)" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -CHECKSUM_MD5="47dc734f82faeb2964d97771cfd2e701" +SOURCE_URI="http://liboil.freedesktop.org/download/liboil-$portVersion.tar.gz" +CHECKSUM_SHA256="105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69" +PATCHES="liboil-$portVersion.patchset" + +ARCHITECTURES="x86_gcc2 ?x86_64" + +PROVIDES=" + liboil = $portVersion + cmd:oil_bugreport + lib:liboil_0.3 = 0.3.0 compat >= 0 + " +REQUIRES=" + haiku + lib:libglib_2.0 + " + +PROVIDES_devel=" + liboil = $portVersion + devel:liboil_0.3 = 0.3.0 compat >= 0 + " +REQUIRES_devel=" + liboil == $portVersion base + " + +BUILD_REQUIRES=" + haiku_devel + devel:libglib_2.0 + " + +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:awk + cmd:gcc + cmd:libtoolize + cmd:make + cmd:pkg_config + " + BUILD() { - cd liboil-0.3.17 - libtoolize --force --copy --install - aclocal -I m4 - autoconf - automake - ./configure --prefix=`finddir B_COMMON_DIRECTORY` + autoreconf -vfi + runConfigure ./configure make } INSTALL() { - cd liboil-0.3.17 make install + + rm -f $libDir/liboil*.la + + prepareInstalledDevelLib liboil-0.3 + + fixPkgconfig + + packageEntries devel $developDir } -LICENSE="BSD (2-clause)" -COPYRIGHT="2002-2005 David A. Schleef, All rights reserved." +TEST() +{ + make check +} diff --git a/dev-libs/liboil/patches/liboil-0.3.17.patch b/dev-libs/liboil/patches/liboil-0.3.17.patch deleted file mode 100644 index e98a3d4bb..000000000 --- a/dev-libs/liboil/patches/liboil-0.3.17.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- liboil-0.3.17-orig/liboil/c/generate_clamp.pl 2007-11-16 02:53:47.006553600 +0000 -+++ liboil-0.3.17/liboil/c/generate_clamp.pl 2012-08-05 14:10:46.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -+#!/boot/common/bin/perl - # - - diff --git a/dev-libs/liboil/patches/liboil-0.3.17.patchset b/dev-libs/liboil/patches/liboil-0.3.17.patchset new file mode 100644 index 000000000..d861e3151 --- /dev/null +++ b/dev-libs/liboil/patches/liboil-0.3.17.patchset @@ -0,0 +1,29 @@ +From d2f660f3f832101a2c5a3735e0d1e7b25e60c250 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Thu, 17 Aug 2017 17:48:52 +0200 +Subject: perl, fix paths + + +diff --git a/liboil/c/generate_clamp.pl b/liboil/c/generate_clamp.pl +index c0c4402..aa61793 100755 +--- a/liboil/c/generate_clamp.pl ++++ b/liboil/c/generate_clamp.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!/bin/env perl + # + + +diff --git a/liboil/math/generate_math.pl b/liboil/math/generate_math.pl +index 5222f39..a4c8c64 100755 +--- a/liboil/math/generate_math.pl ++++ b/liboil/math/generate_math.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!/bin/env perl + # + + +-- +2.7.0 +