~armagetronad-dev/armagetronad/0.2.8-armagetronad-work

« back to all changes in this revision

Viewing changes to docker/build/context/portable/build

  • Committer: Manuel Moos
  • Date: 2020-08-05 21:25:01 UTC
  • mfrom: (1166.7.37 master)
  • Revision ID: z-man@users.sf.net-20200805212501-pkccm2mfh43vzywi
Merge from legacy_0.2.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
function copylib()
32
32
{
33
33
    baselib=$1
34
 
    path=$(dirname ${baselib})
35
 
    baselib=$(basename ${baselib})
36
 
    echo "Found in ${path}."
37
 
    if test "$lastpath" != "$path"; then
38
 
        otherpath=$lastpath
39
 
    fi
40
 
    lastpath=$path
41
34
    while test -n "${baselib}"; do
 
35
      if echo ${baselib} | grep -q \^/; then
 
36
        # absolute path, split
 
37
        path=$(dirname ${baselib})
 
38
        baselib=$(basename ${baselib})
 
39
        echo "Found in ${path}."
 
40
        if test "$lastpath" != "$path"; then
 
41
            otherpath=$lastpath
 
42
        fi
 
43
        lastpath=$path
 
44
      fi
42
45
      # copy libary
43
46
      echo Copying ${baselib}...
44
 
      cp -a "${path}/${baselib}" ${APPDIR}/usr/lib/
 
47
      cp -a "${path}/${baselib}" ${APPDIR}/usr/lib/ || exit $?
45
48
      # resolve links
46
49
      baselib=$(ls -l ${path}/${baselib} | grep -- "->" | sed -e "s,.*-> ,,")
47
50
    done
48
51
}
49
52
 
 
53
# Luckily, This seems to only be an OPTIONAL dependency of libxml. It's huge.
 
54
#libicudata \
 
55
#libtiff \
 
56
 
50
57
#   include libraries
51
58
mkdir -p ${APPDIR}/usr/lib/
52
59
for library in \
 
60
libboost_thread \
 
61
libcaca \
 
62
libfreetype \
 
63
libftgl \
 
64
libGLEW \
 
65
libGLU \
53
66
libicuuc \
54
 
libicudata \
 
67
libncursesw \
 
68
libpng \
 
69
libprotobuf \
 
70
libSDL-1 \
 
71
libslang \
 
72
libstdc++ \
 
73
libSDL_image \
 
74
libSDL_mixer \
 
75
libtinfo \
55
76
libwebp \
56
77
libxml2 \
57
78
libZThread \
58
 
libSDL-1 \
59
 
libboost_thread \
60
 
libSDL_image libpng \
61
 
libSDL_mixer \
62
 
libGLEW \
63
 
libfreetype \
64
 
libftgl \
65
 
libprotobuf \
66
79
; do
67
80
  echo "Checking for library ${library}...."
68
81
  baselib=$(ldd ${APPDIR}/usr/bin/${PACKAGE} | grep "${library}" | sed -e "s,.*=> ,," -e "s, (.*,,")