This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix pattern recipe on OSX (build libs)
- Loading branch information
Showing
10 changed files
with
123 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set INCLUDE=%INCLUDE%;%LIBRARY_INC% | ||
set LIB=%LIB%;%LIBRARY_LIB% | ||
set LIBPATH=%LIBPATH%;%LIBRARY_LIB% | ||
|
||
REM Build step | ||
nmake /f Makefile.vc | ||
if errorlevel 1 exit 1 | ||
|
||
REM Install step | ||
copy libtiff\libtiff.dll %LIBRARY_BIN%\ | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff.lib %LIBRARY_LIB%\ | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff.lib %LIBRARY_LIB%\tiff.lib | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff_i.lib %LIBRARY_LIB%\ | ||
if errorlevel 1 exit 1 | ||
xcopy libtiff\*.h %LIBRARY_INC%\ | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
make lib | ||
mkdir $PREFIX/lib | ||
mv liblinear* $PREFIX/lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package: | ||
name: liblinear | ||
version: 210 | ||
|
||
source: | ||
git_url: https://github.com/cjlin1/liblinear/ | ||
git_rev: v210 | ||
|
||
about: | ||
home: https://www.csie.ntu.edu.tw/~cjlin/liblinear/ | ||
license: modified BSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set INCLUDE=%INCLUDE%;%LIBRARY_INC% | ||
set LIB=%LIB%;%LIBRARY_LIB% | ||
set LIBPATH=%LIBPATH%;%LIBRARY_LIB% | ||
|
||
REM Build step | ||
nmake /f Makefile.vc | ||
if errorlevel 1 exit 1 | ||
|
||
REM Install step | ||
copy libtiff\libtiff.dll %LIBRARY_BIN%\ | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff.lib %LIBRARY_LIB%\ | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff.lib %LIBRARY_LIB%\tiff.lib | ||
if errorlevel 1 exit 1 | ||
copy libtiff\libtiff_i.lib %LIBRARY_LIB%\ | ||
if errorlevel 1 exit 1 | ||
xcopy libtiff\*.h %LIBRARY_INC%\ | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
make lib | ||
mkdir $PREFIX/lib | ||
mv libsvm* $PREFIX/lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From d196e78c60f4b471a40bff85aec40b1ca2f03e51 Mon Sep 17 00:00:00 2001 | ||
From: Mark Wiebe <[email protected]> | ||
Date: Sat, 1 Sep 2012 22:50:53 -0700 | ||
Subject: [PATCH] 'b' | ||
|
||
|
||
diff --git nmake.opt nmake.opt | ||
index c136c36..df324a3 100644 | ||
--- nmake.opt | ||
+++ nmake.opt | ||
@@ -63,10 +63,10 @@ LOGLUV_SUPPORT = 1 | ||
# Uncomment and edit following lines to enable ZIP support | ||
# (required for Deflate compression and Pixar log-format) | ||
# | ||
-#ZIP_SUPPORT = 1 | ||
+ZIP_SUPPORT = 1 | ||
#ZLIBDIR = d:/projects/zlib-1.2.1 | ||
-#ZLIB_INCLUDE = -I$(ZLIBDIR) | ||
-#ZLIB_LIB = $(ZLIBDIR)/zlib.lib | ||
+ZLIB_INCLUDE = | ||
+ZLIB_LIB = zlibstatic.lib | ||
|
||
# | ||
# Uncomment and edit following lines to enable ISO JBIG support | ||
-- | ||
1.7.8.msysgit.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package: | ||
name: libsvm | ||
version: 320 | ||
|
||
source: | ||
git_url: https://github.com/cjlin1/libsvm/ | ||
git_rev: v320 | ||
|
||
about: | ||
home: https://www.csie.ntu.edu.tw/~cjlin/libsvm/ | ||
license: modified BSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
#!/bin/bash | ||
|
||
$PYTHON setup.py install | ||
|
||
# Add more build steps here, if they are necessary. | ||
|
||
# See | ||
# http://docs.continuum.io/conda/build.html | ||
# for a list of environment variables that are set during the build process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git setup.py setup.py | ||
index cc76e65..45fc1c3 100644 | ||
--- setup.py | ||
+++ setup.py | ||
@@ -55,7 +55,7 @@ setup( | ||
"pattern.text.it" : ["*.txt", "*.xml"], | ||
"pattern.text.nl" : ["*.txt", "*.xml"], | ||
"pattern.vector" : ["*.txt"], | ||
- "pattern.vector.svm" : ["*.txt", "libsvm-3.11/*", "libsvm-3.17/*", "liblinear-1.93/*"], | ||
+ "pattern.vector.svm" : ["*.txt"], | ||
"pattern.graph" : ["*.js", "*.csv"], | ||
}, | ||
py_modules = [ | ||
@@ -87,4 +87,4 @@ setup( | ||
"Topic :: Text Processing :: Linguistic", | ||
"Topic :: Text Processing :: Markup :: HTML" | ||
] | ||
-) | ||
\ No newline at end of file | ||
+) |