Skip to content

Commit 33cb994

Browse files
nikicausi
authored andcommitted
Add our own libjpeg.pc if it doesn't exist yet
1 parent efb4ea2 commit 33cb994

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ install:
8686
- git pull
8787
- popd
8888
- if [[ $RELEASE != precise ]]; then unset ICU_RELEASE; fi # disable ICU installation for Trusty; see https://github.com/travis-ci/travis-ci/issues/3616#issuecomment-286302387
89+
- | # older distros don't ship a libjpeg.pc, add our own to pkg-config path
90+
if ! pkg-config --exists libjpeg; then
91+
export PKG_CONFIG_PATH=$PWD:$PKG_CONFIG_PATH
92+
fi
8993
- ./bin/install-icu
9094
- ./bin/install-libzip
9195
- ./bin/install-libsodium

libjpeg.pc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=/usr
2+
exec_prefix=${prefix}
3+
libdir=${prefix}/lib/x86_64-linux-gnu
4+
includedir=${prefix}/include
5+
6+
Name: libjpeg
7+
Description: JPEG image codec
8+
Version:
9+
Libs: -L${libdir} -ljpeg
10+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)