libsctp: add pkg-config support
Subsystems (2)
PATCH v2 1/1 libsctp: add pkg-config support
From: Yegor Yefremov <[email protected]>
pkg-config is a helper tool used when compiling applications and libraries. This patch adds automatic generation and installation of libsctp.pc file, that provides libsctp's version, compiler and linker information.
Signed-off-by Yegor Yefremov <[email protected]>
---
Changes:
v2: add libsctp.pc to DISTCLEANFILES (Marcelo Ricardo Leitner)
Makefile.am | 5 +++++ configure.ac | 3 ++- libsctp.pc.in | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 libsctp.pc.in
Makefile.am +5 -0
@@ -9,6 +9,11 @@ EXTRA_DIST += ChangeLog AUTHORS COPYING COPYING.lib INSTALL \ README ROADMAP NEWS \ Makefile.vars Makefile.rules Makefile.dirs +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libsctp.pc +EXTRA_DIST += libsctp.pc.in +DISTCLEANFILES += libsctp.pc + # bin or src products may be required to generate stuff in test/ SUBDIRS = man bin src doc
configure.ac +2 -1
@@ -72,5 +72,6 @@ AC_CONFIG_FILES([lksctp-tools.spec src/lib/Makefile src/testlib/Makefile src/withsctp/Makefile - doc/Makefile]) + doc/Makefile + libsctp.pc]) AC_OUTPUT
libsctp.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: sctp +Description: User-level SCTP API library +Version: @VERSION@ +Libs: -L${libdir} -lsctp +Cflags: -I${includedir}
Signature · 1 line
2.7.0
Hi,
Quoted 7 lines · On Thu, Mar 03, 2016 at 12:07:51PM +0100, [email protected] wrote:
From: Yegor Yefremov <[email protected]>
pkg-config is a helper tool used when compiling applications and libraries. This patch adds automatic generation and installation of libsctp.pc file, that provides libsctp's version, compiler and linker information.
Signed-off-by Yegor Yefremov <[email protected]>
Applied, thanks Yegor!
Quoted 62 lines
---
Changes:
v2: add libsctp.pc to DISTCLEANFILES (Marcelo Ricardo Leitner)Makefile.am | 5 +++++ configure.ac | 3 ++- libsctp.pc.in | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 libsctp.pc.inMakefile.am +5
-0@@ -9,6 +9,11 @@ EXTRA_DIST += ChangeLog AUTHORS COPYING COPYING.lib INSTALL \ README ROADMAP NEWS \ Makefile.vars Makefile.rules Makefile.dirs +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libsctp.pc +EXTRA_DIST += libsctp.pc.in +DISTCLEANFILES += libsctp.pc + # bin or src products may be required to generate stuff in test/ SUBDIRS = man bin src docconfigure.ac +2
-1@@ -72,5 +72,6 @@ AC_CONFIG_FILES([lksctp-tools.spec src/lib/Makefile src/testlib/Makefile src/withsctp/Makefile - doc/Makefile]) + doc/Makefile + libsctp.pc]) AC_OUTPUTlibsctp.pc.in new file +10
-0@@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: sctp +Description: User-level SCTP API library +Version: @VERSION@ +Libs: -L${libdir} -lsctp +Cflags: -I${includedir}Signature · 6 lines
2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html