summaryrefslogtreecommitdiffstats
path: root/src/libsvm.mk
diff options
context:
space:
mode:
authorRashad M <mohammedrashadkm@gmail.com>2015-06-21 16:58:43 (GMT)
committerRashad M <mohammedrashadkm@gmail.com>2015-06-21 16:58:43 (GMT)
commit877f63d6a6dc1188988e90430ebf7383889462d2 (patch)
treed2b6cd5296740ee446f3ee2f427a82a45d3a7f96 /src/libsvm.mk
parent697251a497583ed446012eea90a4b55f509cf4cc (diff)
downloadmxe-877f63d6a6dc1188988e90430ebf7383889462d2.zip
mxe-877f63d6a6dc1188988e90430ebf7383889462d2.tar.gz
mxe-877f63d6a6dc1188988e90430ebf7383889462d2.tar.bz2
libsvm: add package
Diffstat (limited to 'src/libsvm.mk')
-rw-r--r--src/libsvm.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libsvm.mk b/src/libsvm.mk
new file mode 100644
index 0000000..010e1d2
--- /dev/null
+++ b/src/libsvm.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libsvm
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 3.20
+$(PKG)_CHECKSUM := 6902c22afadc70034c0d1c0e25455df10fb01eaf
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://www.csie.ntu.edu.tw/~cjlin/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://www.csie.ntu.edu.tw/~cjlin/libsvm/' | \
+ $(SED) -n 's,.*>v\([0-9][^<]*\)<.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ mkdir '$(1).build'
+ cd '$(1).build' && cmake \
+ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
+ -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \
+ '$(1)'
+ $(MAKE) -C '$(1).build' install
+
+endef