mtree: fix musl build
This commit is contained in:
parent
b7b3d17652
commit
76920f054d
|
@ -13,7 +13,19 @@ homepage="https://github.com/archiecobbs/mtree-port/"
|
|||
distfiles="https://github.com/archiecobbs/mtree-port/archive/${version}.tar.gz"
|
||||
checksum=bbbf2ae5f1f99119b3cb7f55f90015b0e06238cde2801c9990521109b2529eed
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) makedepends+=" musl-fts-devel"
|
||||
;;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl)
|
||||
sed -i '$amtree_CPPFLAGS=-D_STAT_VER_LINUX' Makefile.am
|
||||
sed -i '$amtree_LDADD=-lfts' Makefile.am
|
||||
sed -i 's/strtoq/strtoll/g' spec.c
|
||||
;;
|
||||
esac
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue