Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 59 lines (47 sloc) 1.238 kb
d5657f0 @mah0x211 first commit
authored
1 #!/bin/sh
2
44c60a4 @mah0x211 change: install process
authored
3 set -e
4
5 CWD=`pwd`
6 MOD_LIBS="${CWD}/libs"
7 MOD_DEPEND="${CWD}/depend"
8 LIB_UUID='uuid-1.6.2'
9
2d122e2 @mah0x211 fixed: install script
authored
10 if [ ! -d ${MOD_DEPEND} ]; then
44c60a4 @mah0x211 change: install process
authored
11
2d122e2 @mah0x211 fixed: install script
authored
12 if [ ! -d ${MOD_LIBS} ]; then
13 echo "mkdir ${MOD_LIBS}"
14 mkdir ${MOD_LIBS}
44c60a4 @mah0x211 change: install process
authored
15 fi
16
2d122e2 @mah0x211 fixed: install script
authored
17 echo "cd ${MOD_LIBS}"
18 cd ${MOD_LIBS}
44c60a4 @mah0x211 change: install process
authored
19
2d122e2 @mah0x211 fixed: install script
authored
20 if [ ! -d "${LIB_UUID}" -a ! -f "${LIB_UUID}.tar.gz" ]; then
21 echo "wget --no-passive-ftp ftp://ftp.ossp.org/pkg/lib/uuid/${LIB_UUID}.tar.gz"
22 wget --no-passive-ftp ftp://ftp.ossp.org/pkg/lib/uuid/${LIB_UUID}.tar.gz
23 if [ ! -f "${LIB_UUID}.tar.gz" ]; then
24 exit -1;
25 fi
26 fi
44c60a4 @mah0x211 change: install process
authored
27
2d122e2 @mah0x211 fixed: install script
authored
28 if [ -f "${LIB_UUID}.tar.gz" ]; then
29 echo "tar xvzf ./${LIB_UUID}.tar.gz"
30 tar xvzf "${LIB_UUID}.tar.gz"
31 rm ${LIB_UUID}.tar.gz
32 fi
44c60a4 @mah0x211 change: install process
authored
33
2d122e2 @mah0x211 fixed: install script
authored
34 echo "cd ${LIB_UUID}"
35 cd ${LIB_UUID}
36
37 # configure
38 CONFIGURE="--prefix=${MOD_DEPEND}"
39 echo "./configure ${CONFIGURE}"
40 ./configure ${CONFIGURE}
41
42 echo "make"
43 make
44 echo "make check"
45 make check
46 echo "make install"
47 make install
48 echo "cd ${CWD}";
49 cd ${CWD}
50 fi
44c60a4 @mah0x211 change: install process
authored
51
2d122e2 @mah0x211 fixed: install script
authored
52 CPPFLAGS="-I${MOD_DEPEND}/include"
53 LINKFLAGS="-L${MOD_DEPEND}/lib"
54 LDFLAGS="-L${MOD_DEPEND}/lib"
55 export CPPFLAGS
56 export LINKFLAGS
738cbf3 @mah0x211 fixed: install.sh, wscript, index.js
authored
57 export LDFLAGS
b37452e @mah0x211 change: build with node-gyp.
authored
58 node-gyp rebuild
Something went wrong with that request. Please try again.