gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / fetchmail-0 / builder.sh
blob91801b91f8259583a20eb27a25beff34c53ea790
1 src_name=fetchmail
2 version=6.3.26
3 archive_name=$src_name-$version.tar.xz
4 url0=http://sourceforge.net/projects/fetchmail/files/branch_6.3/$archive_name
6 src_dir=$src_dir_root/$src_name-$version
7 cd $src_dir_root
8 rm -Rf $src_name-$version
9 tar xf $archive_name
11 build_dir=$builds_dir_root/$pkg_name-$version
12 rm -Rf $build_dir
13 mkdir -p $build_dir
14 cd $build_dir
16 # must find procmail in path for fallback
17 OLD_PATH=$PATH
18 export PATH=/nyan/procmail/current/bin:$PATH
20 export 'CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc'
21 export 'CFLAGS=-O2 -pipe -fPIC'
22 $src_dir/configure \
23 --prefix=/nyan/fetchmail/0 \
24 --disable-nls \
25 --enable-fallback=procmail \
26 --disable-POP2 \
27 --disable-IMAP \
28 --enable-ETRN \
29 --enable-ODMR \
30 --disable-RPA \
31 --disable-NTLM \
32 --disable-SDPS \
33 --without-ssl
34 unset CFLAGS
35 unset CC
37 export PATH=$OLD_PATH
39 make -j $threads_n
40 make install
42 # cleanup and tidying
43 rm -Rf /nyan/$src_name/0/share
44 strip -s /nyan/$src_name/0/bin/$src_name
46 rm -Rf $build_dir $src_dir