repo/core/git/build

30 lines
633 B
Plaintext
Raw Normal View History

2019-06-02 01:00:13 -06:00
#!/bin/sh -e
export LDFLAGS="$LDFLAGS -static"
2020-03-03 17:56:35 -07:00
2019-09-07 10:51:37 -06:00
cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
NO_TCLTK=YesPlease
NO_EXPAT=YesPlease
NO_NSEC=YesPlease
NO_PYTHON=YesPlease
2020-03-03 17:56:35 -07:00
NO_PERL=YesPlease
2019-09-07 10:51:37 -06:00
NO_SYS_POLL_H=1
NO_CROSS_DIRECTORY_HARDLINKS=1
NO_INSTALL_HARDLINKS=1
NO_OPENSSL=YesPlease
2019-09-07 10:51:37 -06:00
EOF
2019-06-18 06:17:49 -06:00
./configure \
2019-09-07 10:00:30 -06:00
--prefix=/usr \
--libexecdir=/usr/lib \
2020-09-30 01:11:36 -06:00
ac_cv_lib_curl_curl_global_init=yes \
2019-09-07 10:00:30 -06:00
ac_cv_snprintf_returns_bogus=no \
2019-09-07 10:51:37 -06:00
ac_cv_fread_reads_directories=yes
2019-06-02 01:00:13 -06:00
2022-03-07 01:36:07 -07:00
make LIBS="$(curl-config --static-libs) libgit.a reftable/libreftable.a xdiff/lib.a -lz"
2023-03-02 07:40:00 -07:00
make DESTDIR="$1" install
2020-04-26 23:48:02 -06:00
2021-07-11 17:54:13 -06:00
cp -Rf man "$1/usr/share/man"