wireshark/wireshark-0006-Add-pkgconfig-entry.patch

40 lines
1.2 KiB
Diff
Raw Normal View History

2016-01-14 10:56:55 +00:00
commit 7a47641e4b8b152264bb5d85807821a3d982eeae
Author: Radek Vokal <rvokal@fedoraproject.org>
Date: Wed Jan 6 09:37:49 2016 +0100
2016-01-14 10:56:55 +00:00
Add pkgconfig entry
diff --git a/Makefile.am b/Makefile.am
2016-01-14 10:56:55 +00:00
index 913e064..30f8107 100644
--- a/Makefile.am
+++ b/Makefile.am
2016-06-14 20:33:08 +00:00
@@ -57,6 +57,9 @@ EXTRA_PROGRAMS = wireshark-gtk wireshark tshark tfshark capinfos captype editcap
2016-01-14 10:56:55 +00:00
dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
smi_modules ipmap.html pdml2html.xsl
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = wireshark.pc
+
#
2016-01-14 10:56:55 +00:00
# Install global profiles in the "profiles" subdirectory
#
diff --git a/wireshark.pc.in b/wireshark.pc.in
2016-06-14 20:33:08 +00:00
index 5889178..1e1b62f 100644
--- a/wireshark.pc.in
+++ b/wireshark.pc.in
2016-06-14 20:33:08 +00:00
@@ -6,9 +6,9 @@ sharedlibdir=${libdir}
plugindir=@plugindir@
2016-06-14 20:33:08 +00:00
Name: Wireshark
-Description: Network Packet Dissection Library
-Version: @VERSION@
+Description: Network Traffic Analyzer
+Version: @PACKAGE_VERSION@
2016-06-14 20:33:08 +00:00
-Requires: glib-2.0, gmodule-2.0, gthread-2.0
-Libs: -L${libdir} -lwireshark
-Cflags: -I${includedir}/wireshark
+Requires: Qt, glib-2.0, gmodule-2.0, gthread-2.0
+Libs: -L@libdir@ -lwireshark -lwiretap
+Cflags: -DWS_VAR_IMPORT=extern -DHAVE_STDARG_H -DWS_MSVC_NORETURN= -I@includedir@/wireshark -I@includedir@/wireshark/epan