Files
dosbox-x/vs/libpng/build-dosbox.sh
Jookia b3fa848f0f Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
2022-12-12 17:52:27 +08:00

28 lines
629 B
Bash
Executable File

#!/usr/bin/env bash
rm -Rfv linux-host || exit 1
mkdir -p linux-host || exit 1
rm -Rfv linux-build || exit 1
mkdir -p linux-build || exit 1
chmod +x configure || exit 1
srcdir="`pwd`"
instdir="`pwd`/linux-host"
cd linux-build || exit 1
opts=
../configure "--srcdir=$srcdir" "--prefix=$instdir" --enable-static --disable-shared $opts || exit 1
# mingw: need to remove ^M from the header file.
# first make the file exist, then filter it.
make pnglibconf.h || exit 1
(cat pnglibconf.h | sed -e 's/\x0D//' >x) || exit 1
mv x pnglibconf.h || exit 1
make -j || exit 1
make install || exit 1 # will install into ./linux-host