blob: a5406bd862a1a9bd01861ca48d8733981a63eeb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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@
|