616df0af82
Since libnfc is not installed system-wide, pkg-config(1) can't find it. Set LIBNFC_CFLAGS/LDFLAGS manually.
22 lines
453 B
Bash
Executable file
22 lines
453 B
Bash
Executable file
#!/bin/sh
|
|
cd $1
|
|
|
|
if [ "$BLD" = autotools ]; then
|
|
set -ex
|
|
autoreconf -vis
|
|
mkdir build-autotools
|
|
cd build-autotools
|
|
../configure --prefix=$HOME/.local LIBNFC_CFLAGS="-I$HOME/.local/include" LIBNFC_LIBS="-L$HOME/.local/lib -lnfc"
|
|
make
|
|
make install
|
|
elif [ "$BLD" = cmake ]; then
|
|
set -ex
|
|
mkdir build-cmake
|
|
cd build-cmake
|
|
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
|
|
make
|
|
make install
|
|
else
|
|
echo "Unsupported build system: '$BLD'" >&2
|
|
exit 1
|
|
fi
|