-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-ext-lib.conf
executable file
·94 lines (80 loc) · 2.23 KB
/
build-ext-lib.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# build-ext-lib.conf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# (c)Copyright 2006 Hewlett-Packard Development Company, LP.
#
# External libraries build configuration
# EXT_WORK_DIR : working directory
# EXT_BUILD_DIR : building directory
# EXT_ROOT_DIR : root directory
# EXT_VERSION : version
function gen_lib {
if test ! -f config.status
then
./configure --prefix=${EXT_ROOT_DIR}/ext-${EXT_VERSION}
fi
if test -f Makefile
then
make
fi
}
function gen_lib_openssl {
if test ! -f config.status
then
./config shared --prefix=${EXT_ROOT_DIR}/ext-${EXT_VERSION} --openssldir=${EXT_ROOT_DIR}/ext-${EXT_VERSION}
fi
if test -f Makefile
then
make
fi
}
function create_directory {
if test ! -d ${EXT_ROOT_DIR}/ext-${EXT_VERSION}
then
mkdir ${EXT_ROOT_DIR}/ext-${EXT_VERSION}
fi
}
function extract_files {
make install
}
function gen_lib_with_path {
if test ! -f config.status
then
./configure --with-sctplib=${EXT_ROOT_DIR}/ext-${EXT_VERSION} --prefix=${EXT_ROOT_DIR}/ext-${EXT_VERSION}
fi
if test -f Makefile
then
make
fi
}
# sctp library
EXTBUILD_1_TYPE=lib
EXTBUILD_1_FILE=sctplib-1.0.5.tar.gz
EXTBUILD_1_DIR=sctplib-1.0.5
EXTBUILD_1_GENSCRIPT=gen_lib
EXTBUILD_1_ENDSCRIPT=extract_files
# sctp socket library
EXTBUILD_2_TYPE=lib
EXTBUILD_2_FILE=socketapi-1.9.1.tar.gz
EXTBUILD_2_DIR=socketapi-1.9.1
EXTBUILD_2_GENSCRIPT=gen_lib_with_path
EXTBUILD_2_ENDSCRIPT=extract_files
# openssl library
EXTBUILD_3_TYPE=lib
EXTBUILD_3_FILE=openssl-0.9.8c.tar.gz
EXTBUILD_3_DIR=openssl-0.9.8c
EXTBUILD_3_GENSCRIPT=gen_lib_openssl
EXTBUILD_3_ENDSCRIPT=extract_files