diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2018-08-30 11:29:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 11:29:12 +0200 |
commit | 0c3989b40f48fda7d3e0e92c97a16c2d2cf1889a (patch) | |
tree | 4ebb0d3fe8a9e010e345f7bca347006fc69b1c9f | |
parent | 4a2525241f4c395811f21c540934c55be8b75539 (diff) | |
parent | d31a29bf6a0c8efa11203badff3afe9f3b19ce08 (diff) |
Merge pull request #596 from madpilot78/Add_back_pkgconfig_file
Add back pkgconfig file. It is required by ntopng to find the install…
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.seed | 2 | ||||
-rw-r--r-- | libndpi.pc.in | 10 |
3 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 0642aec9d..37f084916 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,7 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src/lib example tests + +pkgconfigdir = $(prefix)/libdata/pkgconfig +pkgconfig_DATA = libndpi.pc + EXTRA_DIST = autogen.sh diff --git a/configure.seed b/configure.seed index bce16c7c4..3863cda51 100644 --- a/configure.seed +++ b/configure.seed @@ -133,7 +133,7 @@ AC_ARG_ENABLE([debug-messages], AC_CHECK_LIB(pthread, pthread_setaffinity_np, AC_DEFINE_UNQUOTED(HAVE_PTHREAD_SETAFFINITY_NP, 1, [libc has pthread_setaffinity_np])) -AC_CONFIG_FILES([Makefile example/Makefile tests/Makefile src/include/ndpi_define.h src/lib/Makefile]) +AC_CONFIG_FILES([Makefile example/Makefile tests/Makefile libndpi.pc src/include/ndpi_define.h src/lib/Makefile]) AC_CONFIG_HEADERS(src/include/ndpi_config.h) AC_SUBST(GIT_RELEASE) AC_SUBST(NDPI_MAJOR) diff --git a/libndpi.pc.in b/libndpi.pc.in new file mode 100644 index 000000000..5e1cde70b --- /dev/null +++ b/libndpi.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libndpi +Description: deep packet inspection library +Version: @VERSION@ +Libs: -L${libdir} -lndpi +Cflags: -I${includedir}/ndpi |