-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path010-tiff-3.9.4.sh
More file actions
executable file
·30 lines (22 loc) · 1.11 KB
/
010-tiff-3.9.4.sh
File metadata and controls
executable file
·30 lines (22 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh -e
# tiff-3.9.4.sh by Jon Limle <jonlimle123@yahoo.com>
## Download the source code.
wget --tries 5 --timeout 15 https://ftp.osuosl.org/pub/blfs/conglomeration/tiff/tiff-3.9.4.tar.gz
## Download an up-to-date config.guess and config.sub
if [ ! -f config.guess ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
if [ ! -f config.sub ]; then wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
## Unpack the source code.
rm -Rf tiff-3.9.4 && tar xfvz ./tiff-3.9.4.tar.gz && cd tiff-3.9.4
## Replace config.guess and config.sub
cp ../config.guess ../config.sub config/
## Patch the source code.
cat ../../patches/tiff-3.9.4-PPU.patch | patch -p1
## Create the build directory.
mkdir build-ppu && cd build-ppu
## Configure the build.
CFLAGS="-I$PSL1GHT/ppu/include -I$PS3DEV/portlibs/ppu/include" \
LDFLAGS="-L$PSL1GHT/ppu/lib -L$PS3DEV/portlibs/ppu/lib -lrt -llv2" \
PKG_CONFIG_PATH="$PS3DEV/portlibs/ppu/lib/pkgconfig" \
../configure --prefix="$PS3DEV/portlibs/ppu" --host="powerpc64-ps3-elf" --disable-shared
## Compile and install.
${MAKE:-make} && ${MAKE:-make} install