diff --git a/configure.ac b/configure.ac index 9fc83f88..6cc884aa 100644 --- a/configure.ac +++ b/configure.ac @@ -285,7 +285,7 @@ AC_CONFIG_FILES([Makefile src/Makefile man/Makefile \ src/enc/Makefile src/dsp/Makefile \ src/demux/Makefile src/mux/Makefile \ src/utils/Makefile \ - src/libwebp.pc]) + src/libwebp.pc src/libwebpdecoder.pc]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index ba4b7f41..c3909da7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -33,6 +33,7 @@ libwebp_la_LIBADD += utils/libwebputils.la # symbols in shared libraries to be resolved at library creation. libwebp_la_LDFLAGS = -no-undefined -version-info 4:1:0 libwebpincludedir = $(includedir)/webp +pkgconfig_DATA = libwebp.pc if BUILD_LIBWEBPDECODER libwebpdecoder_la_SOURCES = @@ -47,7 +48,7 @@ if BUILD_LIBWEBPDECODER libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 0:0:0 libwebpdecoderincludedir = $(includedir)/webp + pkgconfig_DATA += libwebpdecoder.pc endif -pkgconfig_DATA = libwebp.pc ${pkgconfig_DATA}: ${top_builddir}/config.status diff --git a/src/libwebpdecoder.pc.in b/src/libwebpdecoder.pc.in new file mode 100644 index 00000000..9a9d16e1 --- /dev/null +++ b/src/libwebpdecoder.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libwebpdecoder +Description: Library for the WebP graphics format (decode only) +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lwebpdecoder +Libs.private: -lm