From bed1ed7c284eaafca6648924ba1f2c666973bdd9 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 23 Jan 2013 13:57:08 -0800 Subject: [PATCH] add libwebpdecoder.pc Change-Id: Ifc47549a9fe206fa174236664345d3ee064849f5 --- configure.ac | 2 +- src/Makefile.am | 3 ++- src/libwebpdecoder.pc.in | 11 +++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/libwebpdecoder.pc.in 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