Debian Codegraph @

debian/patches/adapt-makefile.pl-to-support-jpeg-on-non-amd64.patch

raw symbols SCIP
1 Descriptionscip-debian debian libimage-scale-perl 0.14+dfsg-4 libimage-scale-perl/patches/`adapt-makefile.pl-to-support-jpeg-on-non-amd64.patch`#Description.: upstream supports libjpeg-turbo only on amd64
2 Authorscip-debian debian libimage-scale-perl 0.14+dfsg-4 libimage-scale-perl/patches/`adapt-makefile.pl-to-support-jpeg-on-non-amd64.patch`#Author.: Paul Gevers <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Forwardedscip-debian debian libimage-scale-perl 0.14+dfsg-4 libimage-scale-perl/patches/`adapt-makefile.pl-to-support-jpeg-on-non-amd64.patch`#Forwarded.: not suitable
4
5 --- a/Makefile.PLscip-debian debian libimage-scale-perl 0.14+dfsg-4 libimage-scale-perl/upstream/`Makefile.PL`:
6 +++ b/Makefile.PLscip-debian debian libimage-scale-perl 0.14+dfsg-4 libimage-scale-perl/upstream/`Makefile.PL`:
7 @@ -104,9 +104,12 @@ for my $incdir ( $jpeg_inc, @check ) {
8 else {
9 $JPEG_VERSION = _re_find( catfile($incdir, 'jpeglib.h'), qr/JPEG_LIB_VERSION\s+(\d+)/ ) || 'unknown';
10 if ( $JPEG_VERSION eq 'unknown' ) {
11 + # On Debian, with libjpeg-turbo headers are in a arch specific dir
12 + my $arch_type = qx(dpkg-architecture -q DEB_HOST_MULTIARCH);
13 + chomp $arch_type;
14 # Also check jconfig.h as it contains the version when using libjpeg-turbo
15 - if ( -d catdir($incdir, 'x86_64-linux-gnu') ) { # jconfig.h header is sometimes installed in a subdir
16 - $JPEG_VERSION = _re_find( catfile($incdir, 'x86_64-linux-gnu', 'jconfig.h'), qr/JPEG_LIB_VERSION\s+(\d+)/ ) || 'unknown';
17 + if ( -d catdir($incdir, $arch_type) ) { # jconfig.h header is sometimes installed in a subdir
18 + $JPEG_VERSION = _re_find( catfile($incdir, $arch_type, 'jconfig.h'), qr/JPEG_LIB_VERSION\s+(\d+)/ ) || 'unknown';
19 }
20 else {
21 $JPEG_VERSION = _re_find( catfile($incdir, 'jconfig.h'), qr/JPEG_LIB_VERSION\s+(\d+)/ ) || 'unknown';