lib: Add support for pkgconfig for libofproto.
authorThomas Graf <tgraf@noironetworks.com>
Thu, 13 Nov 2014 11:28:42 +0000 (12:28 +0100)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Nov 2014 16:03:43 +0000 (08:03 -0800)
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
configure.ac
ofproto/.gitignore
ofproto/automake.mk
ofproto/libofproto.pc.in [new file with mode: 0644]

index 5e0414a..d3b3d59 100644 (file)
@@ -173,6 +173,7 @@ AC_CONFIG_FILES(datapath/linux/Makefile)
 AC_CONFIG_FILES(datapath/linux/Makefile.main)
 AC_CONFIG_FILES(tests/atlocal)
 AC_CONFIG_FILES(lib/libopenvswitch.pc)
+AC_CONFIG_FILES(ofproto/libofproto.pc)
 
 dnl This makes sure that include/openflow gets created in the build directory.
 AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
index cd10be1..7ca3fd4 100644 (file)
@@ -1,3 +1,4 @@
 /Makefile
 /Makefile.in
 /ipfix-entities.def
+/libofproto.pc
index f548946..0058ff3 100644 (file)
@@ -59,6 +59,8 @@ if WIN32
 ofproto_libofproto_la_LIBADD += ${PTHREAD_LIBS}
 endif
 
+pkgconfig_DATA += \
+       $(srcdir)/ofproto/libofproto.pc
 
 # Distribute this generated file in order not to require Python at
 # build time if ofproto/ipfix.xml is not modified.
diff --git a/ofproto/libofproto.pc.in b/ofproto/libofproto.pc.in
new file mode 100644 (file)
index 0000000..dbedcce
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libofproto
+Description: OpenFlow library of Open vSwitch
+Version: @VERSION@
+Libs: -L${libdir} -lofproto
+Libs.private: @LIBS@
+Cflags: -I${includedir}/openflow