diff options
Diffstat (limited to 'personal/git/build')
-rwxr-xr-x | personal/git/build | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/personal/git/build b/personal/git/build new file mode 100755 index 0000000..5d55ca3 --- /dev/null +++ b/personal/git/build @@ -0,0 +1,67 @@ +#!/bin/sh -e +# Git build with git-send-email perl garbage enabled :c + +( + cd ssleay + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd uri + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd socket-ssl + yes | perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd sasl + PERL_USE_UNSAFE_INC=1 \ + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make pure_install DESTDIR="$1" +) + +( + cd ssl + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install + find "$1" \( -name '.packlist' -o -name '*.pod' \) -exec rm -rf {} + +) + +cd git + +# export CFLAGS="$CFLAGS -fPIC" +# export LDFLAGS="$LDFLAGS -static" + +cat > config.mak <<EOF +NO_GETTEXT=YesPlease +NO_SVN_TESTS=YesPlease +NO_TCLTK=YesPlease +NO_EXPAT=YesPlease +NO_NSEC=YesPlease +NO_PYTHON=YesPlease +NO_SYS_POLL_H=1 +NO_CROSS_DIRECTORY_HARDLINKS=1 +NO_INSTALL_HARDLINKS=1 +EOF + +./configure \ + --prefix=/usr \ + --with-curl \ + ac_cv_snprintf_returns_bogus=no \ + ac_cv_fread_reads_directories=yes + +make +make DESTDIR="$1" install + +mv man/* "$1/usr/share/man" |