File builders/mutt-2.1.0/builder.sh copied from file builders/openssh-8.6p1/builder.sh (similarity 51%) (mode: 100644) (index 72444e3..792bd0b) |
1 |
|
src_name=openssh |
|
|
1 |
|
src_name=mutt |
2 |
2 |
version=${pkg_name##*-} |
version=${pkg_name##*-} |
3 |
3 |
slot=$version |
slot=$version |
4 |
4 |
archive_name=$src_name-$version.tar.gz |
archive_name=$src_name-$version.tar.gz |
5 |
|
url0=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$archive_name |
|
|
5 |
|
url0=ftp://ftp.mutt.org/pub/$src_name/$archive_name |
6 |
6 |
|
|
7 |
7 |
pkg_dir=$pkgs_dir_root/$src_name-$version |
pkg_dir=$pkgs_dir_root/$src_name-$version |
8 |
8 |
rm -Rf $pkg_dir |
rm -Rf $pkg_dir |
|
... |
... |
cp -f $src_dir_root/$archive_name $pkgs_dir_root |
11 |
11 |
cd $pkgs_dir_root |
cd $pkgs_dir_root |
12 |
12 |
tar xf $archive_name |
tar xf $archive_name |
13 |
13 |
|
|
14 |
|
#------------------------------------------------------------------------------- |
|
15 |
|
# fix missing prototypes of compat openbsd funcs which are in static libressl |
|
16 |
|
# libs... without that 64 bits values are truncated to 32 bits values... |
|
17 |
|
cd $pkg_dir |
|
18 |
|
cp $nyan_root/builders/$pkg_name/missing-protos.h ./ |
|
19 |
|
sed -i -e '$ d' ./includes.h |
|
20 |
|
printf '#include "missing-protos.h"\n#endif /* INCLUDES_H */' >>./includes.h |
|
21 |
|
#------------------------------------------------------------------------------- |
|
22 |
|
|
|
23 |
14 |
build_dir=$builds_dir_root/$src_name-$version |
build_dir=$builds_dir_root/$src_name-$version |
24 |
15 |
rm -Rf $build_dir |
rm -Rf $build_dir |
25 |
16 |
mkdir -p $build_dir |
mkdir -p $build_dir |
|
... |
... |
PATH_SAVED=$PATH |
29 |
20 |
export PATH="\ |
export PATH="\ |
30 |
21 |
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\ |
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\ |
31 |
22 |
/nyan/make/current/bin:\ |
/nyan/make/current/bin:\ |
32 |
|
/nyan/pkgconf/current/bin:\ |
|
33 |
23 |
$PATH\ |
$PATH\ |
34 |
24 |
" |
" |
35 |
25 |
target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)") |
target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)") |
36 |
26 |
target_gnu_triple=${target_gnu_triple%-gcc} |
target_gnu_triple=${target_gnu_triple%-gcc} |
37 |
27 |
|
|
38 |
|
export "PKG_CONFIG_LIBDIR=/nyan/libressl/current/lib/pkgconfig" |
|
39 |
|
export 'CFLAGS=-O2 -pipe -fPIC' |
|
40 |
|
export "CC=$target_gnu_triple-gcc \ |
|
|
28 |
|
export "CPPFLAGS=\ |
41 |
29 |
-isystem /nyan/glibc/current/include \ |
-isystem /nyan/glibc/current/include \ |
42 |
30 |
-isystem /nyan/linux-headers/current/include \ |
-isystem /nyan/linux-headers/current/include \ |
|
31 |
|
-I/nyan/ncurses/current/include/ncurses" |
|
32 |
|
export 'CFLAGS=-O2 -pipe -fPIC -static-libgcc' |
|
33 |
|
export LDFLAGS="\ |
|
34 |
|
-L/nyan/ncurses/current/lib \ |
43 |
35 |
-B/nyan/glibc/current/lib \ |
-B/nyan/glibc/current/lib \ |
44 |
36 |
-L/nyan/glibc/current/lib \ |
-L/nyan/glibc/current/lib \ |
45 |
37 |
-Wl,-rpath-link,/nyan/glibc/current/lib \ |
-Wl,-rpath-link,/nyan/glibc/current/lib \ |
46 |
38 |
-Wl,-s \ |
-Wl,-s \ |
47 |
39 |
-static-libgcc" |
-static-libgcc" |
48 |
|
export AR=$target_gnu_triple-ar |
|
|
40 |
|
export CC=$target_gnu_triple-gcc |
|
41 |
|
export 'LIBS=-ltinfo -lpthread' |
|
42 |
|
# need to force "working iconv" with nyanglibc 2.33 |
49 |
43 |
$pkg_dir/configure \ |
$pkg_dir/configure \ |
50 |
44 |
--prefix=/nyan/$src_name/$slot \ |
--prefix=/nyan/$src_name/$slot \ |
51 |
|
--without-stackprotect \ |
|
52 |
|
--without-hardening \ |
|
53 |
|
--disable-strip \ |
|
54 |
|
--with-zlib=/nyan/zlib/current \ |
|
55 |
|
--with-ssl-dir=/nyan/libressl/current \ |
|
56 |
|
"--with-libs=$(pkgconf --static --libs libcrypto)" |
|
57 |
|
unset PKG_CONFIG_LIBDIR |
|
|
45 |
|
--disable-gpgme \ |
|
46 |
|
--disable-pgp \ |
|
47 |
|
--disable-smime \ |
|
48 |
|
--disable-external-dotlock \ |
|
49 |
|
--disable-pop \ |
|
50 |
|
--disable-imap \ |
|
51 |
|
--disable-smtp \ |
|
52 |
|
--disable-debug \ |
|
53 |
|
--disable-nfs-fix \ |
|
54 |
|
--disable-mailtool \ |
|
55 |
|
--disable-locales-fix \ |
|
56 |
|
--enable-exact-address \ |
|
57 |
|
--disable-hcache \ |
|
58 |
|
--enable-iconv \ |
|
59 |
|
--disable-nls \ |
|
60 |
|
--disable-doc \ |
|
61 |
|
--disable-full-doc \ |
|
62 |
|
--with-curses=/nyan/ncurses/current \ |
|
63 |
|
--with-bundled-regex \ |
|
64 |
|
--with-mailpath=/var/mail \ |
|
65 |
|
--without-qdbm \ |
|
66 |
|
--without-gdbm \ |
|
67 |
|
--without-bdb \ |
|
68 |
|
--with-wc-funcs \ |
|
69 |
|
am_cv_func_iconv_works=yes |
|
70 |
|
unset CPPFLAGS |
58 |
71 |
unset CFLAGS |
unset CFLAGS |
|
72 |
|
unset LDFLAGS |
59 |
73 |
unset CC |
unset CC |
60 |
|
unset AR |
|
|
74 |
|
unset LIBS |
|
75 |
|
|
|
76 |
|
# doc is forced, again... |
|
77 |
|
sed -i ./Makefile -e '536 c\ |
|
78 |
|
SUBDIRS = m4 po contrib' |
61 |
79 |
|
|
62 |
80 |
make -j $threads_n |
make -j $threads_n |
63 |
|
make install |
|
|
81 |
|
make install |
|
82 |
|
|
|
83 |
|
mkdir -p /var/mail |
64 |
84 |
|
|
65 |
85 |
rm -Rf /nyan/$src_name/$slot/share |
rm -Rf /nyan/$src_name/$slot/share |
66 |
86 |
|
|