Skip to content
Snippets Groups Projects
Commit 95016c07 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove traces of libsvm

parent e941a950
No related branches found
No related tags found
No related merge requests found
Pipeline #50731 passed
......@@ -51,7 +51,6 @@ requirements:
- jsonschema 3.2.0
- libblitz 1.0.1
- libpng 1.6.37
- libsvm 3.24
- libtiff 4.1.0
- make 4.2.1
- matplotlib 3.3.2
......
nmake /f Makefile.win clean all
if errorlevel 1 exit 1
REM Install step
copy windows\libsvm.dll %LIBRARY_LIB%\libsvm.dll
if errorlevel 1 exit 1
xcopy windows\*.exe %LIBRARY_BIN%\
if errorlevel 1 exit 1
copy svm.h %LIBRARY_INC%\svm.h
if errorlevel 1 exit 1
#!/bin/bash
if [[ `uname` == 'Darwin' ]]; then
sed -i '' 's/-soname/-install_name/g' Makefile
sed -i '' 's/libsvm.so.$(SHVER)/libsvm.$(SHVER).dylib/g' Makefile
fi
make all
make lib
# there is no make check or something similar and no make install
mkdir -p $PREFIX/share/licenses/libsvm $PREFIX/lib $PREFIX/include $PREFIX/bin
install -m644 svm.h $PREFIX/include/svm.h
install -m644 COPYRIGHT $PREFIX/share/licenses/libsvm/LICENSE
install -m755 svm-train $PREFIX/bin/
install -m755 svm-scale $PREFIX/bin/
install -m755 svm-predict $PREFIX/bin/
if [[ `uname` == 'Darwin' ]]; then
install -m644 libsvm.2.dylib $PREFIX/lib/
ln -s libsvm.2.dylib $PREFIX/lib/libsvm.dylib
else
install -m644 libsvm.so.2 $PREFIX/lib/
ln -s libsvm.so.2 $PREFIX/lib/libsvm.so
fi
{% set version = "3.24" %}
{% set flatversion = version.replace(".", "") %}
{% set sha256 = "3ba1ac74ee08c4dd57d3a9e4a861ffb57dab88c6a33fd53eac472fc84fbb2a8f" %}
package:
name: libsvm
version: {{ version }}
source:
fn: libsvm-{{ flatversion }}.tar.gz
url: https://github.com/cjlin1/libsvm/archive/v{{ flatversion }}.tar.gz
sha256: {{ sha256 }}
patches:
- win32.patch # [win32]
build:
number: 0
run_exports:
- {{ pin_subpackage('libsvm', max_pin='x.x') }}
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
- vc14 # [win and py35]
requirements:
build:
- python # [win]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
test:
requires:
- python {{ environ['PY_VER'] + '*' }} # [win]
commands:
- test -e $PREFIX/include/svm.h # [unix]
- test -e $PREFIX/lib/libsvm.so # [linux]
- test -e $PREFIX/lib/libsvm.so.2 # [linux]
- test -e $PREFIX/lib/libsvm.dylib # [osx]
- test -e $PREFIX/lib/libsvm.2.dylib # [osx]
- svm-train | grep 'Usage' # [unix]
- svm-scale | grep 'Usage' # [unix]
- svm-predict | grep 'Usage' # [unix]
- svm-train | find "Usage" # [win]
- svm-scale | find "Usage" # [win]
- svm-predict | find "Usage" # [win]
- if not exist %PREFIX%\\Library\\lib\\libsvm.dll exit 1 # [win]
- conda inspect linkages -p $PREFIX libsvm # [not win]
- conda inspect objects -p $PREFIX libsvm # [osx]
about:
home: https://github.com/cjlin1/libsvm
license: BSD 3-Clause
summary: A simple, easy-to-use, and efficient software for SVM classification and regression.
extra:
recipe-maintainers:
- 183amir
- patricksnape
- anjos
--- Makefile.win
+++ Makefile.win
@@ -7,3 +7,3 @@
CXX = cl.exe
-CFLAGS = /nologo /O2 /EHsc /I. /D _WIN64 /D _CRT_SECURE_NO_DEPRECATE
+CFLAGS = /nologo /O2 /EHsc /I. /D _WIN32 /D _CRT_SECURE_NO_DEPRECATE
TARGET = windows
conda/vlfeat
conda/libblitz
conda/libsvm
conda/sox
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment