Lines 30-36
Link Here
|
30 |
} |
30 |
} |
31 |
|
31 |
|
32 |
cflags() { |
32 |
cflags() { |
33 |
if pkg-config --silence-errors --cflags libraw; then |
33 |
if pkg-config --silence-errors --cflags libraw_r; then |
34 |
: |
34 |
: |
35 |
elif [ $1 ]; then |
35 |
elif [ $1 ]; then |
36 |
printf "%cDLIBRAW_NODLL " "-" |
36 |
printf "%cDLIBRAW_NODLL " "-" |
Lines 42-48
Link Here
|
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
libs() { |
44 |
libs() { |
45 |
if pkg-config --silence-errors --libs libraw; then |
45 |
if pkg-config --silence-errors --libs libraw_r; then |
46 |
: |
46 |
: |
47 |
elif [ $1 ]; then |
47 |
elif [ $1 ]; then |
48 |
printf "%clraw_r %clstdc++ %clwsock32 " "-" "-" "-" |
48 |
printf "%clraw_r %clstdc++ %clwsock32 " "-" "-" "-" |
Lines 55-61
Link Here
|
55 |
|
55 |
|
56 |
# TODO: Cannot check version of library if no .pc file installed. |
56 |
# TODO: Cannot check version of library if no .pc file installed. |
57 |
exists() { |
57 |
exists() { |
58 |
if pkg-config --silence-errors --exists 'libraw >= $3'; then |
58 |
if pkg-config --silence-errors --exists 'libraw_r >= $3'; then |
59 |
: |
59 |
: |
60 |
elif ! searchpath $LIB_DIRS "libraw_r.a" || ! searchpath $HEADER_DIRS "libraw/libraw.h"; then |
60 |
elif ! searchpath $LIB_DIRS "libraw_r.a" || ! searchpath $HEADER_DIRS "libraw/libraw.h"; then |
61 |
printf "\nPackage libraw not found\n" |
61 |
printf "\nPackage libraw not found\n" |