|
root / base / xbitmaps / build.sh
build.sh Bash 26 lines 864 B
 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
#!/bin/sh
# Build script for xbitmaps (autotools, Template A). Data-only (X11/bitmaps/*
# bitmap files) - no compiled code, just install(1) via the generated
# Makefile. Ships a pre-generated ./configure, so no xorg-macros/autoreconf
# needed. Pulled in as a motif build dependency: lib/Xm/I18List.c does
# `#include <X11/bitmaps/gray>` (a real X.Org bitmap, unrelated to motif's
# own in-tree bitmaps/ subdir).
set -e
cd "$SRCDIR"

# MANDATORY libtool/config.sub fix - see Template A.
if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR"

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