[oe] Patch for libfann-2.0.0 recipe

Philip Balister philip at balister.org
Tue Jun 16 18:38:17 UTC 2009


Koen Kooi wrote:
> On 16-06-09 19:14, Elvis Dowson wrote:
>> Hi,
>> I'm attaching a patch for the libfann-2.0.0 recipe for inclusion into
>> the oe repository.
>>
>> Best regards,
>>
>> Elvis
>>
>>  From edb273d68849fd968f83a0bf59efba120b578fa3 Mon Sep 17 00:00:00 2001
>> From: Elvis Dowson <elvis.dowson at gmail.com>
>> Date: Tue, 16 Jun 2009 21:12:52 +0400
>> Subject: [PATCH] Added libfann-2.0.0 recipe
>>
>> ---
>> conf/checksums.ini | 4 ++++
>> recipes/libfann/libfann_2.0.0.bb | 23 +++++++++++++++++++++++
>> 2 files changed, 27 insertions(+), 0 deletions(-)
>> create mode 100644 recipes/libfann/libfann_2.0.0.bb
>>
>> diff --git a/conf/checksums.ini b/conf/checksums.ini
>> index 37d55c7..7c38ea9 100644
>> --- a/conf/checksums.ini
>> +++ b/conf/checksums.ini
>> @@ -286,6 +286,10 @@
>> sha256=1f8504c7f08d2d59c71a70915fc834a285b99587444ee33e23ee3f135c071da0
>> md5=a8cf945d09c6458cb27228218e9a2f45
>> sha256=8416e162d6fc921f14a61c8905e9f9a28dc25e67e1c71b75574360a13f0c28c7
>>
>> +[http://prdownloads.sourceforge.net/fann/fann-2.0.0.tar.bz2]
>> +md5=4224efa533265dcf39237667973d0e20
>> +sha256=762a1313a9b935300cb66ebf052d469d04823ca721fe6dd2a49c01e13e8ab30a
>> +
>> [http://downloads.sourceforge.net/fordiac/FORTE-0.3.5.zip]
>> md5=d207d3b389ee9f2702df095681459f99
>> sha256=2b87b331e931db2db07408c1b07bdb557227e0c16f8fe37f72e40b08fca0a09c
>> diff --git a/recipes/libfann/libfann_2.0.0.bb
>> b/recipes/libfann/libfann_2.0.0.bb
>> new file mode 100644
>> index 0000000..d3166ec
>> --- /dev/null
>> +++ b/recipes/libfann/libfann_2.0.0.bb
>> @@ -0,0 +1,23 @@
>> +# libfann-2.0.0 recipie
>> +SECTION = "libs"
>> +DEFAULT_PREFERENCE = "1"
>> +
>> +# Package information
>> +DESCRIPTION = "libfann, Fast Artificial Neural Network Library is a
>> free open source neural network library, which implements multilayer
>> artificial neural networks in C with support for both fully connected
>> and sparsely connected networks."
>> +LICENSE = "BSD"
>> +PN = "libfann"
>> +PV = "2.0.0"
>> +PR = "r01"
>> +
>> +SRC_URI = "http://prdownloads.sourceforge.net/fann/fann-${PV}.tar.bz2"
>> +
>> +S = "${WORKDIR}/fann-${PV}"
>> +
>> +inherit autotools pkgconfig
>> +
>> +do_stage () {
>> + oe_libinstall -a -so -C src libfann ${STAGING_LIBDIR}
>> + install -d ${STAGING_INCDIR}/fann
>> + (cd ${S}/src/include; cp compat_time.h config.h doublefann.h fann.h
>> fann_activation.h fann_cascade.h fann_data.h fann_error.h
>> fann_internal.h fann_io.h fann_train.h fixedfann.h floatfann.h
>> ${STAGING_INCDIR}/fann/)
>> + install -m 0644 ${S}/aclocal.m4 ${STAGING_DATADIR}/aclocal/
>> +}
> 
> Can't you use autotools_stage to stage all this? And if not, don't use 
> 'cp', but 'install'.

 From the emails, it seems like the code that uses the headers expects 
them to be in the subdir. It would be worth looking at where they get 
installed on something like Debian or Fedora to be consistent.

Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3303 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090616/5bca80f5/attachment-0002.bin>


More information about the Openembedded-devel mailing list