croc: disable ipv6 with sed instead of patch
[kiss-trunc88.git] / xfsprogs / build
blob59b66c467218e56e4e9c1fcb1fb944c74e036d06
1 #!/bin/sh -e
3 # Bundle libinih just for xfsprogs
4 export DESTDIR="$PWD/../libinih"
6 meson \
7 -Dprefix=/ \
8 -Ddefault_library=static \
9 -Ddistro_install=true \
10 -Dwith_INIReader=true \
11 -Dmulti-line_entries=true \
12 -Dutf-8_bom=true \
13 -Dinline_comments=true \
14 -Duse_heap=false \
15 inih inih/output
17 ninja -C inih/output
18 ninja -C inih/output install
20 export CFLAGS="$CFLAGS -I$PWD/../libinih/include"
21 export LDFLAGS="$LDFLAGS -L$PWD/../libinih/lib"
23 # Remove incorrect bash dependency.
24 #sed -i 's/bash/sh/' install-sh
25 sed -e 's/bash/sh/' install-sh > _
26 mv -f _ install-sh
27 chmod +x install-sh
29 # Explicitly include <signal.h> instead of implicit inclusion.
30 #sed -i '1i#include <signal.h>' include/linux.h
31 sed -e '1i#include <signal.h>' include/linux.h > _
32 mv -f _ include/linux.h
34 ./configure \
35 --prefix=/usr \
36 --sbindir=/usr/bin \
37 --disable-gettext
39 make
40 make \
41 DIST_ROOT="$1" \
42 PKG_ROOT_SBIN_DIR=/usr/bin \
43 PKG_ROOT_LIB_DIR=/usr/lib \
44 install install-dev