File tree Expand file tree Collapse file tree 9 files changed +36
-14
lines changed Expand file tree Collapse file tree 9 files changed +36
-14
lines changed Original file line number Diff line number Diff line change 389
389
original_ignore_archive=${! parse_ignore_archive}
390
390
if [ " ${original_ignore_archive} " != " yes" ]; then
391
391
392
+ # determine the lib folder name
393
+ parse_original_lib_folder_name=${lib} _lib_files_folder
394
+ original_lib_folder_name=${! parse_original_lib_folder_name}
395
+
396
+ if [ -z $original_lib_folder_name ]; then
397
+ original_lib_folder_name=lib
398
+ fi
399
+
392
400
# copy .a archive from install-platform folder
393
- cp $top_dir /contrib/$install_library_path /$arch /lib /lib$original_archive_name .a $local_library_install_path /lib$archive_name .a
401
+ cp $top_dir /contrib/$install_library_path /$arch /${original_lib_folder_name} /lib$original_archive_name .a $local_library_install_path /lib$archive_name .a
394
402
395
403
# copy dependent .a archive
396
404
parse_dependent_archive_list=${lib} _dependent_archive_list
397
405
original_dependent_archive_list=${! parse_dependent_archive_list}
398
406
if [ ! -z $original_dependent_archive_list ]; then
399
- echo " copying dependent archives..."
407
+ echo " Copying dependent archives..."
400
408
original_dependent_archive_list=(${original_dependent_archive_list// ,/ } )
401
409
402
410
for dep_archive in ${original_dependent_archive_list[@]}
403
411
do
404
412
local_library_install_path=$cfg_platform_name /$original_arch_name /libs
405
413
mkdir -p $local_library_install_path
406
- cp $top_dir /contrib/$install_library_path /$arch /lib /lib${dep_archive} .a $local_library_install_path /lib${dep_archive} .a
414
+ cp $top_dir /contrib/$install_library_path /$arch /${original_lib_folder_name} /lib${dep_archive} .a $local_library_install_path /lib${dep_archive} .a
407
415
408
416
done
409
417
fi
418
+
410
419
fi
411
420
412
421
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ cfg_i386_host_machine="i386-linux-gnu"
17
17
18
18
19
19
cfg_all_supported_arches =(" i386" " x86_64" )
20
- cfg_all_supported_libraries =(" png" " zlib" " lua " " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " edtaa3func" " xxhash" " xxtea" " convertutf" " flatbuffers " " minizip" " tinyxml2" " cjson" " luasocket" " box2d" " glfw" " rapidjson" )
20
+ cfg_all_supported_libraries =(" png" " zlib" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " edtaa3func" " xxhash" " xxtea" " convertutf" " minizip" " tinyxml2" " cjson" " luasocket" " box2d" " glfw" " sqlite3 " " glew " " rapidjson" )
21
21
cfg_default_arches_all =(" x86_64" )
22
- cfg_default_libraries_all =(" png" " zlib" " lua " " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " edtaa3func" " xxhash" " xxtea" " convertutf" " flatbuffers " " minizip" " tinyxml2" " cjson" " luasocket" " box2d" " glfw" " rapidjson" )
22
+ cfg_default_libraries_all =(" png" " zlib" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " edtaa3func" " xxhash" " xxtea" " convertutf" " minizip" " tinyxml2" " cjson" " luasocket" " box2d" " glfw" " sqlite3 " " glew " " rapidjson" )
23
23
24
24
25
25
cfg_build_fat_library =no
Original file line number Diff line number Diff line change @@ -27,19 +27,26 @@ box2d_header_files=Box2D
27
27
ssl_header_files =openssl
28
28
glfw_header_files =GLFW
29
29
rapidjson_header_files =rapidjson
30
+ sqlite3_header_files =sqlite*.h
31
+ glew_header_files =GL
30
32
31
33
# don't copy archive files for header only libraries, eg. rapidjson
32
34
rapidjson_ignore_archive =yes
33
35
34
36
# header files Folder
35
37
box2d_header_files_folder =Box2D
36
38
zlib_header_files_folder =zlib
39
+ glew_header_files_folder =GL
40
+
41
+ # lib files folder
42
+ glew_lib_files_folder =lib64
37
43
38
44
# #archive prebuilt name
39
45
luajit_original_name =luajit-5.1
40
46
box2d_original_name =Box2D
41
47
flatbuffers_original_name =flatbuffer
42
48
glfw_original_name =glfw3
49
+ glew_original_name =GLEW
43
50
44
51
45
52
# #archive_alias
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ cjson: libcjson-git.tar.xz .sum-cjson
16
16
$(APPLY ) $(SRC ) /cjson/cmake-patch.patch
17
17
$(MOVE )
18
18
19
- # DEPS_cjson = lua $(DEPS_lua )
19
+ DEPS_cjson = luajit $(DEPS_luajit )
20
20
21
21
.cjson : cjson toolchain.cmake
22
- cd $< && $(HOSTVARS ) ${CMAKE} -DUSE_INTERNAL_FPCONV=1 -DLUA_INCLUDE_DIR=$(PREFIX )
22
+ cd $< && $(HOSTVARS ) ${CMAKE} -DUSE_INTERNAL_FPCONV=1 -DLUA_INCLUDE_DIR=$(PREFIX ) /include/luajit-2.0
23
23
cd $< && $(MAKE ) VERBOSE=1 install
24
24
touch $@
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ $(TARBALLS)/luajit-$(LUAJIT_VERSION).tar.gz:
10
10
11
11
luajit : luajit-$(LUAJIT_VERSION ) .tar.gz .sum-luajit
12
12
$(UNPACK )
13
+ mv LuaJIT-2.0.3 $@ -2.0.3
13
14
ifeq ($(LUAJIT_VERSION ) ,2.0.1)
14
15
$(APPLY) $(SRC)/luajit/v2.0.1_hotfix1.patch
15
16
endif
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ $(TARBALLS)/libluasocket-git.tar.xz:
13
13
14
14
luasocket : libluasocket-git.tar.xz .sum-luasocket
15
15
$(UNPACK )
16
+ $(APPLY ) $(SRC ) /luasocket/delete-makefile.patch
16
17
$(MOVE )
17
18
18
- # DEPS_luasocket = lua $(DEPS_lua )
19
+ DEPS_luasocket = luajit $(DEPS_luajit )
19
20
20
21
.luasocket : luasocket toolchain.cmake
21
- cd $< && $(HOSTVARS ) ${CMAKE} -DLUA_INCLUDE_DIR=$(PREFIX ) -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX )
22
+ cd $< && $(HOSTVARS ) ${CMAKE} -DLUA_INCLUDE_DIR=$(PREFIX ) /include/luajit-2.0 -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX )
22
23
cd $< && $(MAKE ) VERBOSE=1 install
23
24
touch $@
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ endif
18
18
ifdef HAVE_LINUX
19
19
ifeq ($(MY_TARGET_ARCH ) ,x86_64)
20
20
OPENSSL_CONFIG_VARS ="linux-x86_64"
21
- OPENSSL_ARCH =-m64 -no-ssl2
21
+ OPENSSL_ARCH =-m64
22
22
endif
23
23
24
24
ifeq ($(MY_TARGET_ARCH ) ,i386)
25
25
OPENSSL_CONFIG_VARS ="linux-generic32"
26
- OPENSSL_ARCH =-m32 -no-ssl2
26
+ OPENSSL_ARCH =-m32
27
27
endif
28
28
endif
29
29
Original file line number Diff line number Diff line change 1
- # sqlite
1
+ # sqlite3
2
2
3
3
SQLITE_VERSION := 3.6.20
4
4
SQLITE_URL := http://www.sqlite.org/sqlite-amalgamation-$(SQLITE_VERSION ) .tar.gz
@@ -9,11 +9,11 @@ $(TARBALLS)/sqlite-$(SQLITE_VERSION).tar.gz:
9
9
10
10
.sum-sqlite : sqlite-$(SQLITE_VERSION ) .tar.gz
11
11
12
- sqlite : sqlite-$(SQLITE_VERSION ) .tar.gz .sum-sqlite
12
+ sqlite3 : sqlite-$(SQLITE_VERSION ) .tar.gz .sum-sqlite
13
13
$(UNPACK )
14
14
$(MOVE )
15
15
16
- .sqlite : sqlite
16
+ .sqlite3 : sqlite3
17
17
cd $< && $(HOSTVARS ) ./configure $(HOSTCONF )
18
18
cd $< && $(MAKE ) && $(MAKE ) install
19
19
touch $@
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ ifdef HAVE_TIZEN
13
13
EX_ECFLAGS = -fPIC
14
14
endif
15
15
16
+ ifdef HAVE_LINUX
17
+ EX_ECFLAGS = -fPIC
18
+ endif
19
+
16
20
ifdef HAVE_WIN32
17
21
extra_makefile =-fwin32/Makefile.gcc
18
22
endif
You can’t perform that action at this time.
0 commit comments