-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathbuild.sh
executable file
·49 lines (40 loc) · 1.38 KB
/
build.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Get an updated config.sub and config.guess
cp $BUILD_PREFIX/share/libtool/build-aux/config.* .
NOCONFIGURE=1 ./autogen.sh
if [[ ${target_platform} == linux-* ]]; then
# workaround weird configure behaviour where it decides
# it doesn't need libiconv
export LDFLAGS="${LDFLAGS} -liconv"
fi
./configure --prefix="${PREFIX}" \
--build=${BUILD} \
--host=${HOST} \
--with-iconv="${PREFIX}" \
--with-zlib="${PREFIX}" \
--with-icu="${with_icu}" \
--with-lzma="${PREFIX}" \
--with-ftp \
--with-legacy \
--with-python=no \
--with-tls \
--enable-static=no \
|| cat config.log
make -j${CPU_COUNT} ${VERBOSE_AT}
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" != "1" || "${CROSSCOMPILING_EMULATOR}" != "" ]]; then
make check ${VERBOSE_AT}
fi
make install
if [[ ${target_platform} == linux-* ]]; then
${NM} -g ${PREFIX}/lib/libxml2.so | cut -b 18-
fi
# Remove large documentation files that can take up to 6.6/9.2MB of the install
# size.
# https://github.com/conda-forge/libxml2-feedstock/issues/57
rm -rf ${PREFIX}/share/doc
rm -rf ${PREFIX}/share/gtk-doc
rm -rf ${PREFIX}/share/man
for f in "activate" "deactivate"; do
mkdir -p "${PREFIX}/etc/conda/${f}.d"
cp "${RECIPE_DIR}/${f}.sh" "${PREFIX}/etc/conda/${f}.d/${PKG_NAME}_${f}.sh"
done