Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'add_svn' of github.com:msarahan/conda-recipes into add_svn
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sarahan committed Dec 28, 2015
2 parents dd144e1 + 69ed67b commit 4bbbf55
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 14 deletions.
12 changes: 6 additions & 6 deletions apr/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ API_VER=1.2.1

curl http://www.interior-dsgn.com/apache/apr/apr-${APR_VER}.tar.bz2 -o apr.tar.bz2
curl http://www.interior-dsgn.com/apache/apr/apr-util-${APU_VER}.tar.bz2 -o apr-util.tar.bz2
curl http://www.interior-dsgn.com/apache/apr/apr-iconv-%API_VER%.tar.bz2 -o apr-iconv.tar.bz2
curl http://www.interior-dsgn.com/apache/apr/apr-iconv-${API_VER}.tar.bz2 -o apr-iconv.tar.bz2

tar -jxf apr.tar.bz2
tar -jxf apr-util.tar.bz2
tar -jxf apr-iconv.tar.bz2

mv apr-%APR_VER% apr
mv apr-util-%APU_VER% apr-util
mv apr-iconv-%API_VER% apr-iconv
mv apr-${APR_VER} apr
mv apr-util-${APU_VER} apr-util
mv apr-iconv-${API_VER} apr-iconv

cd apr
./configure --prefix=${PREFIX}
make
make install

cd ../apr-util
./configure --prefix=${PREFIX}
./configure --prefix=${PREFIX} --with-apr=${PREFIX}
make
make install

cd ../apr-iconv
./configure --prefix=${PREFIX}
./configure --prefix=${PREFIX} --with-apr=${PREFIX}
make
make install
24 changes: 24 additions & 0 deletions sqlite/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#/bin/sh

# Compile the interpreter
gcc -O2 shell.c sqlite3.c -I. -I$PREFIX/include \
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 \
-DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE \
-DSQLITE_ENABLE_EXPLAIN_COMMENTS \
-ldl -lc -lm -lpthread -o sqlite3

# make the shared library
gcc -O2 -c -fPIC sqlite3.c -I. -I$PREFIX/include \
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 \
-DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE \
-DSQLITE_ENABLE_EXPLAIN_COMMENTS \
-o sqlite3.o
gcc -shared sqlite3.o -ldl -L$PREFIX/lib -lpthread -lm -lc -fPIC -o libsqlite3.so

mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/lib
mkdir -p ${PREFIX}/include

cp sqlite3 ${PREFIX}/bin/
cp libsqlite3.so ${PREFIX}/lib/
cp sqlite3.h ${PREFIX}/include/
1 change: 1 addition & 0 deletions sqlite/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ build:

requirements:
build:
# python is for lining up vc feature (runtime)
- python [win]

about:
Expand Down
3 changes: 2 additions & 1 deletion svn/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
./configure --prefix=$PREFIX
./configure --prefix=$PREFIX --with-sqlite=$PREFIX \
--with-zlib=$PREFIX --with-openssl=$PREFIX
make
make install
18 changes: 11 additions & 7 deletions svn/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ build:

requirements:
build:
- 7za [win]
- apr 1.5.* [win]
- openssl 1.0.2* [win]
- python [win]
- sqlite 3.9.* [win]
- swig [win]
- zlib 1.2.* [win]
- apr 1.5.*
- openssl 1.0.2*
- python
- sqlite 3.9.*
- swig
- zlib 1.2.*
run:
- apr 1.5.*
- openssl 1.0.2*
- sqlite 3.9.*
- zlib 1.2.*

test:
commands:
Expand Down

0 comments on commit 4bbbf55

Please sign in to comment.