File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
+ set -x
3
4
4
5
PLATFORM=OS
5
6
VERBOSE=no
@@ -10,7 +11,7 @@ ARCH=armv7
10
11
11
12
# TODO: configure to compile speficy 3rd party libraries
12
13
OPTIONS="
13
- --disable -lua
14
+ --enable -lua
14
15
--enable-freetype2
15
16
--enable-png
16
17
"
@@ -19,12 +20,13 @@ OPTIONS="
19
20
usage ()
20
21
{
21
22
cat << EOF
22
- usage: $0 [-s] [-k sdk]
23
+ usage: $0 [-s] [-k sdk] [-a arch] [-l libname]
23
24
24
25
OPTIONS
25
26
-k <sdk version> Specify which sdk to use ('xcodebuild -showsdks', current: ${SDK_VERSION} )
26
27
-s Build for simulator
27
28
-a <arch> Specify which arch to use (current: ${ARCH} )
29
+ -l <libname> Specify which static library to build
28
30
EOF
29
31
}
30
32
46
48
}
47
49
48
50
49
- while getopts " hvsk:a:" OPTION
51
+ while getopts " hvsk:a:l: " OPTION
50
52
do
51
53
case $OPTION in
52
54
h)
65
67
a)
66
68
ARCH=$OPTARG
67
69
;;
70
+ l)
71
+ OPTIONS=--enable-$OPTARG
72
+ ;;
68
73
? )
69
74
usage
70
75
exit 1
Original file line number Diff line number Diff line change 1
- e4a68857b509bbaa5c66bf43491541e309e37f136816a1380664488420805edc74dc7f94c6318e34e077b29d53d060f971ba69b9efcfa0da9605934b2be45ef4 openssl-0.9.8zc .tar.gz
1
+ a786bb99b68d88c1de79d3c5372767f091ebeefb5abc1d4883253fd3ab5a86af53389f5ff36fdd8faa27c5fb78be8bbff406392c373358697da80d250eadebb8 openssl-1.0.1j .tar.gz
Original file line number Diff line number Diff line change 1
1
# OPENSSL
2
- OPENSSL_VERSION := 0.9.8zc
2
+ OPENSSL_VERSION := 1.0.1j
3
3
OPENSSL_URL := https://www.openssl.org/source/openssl-$(OPENSSL_VERSION ) .tar.gz
4
4
5
5
# FIXME: we don't want to use scripts to determine which libraries should be
@@ -10,6 +10,11 @@ OPENSSL_URL := https://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz
10
10
# PKGS_FOUND += openssl
11
11
# endif
12
12
13
+ # ifeq ($(shell uname),Darwin) # openssl tries to use libtool on Darwin
14
+ # ifdef HAVE_CROSS_COMPILE
15
+ # ZLIB_CONFIG_VARS=CHOST=$(HOST)
16
+ # endif
17
+ # endif
13
18
14
19
$(TARBALLS ) /openssl-$(OPENSSL_VERSION ) .tar.gz :
15
20
$(call download,$(OPENSSL_URL ) )
@@ -21,7 +26,7 @@ openssl: openssl-$(OPENSSL_VERSION).tar.gz .sum-openssl
21
26
$(MOVE )
22
27
23
28
.openssl : openssl
24
- cd $< && ./config no-shared --openssldir =$(PREFIX )
29
+ cd $< && $( HOSTVARS ) ./config no-shared --prefix =$(PREFIX )
25
30
cd $< && $(MAKE ) $(HOSTVARS )
26
31
cd $< && $(MAKE ) install
27
32
touch $@
You can’t perform that action at this time.
0 commit comments