File: configure

package info (click to toggle)
r-cran-freetypeharfbuzz 0.2.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: ansic: 370; sh: 74; makefile: 61
file content (32 lines) | stat: -rwxr-xr-x 998 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

FTHB_VERSION=`cat tools/version`
echo $FTHB_VERSION

# We sed in SRC_DIR because Solaris `make` doesn't set SRC_DIR
SRC_DIR="`pwd`"

# Set FTHB_BUILD to force a full build
if [ "$FTHB_BUILD" ]; then
    MK_FILE="Makebuild"
elif [ `uname` = "Darwin" ] && [ `arch` = "arm64" ]; then
    MK_FILE="Makestatic"
    sed -e "s|@STATIC_FILE@|fthb-apple-arm-static.tar.gz|" src/Makestatic.in > src/Makestatic
elif [ `uname` = "Darwin" ]; then
    MK_FILE="Makestatic"
    sed -e "s|@STATIC_FILE@|fthb-apple-static.tar.gz|" src/Makestatic.in > src/Makestatic
elif [ `uname` = "LinuxDisabledForNow" ] && [ `arch` = "x86_64" ]; then
    MK_FILE="Makestatic"
    sed -e "s|@STATIC_FILE@|fthb-linux-static.tar.gz|" src/Makestatic.in > src/Makestatic
else
    MK_FILE="Makebuild"
fi

( cd tools/config && ./configure --silent )

sed -e "s|@FTHB_VERSION@|${FTHB_VERSION}|" \
    -e "s|@SRC_DIR@|${SRC_DIR}/src|" \
    -e "s|@MK_FILE@|$MK_FILE|" \
    src/Makevars.in > src/Makevars

mkdir -p src/target