https://bugs.gentoo.org/609188 diff --git a/Makefile.am b/Makefile.am index f851231..438b4ce 100644 --- a/Makefile.am +++ b/Makefile.am @@ -113,3 +113,6 @@ check-coverage: clean-local: rm -rf */*.gc?? */*/*.gc?? $(LCOV_INFO) lcov + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libidn2.pc diff --git a/configure.ac b/configure.ac index bfaff9a..6087f20 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,7 @@ AC_CONFIG_FILES([ examples/Makefile idn2.h lib/Makefile + libidn2.pc po/Makefile.in src/Makefile tests/Makefile diff --git a/libidn2.pc.in b/libidn2.pc.in new file mode 100644 index 0000000..0dade23 --- /dev/null +++ b/libidn2.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ + +Name: libidn2 +Description: Library implementing IDNA2008 and TR46 +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lidn2 +Libs.private: @LTLIBICONV@ @LTLIBUNISTRING@