File Add-pkg-config-file.patch of Package wireshark.651

Index: wireshark-1.10.13/wireshark.pc.in
===================================================================
--- /dev/null
+++ wireshark-1.10.13/wireshark.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: wireshark
+Description: wireshark network packet dissection library
+Version: @PACKAGE_VERSION@
+
+Requires: glib-2.0 gmodule-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
Index: wireshark-1.10.13/Makefile.am
===================================================================
--- wireshark-1.10.13.orig/Makefile.am
+++ wireshark-1.10.13/Makefile.am
@@ -50,6 +50,9 @@ bin_PROGRAMS = \
 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
 	randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = wireshark.pc
+
 #
 # Wireshark configuration files are put in $(pkgdatadir).
 #
Index: wireshark-1.10.13/configure.ac
===================================================================
--- wireshark-1.10.13.orig/configure.ac
+++ wireshark-1.10.13/configure.ac
@@ -2549,6 +2549,7 @@ AC_CONFIG_HEADERS(config.h)
 AC_OUTPUT(
   Makefile
   doxygen.cfg
+  wireshark.pc
   asn1/Makefile
   _CUSTOM_ASN1_AC_OUTPUT_
   asn1/acp133/Makefile
openSUSE Build Service is sponsored by