diff --git a/Makefile.am b/Makefile.am index de8d7a9..5425b4a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,4 +13,5 @@ README.md LICENSE autogen docs SUBDIRS = \ src \ -tests +tests \ +pkgconfig diff --git a/configure.ac b/configure.ac index 032ea1d..b72cbb6 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,8 @@ AC_PREREQ([2.60]) AC_INIT([sdsdkv], [0.1-alpha], [samuel@lanl.gov], - [sdsdkv]) + [sdsdkv], + [https://xgitlab.cels.anl.gov/sds/sdsdkv]) #dnl TODO(skg) add project URL. AC_CONFIG_MACRO_DIR([config]) @@ -114,6 +115,8 @@ AC_CONFIG_FILES([ Makefile src/Makefile tests/Makefile + pkgconfig/Makefile + pkgconfig/sdsdkv.pc ]) AC_OUTPUT diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am new file mode 100644 index 0000000..1d5b015 --- /dev/null +++ b/pkgconfig/Makefile.am @@ -0,0 +1,13 @@ +# +# Copyright (c) 2018 Los Alamos National Security, LLC +# All rights reserved. +# +# This file is part of the sdsdkv project. See the LICENSE file at the +# top-level directory of this distribution. +# + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = sdsdkv.pc + +# These are generated. +MOSTLYCLEANFILES = $(pkgconfig_DATA) diff --git a/pkgconfig/sdsdkv.pc.in b/pkgconfig/sdsdkv.pc.in new file mode 100644 index 0000000..83901d8 --- /dev/null +++ b/pkgconfig/sdsdkv.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE_NAME@ +Description: A distributed key-value service build from other Mochi services. +Version: @PACKAGE_VERSION@ +URL: @PACKAGE_URL@ +Requires: sdskeyval ch-placement ssg +Libs: -L${libdir} -lsdsdkv +Libs.private: @SSG_LIBS@ @CH_PLACEMENT_LIBS@ @SDSKV_CLIENT_LIBS@ @SDSKV_SERVER_LIBS@ +Cflags: -I${includedir}