kiss-mfavila-small/ports/xfsprogs/build

40 lines
925 B
Plaintext
Raw Normal View History

#!/bin/sh -e
# Bundle libinih just for xfsprogs
export DESTDIR="$PWD/../libinih"
2021-05-11 00:07:37 -04:00
meson \
-Dprefix=/ \
-Ddefault_library=static \
-Ddistro_install=true \
-Dwith_INIReader=true \
-Dmulti-line_entries=true \
-Dutf-8_bom=true \
-Dinline_comments=true \
-Duse_heap=false \
inih inih/output
ninja -C inih/output
ninja -C inih/output install
export CFLAGS="$CFLAGS -I$PWD/../libinih/include"
export LDFLAGS="$LDFLAGS -L$PWD/../libinih/lib"
# Remove incorrect bash dependency.
sed -i 's/bash/sh/' install-sh
# Explicitly include <signal.h> instead of implicit inclusion.
sed -i '1i#include <signal.h>' include/linux.h
2021-05-11 00:07:37 -04:00
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--disable-gettext
make
make \
2021-05-11 00:07:37 -04:00
DIST_ROOT="$1" \
PKG_ROOT_SBIN_DIR=/usr/bin \
PKG_ROOT_LIB_DIR=/usr/lib \
install