From af240db72b5f4aea98d6ff648021bedace144167 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 10 Jun 2008 22:02:10 -0500 Subject: [PATCH] Add libratbox.pc.in for out-of-tree libratbox build (think: packaging). --- libratbox/Makefile.am | 3 +++ libratbox/configure.ac | 10 +++++----- libratbox/libratbox.pc.in | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 libratbox/libratbox.pc.in diff --git a/libratbox/Makefile.am b/libratbox/Makefile.am index 15ea2b31..059cd80c 100644 --- a/libratbox/Makefile.am +++ b/libratbox/Makefile.am @@ -1,3 +1,6 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = src + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libratbox.pc diff --git a/libratbox/configure.ac b/libratbox/configure.ac index fe642856..45f6940f 100644 --- a/libratbox/configure.ac +++ b/libratbox/configure.ac @@ -675,11 +675,11 @@ fi ) - -AC_CONFIG_FILES( \ - src/Makefile \ - Makefile \ -) +AC_CONFIG_FILES([ + src/Makefile + Makefile + libratbox.pc +]) AC_OUTPUT diff --git a/libratbox/libratbox.pc.in b/libratbox/libratbox.pc.in new file mode 100644 index 00000000..16c4aacd --- /dev/null +++ b/libratbox/libratbox.pc.in @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +datarootdir=@datarootdir@ +data_dir=@datadir@/@PACKAGE_NAME@ + +version=@PACKAGE_VERSION@ +include_dir=@includedir@/libratbox +lib_dir=@libdir@ + +Name: libratbox +Description: Portable runtime for ircd-ratbox and other things +Version: @PACKAGE_VERSION@ +Libs: -L${lib_dir} -lratbox +Cflags: -I${include_dir}