liboil: update old bep file to working recipe (#1581)

This commit is contained in:
Schrijvers Luc
2017-08-24 10:34:46 +00:00
committed by Jérôme Duval
parent 02ce185bef
commit 9de6cffd97
3 changed files with 92 additions and 24 deletions

View File

@@ -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 <ds@schleef.org> 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
}

View File

@@ -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
#

View File

@@ -0,0 +1,29 @@
From d2f660f3f832101a2c5a3735e0d1e7b25e60c250 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
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