updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / tif22pnm / do.sh.patch
blob2c9ca5708123750e581c91e878857ba60cb8d01b
1 --- do.sh.old 2011-12-15 23:43:08.000000000 +0100
2 +++ do.sh 2011-12-28 11:52:21.000000000 +0100
3 @@ -98,11 +98,11 @@
4 for C in $SOURCES; do OS="$OS ${C%.*}.o"; done
5 set -e
6 for C in $SOURCES; do
7 - echo + $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C
8 - $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C
9 + echo + $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C $EXTRAFLAGS
10 + $L_CC $CPPFLAGS $CFLAGS $CFLAGSB -c $C $EXTRAFLAGS
11 done
12 - echo + $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS
13 - $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS
14 + echo + $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS $EXTRAFLAGS
15 + $L_LD $LDFLAGS $OS -o "$TARGET" $LIBS $EXTRAFLAGS
16 set +e
17 export TARGET
18 echo "Created executable file: $TARGET (size: `perl -e 'print -s $ENV{TARGET}'`)."
19 @@ -111,9 +111,11 @@
20 SOURCES='ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c'
21 TARGET=tif22pnm
22 LIBS="$LIBS_TIFF"
23 +EXTRAFLAGS=""
24 build
26 SOURCES='png22pnm.c'
27 TARGET=png22pnm
28 LIBS="$LIBS_PNG"
29 +EXTRAFLAGS="-lz -lm"
30 build