wip update
[nyanlinux.git] / builders / libexif-0 / builder.sh
blob38ae1811020ddc08e81fa939018c381648fb5712
1 src_name=libexif
2 version=0.6.21
3 archive_name=$src_name-$version.tar.bz2
4 url0=https://downloads.sourceforge.net/project/$src_name/files/$src_name/$version/$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 export 'CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc'
17 export 'CFLAGS=-O2 -pipe -fPIC'
18 $src_dir/configure \
19 --prefix=/nyan/libexif/0 \
20 --disable-shared \
21 --enable-static \
22 --disable-nls
23 unset CFLAGS
24 unset CC
26 make -j $threads_n
27 make install
29 # cleanup and tidying
30 rm -Rf /nyan/$src_name/0/share
31 rm -f /nyan/$src_name/0/lib/*.la
33 rm -Rf $build_dir $src_dir