liblinear: new package
PATCH 1/1 liblinear: new package
Signed-off-by Romain Naour <[email protected]>
Cc "Yann E. MORIN" <[email protected]>
--- package/Config.in | 1 + .../0001-blas-don-t-overwrite-ar-options.patch | 35 ++++++++++++++++++++++ package/liblinear/Config.in | 7 +++++ package/liblinear/liblinear.mk | 26 ++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 package/liblinear/0001-blas-don-t-overwrite-ar-options.patch create mode 100644 package/liblinear/Config.in create mode 100644 package/liblinear/liblinear.mk
package/Config.in +1 -0
@@ -901,6 +901,7 @@ menu "Other" source "package/libgc/Config.in" source "package/libglib2/Config.in" source "package/libical/Config.in" + source "package/liblinear/Config.in" source "package/libnspr/Config.in" source "package/libpfm4/Config.in" source "package/libplist/Config.in"
package/liblinear/0001-blas-don-t-overwrite-ar-options.patch new file +35 -0
@@ -0,0 +1,35 @@ +From cae4c3b80fee0f3637d70f6d33946888c8105637 Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Sat, 13 Dec 2014 17:16:58 +0100 +Subject: [PATCH 1/1] blas: don't overwrite ar options + +ar's rcv options get lost when AR is passed on +the command line. + +Signed-off-by: Romain Naour <[email protected]> +--- + blas/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/blas/Makefile b/blas/Makefile +index 895fd24..78cec9a 100644 +--- a/blas/Makefile ++++ b/blas/Makefile +@@ -1,4 +1,4 @@ +-AR = ar rcv ++AR = ar + RANLIB = ranlib + + HEADERS = blas.h blasp.h +@@ -8,7 +8,7 @@ CFLAGS = $(OPTFLAGS) + FFLAGS = $(OPTFLAGS) + + blas: $(FILES) $(HEADERS) +- $(AR) blas.a $(FILES) ++ $(AR) rcv blas.a $(FILES) + $(RANLIB) blas.a + + clean: +-- +1.9.3 +
package/liblinear/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBLINEAR + bool "liblinear" + help + liblinear is a linear classifier for data with millions of instances and + features. + + http://www.csie.ntu.edu.tw/~cjlin/liblinear/
package/liblinear/liblinear.mk new file +26 -0
@@ -0,0 +1,26 @@ +################################################################################ +# +# liblinear +# +################################################################################ + +LIBLINEAR_VERSION = 1.96 +LIBLINEAR_SITE = http://www.csie.ntu.edu.tw/~cjlin/liblinear/$(LIBLINEAR_VERSION_MAJOR) +LIBLINEAR_LICENSE = BSD-3c +LIBLINEAR_LICENSE_FILES = COPYING + +define LIBLINEAR_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) lib +endef + +# We don't install programs train and predict which are used for training and +# testing. +LIBLINEAR_INSTALL_TARGET = NO +LIBLINEAR_INSTALL_STAGING = YES + +define LIBLINEAR_INSTALL_STAGING_CMDS + $(INSTALL) -m 0644 -D $(@D)/linear.h $(STAGING_DIR)/usr/include/linear.h + $(INSTALL) -m 0644 -D $(@D)/liblinear.so.2 $(STAGING_DIR)/usr/lib/liblinear.so.2 +endef + +$(eval $(generic-package))
Signature · 1 line
1.9.3
PATCH 1/1 liblinear: new package
Romain, All,
On 2014-12-13 19:44 +0100, Romain Naour spake thusly:
Quoted 2 lines
Signed-off-by Romain Naour <[email protected]>Cc "Yann E. MORIN" <[email protected]>
As seen on IRC, I'll get this patch in my branch with other fixes for nmap. So, I'm marking this patch as "Deferred" in Patchwork.
Thank you! :-)
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'