Title: pkgconfig support DEP: 3 Last-Update: 2012-10-25 Author: Lennart Weller <lhw@ring0.de> Forwarded: not-needed Abstract: Allow for easier development with stringencoder libraries by supplying a pkg-config file diff --git a/Makefile.am b/Makefile.am index 215cca3..00e865c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,9 @@ SOURCES = \ lib_LTLIBRARIES = libmodpbase64.la libmodpbase64_la_SOURCES = ${SOURCES} +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = stringencoders.pc + libmodpbase64_la_DEPENDENCIES = \ modp_b2_data.h modp_b2_gen \ modp_b16_data.h modp_b16_gen \ diff --git a/configure.ac b/configure.ac index 769470c..d475a1c 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,6 @@ fi CFLAGS="$EXTRACFLAGS $CFLAGS" CXXFLAGS="$CFLAGS" AC_SUBST(B64WCHARS) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile stringencoders.pc]) AC_PROG_MAKE_SET AC_OUTPUT diff --git a/stringencoders.pc.in b/stringencoders.pc.in new file mode 100644 index 0000000..1572bc2 --- /dev/null +++ b/stringencoders.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: stringencoders +Description: collection of high performance c-string transformations +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lmodpbase64 +Cflags: -I${includedir}