Skip to content
Snippets Groups Projects
Verified Commit a555a6d8 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add libxml2 and xz recipe.toml

parent 21a4106d
No related branches found
No related tags found
No related merge requests found
[source]
tar = "ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz"
[build]
template = "custom"
dependencies = [
"xz",
"zlib"
]
script = """
export CFLAGS="-I'${COOKBOOK_SYSROOT}/include'"
export LDFLAGS="-L'${COOKBOOK_SYSROOT}/lib' --static"
"${COOKBOOK_SOURCE}/configure" \
--host="${TARGET}" \
--prefix="" \
--disable-shared \
--enable-static \
--without-python
make -j "$(nproc)"
make install DESTDIR="${COOKBOOK_STAGE}"
# Strip binaries
if [ -d "${COOKBOOK_STAGE}/bin" ]
then
find "${COOKBOOK_STAGE}/bin" -type f -exec "${TARGET}-strip" -v {} ';'
fi
# Remove libtool files
if [ -d "${COOKBOOK_STAGE}/lib" ]
then
find "${COOKBOOK_STAGE}/lib" -type f -name '*.la' -exec rm -fv {} ';'
fi
"""
[source]
tar = "https://codeload.github.com/xz-mirror/xz/tar.gz/v5.2.3"
patches = [
"01-no-poll.patch",
"02-o_noctty.patch",
"03-no-signals.patch"
]
[build]
template = "custom"
script = """
#TODO: simpler recipe
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
./autogen.sh
chmod +w build-aux/config.sub
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
export CFLAGS="-static"
"./configure" \
--host="${TARGET}" \
--prefix="" \
--disable-lzmadec \
--disable-lzmainfo \
--disable-xz \
--disable-xzdec \
--enable-shared=no \
--enable-static=yes \
--enable-threads=no \
--with-pic=no
make -j "$(nproc)"
make install DESTDIR="${COOKBOOK_STAGE}"
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment