continuance of moving core video game libs to glibc default dir
[nyanlinux.git] / builders / feh-0 / builder.sh
blob918d367035317dfd0b2e20e5a3c2b72bdf08e707
1 src_name=feh
2 version=2.25.1
3 archive_name=$src_name-$version.tar.bz2
4 url0=http://feh.finalrewind.org/$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 cd $src_dir
13 export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -static-libgcc \
14 -Wl,-rpath-link,\
15 /nyan/libXau/current/lib:\
16 /nyan/libX11/current/lib:\
17 /nyan/freetype/current/lib:\
18 /nyan/libxcb/current/lib:\
19 /nyan/libXext/current/lib:\
20 /nyan/glibc/current/lib"
21 export "CFLAGS=-O2 -pipe -fPIC \
22 -I/nyan/libX11/current/include \
23 -I/nyan/xorgproto/current/include \
24 -I/nyan/libXinerama/current/include \
25 -I/nyan/imlib2/current/include \
26 -I/nyan/libexif/current/include \
27 -I/nyan/libpng/current/include \
28 -I/nyan/curl/current/include \
29 -I/nyan/libXt/current/include"
30 export "LDFLAGS=\
31 -L/nyan/libunistring/current/lib \
32 -L/nyan/toolchains/current/lib \
33 -L/nyan/libtasn1/current/lib \
34 -L/nyan/gnutls/current/lib \
35 -L/nyan/zlib/current/lib \
36 -L/nyan/libidn2/current/lib \
37 -L/nyan/nettle/current/lib \
38 -L/nyan/libpng/current/lib \
39 -L/nyan/libX11/current/lib \
40 -L/nyan/imlib2/current/lib \
41 -L/nyan/curl/current/lib \
42 -L/nyan/libexif/current/lib \
43 -L/nyan/libXinerama/current/lib"
44 export "LDLIBS=-lcurl -lgnutls -ltasn1 -lnettle -lhogweed -lunistring -lidn2 -lz -lgmp -lpthread"
45 export PREFIX=/nyan/feh/0
46 make exif=1 curl=1
47 unset PREFIX
48 unset LDFLAGS
49 unset CFLAGS
50 unset CC
52 export PREFIX=/nyan/feh/0
53 make install
55 # cleanup and tidying
56 rm -Rf /nyan/$src_name/0/share/man
57 rm -Rf /nyan/$src_name/0/share/applications
58 rm -Rf /nyan/$src_name/0/share/doc
59 strip -s /nyan/$src_name/0/bin/$src_name
61 rm -Rf $src_dir