|
root / base / libtermkey / build.sh
build.sh Bash 16 lines 659 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/bin/sh
# Build script for libtermkey (plain Makefile, uses the system GNU libtool
# binary directly - not a generated per-project libtool script). Needs
# base/unibilium built + installed first; the Makefile locates it via
# pkg-config ($(call pkgconfig, ...)), so PKG_CONFIG_PATH must reach
# $PREFIX/lib/pkgconfig.
set -e
cd "$SRCDIR"

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

gmake -j${JOBS:-1} PREFIX="$PREFIX"
gmake install PREFIX="$PREFIX" DESTDIR="$PKGDIR"