src: Adding pkgconfig script, so apps can use pkg-config to get all necesasry parameters to compile against the library

Change-Id: Ie19fc258c2602a3f0685c247e328e9d3166639dc
diff --git a/.gitignore b/.gitignore
index db21ec6..35c2f84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -81,3 +81,5 @@
 examples/consumer
 examples/producer
 
+# pkg-config file
+libndn-cpp-dev.pc
diff --git a/Makefile.am b/Makefile.am
index 5f69d3b..60188c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -134,3 +134,6 @@
 libndn_cpp_dev_la_CFLAGS  = @OPENSSL_INCLUDES@ @CRYPTOPP_INCLUDES@ @SQLITE3_CFLAGS@     @BOOST_CPPFLAGS@
 
 dist_noinst_SCRIPTS = autogen.sh
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libndn-cpp-dev.pc
diff --git a/configure.ac b/configure.ac
index 695e7db..6647cdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,5 +161,6 @@
                  examples/Makefile
                  tools/Makefile
                  tests/Makefile
-                 tests_boost/Makefile])
+                 tests_boost/Makefile
+                 libndn-cpp-dev.pc])
 AC_OUTPUT
diff --git a/libndn-cpp-dev.pc.in b/libndn-cpp-dev.pc.in
new file mode 100644
index 0000000..b862024
--- /dev/null
+++ b/libndn-cpp-dev.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libndn-cpp-dev
+Description: Development version of C++ API for NDN (NDN-TLV packet format)
+Version: @VERSION@
+Libs: -L${libdir} @OPENSSL_LDFLAGS@ @CRYPTOPP_LDFLAGS@ @SQLITE3_LDFLAGS@ @BOOST_LDFLAGS@ -lndn-cpp-dev @OPENSSL_LIBS@ @CRYPTOPP_LIBS@ @OSX_SECURITY_LIBS@ @BOOST_SYSTEM_LIB@
+Cflags: -I${includedir} @OPENSSL_INCLUDES@ @CRYPTOPP_INCLUDES@ @SQLITE3_CFLAGS@ @BOOST_CPPFLAGS@