From 6c4b989c187c46c1d14ae0beb598046c055e747c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 3 Dec 2012 17:05:08 +0100 Subject: Add crystfel.pc file for pkg-config --- .gitignore | 1 + configure.ac | 1 + libcrystfel/Makefile.am | 3 +++ libcrystfel/crystfel.pc.in | 10 ++++++++++ 4 files changed, 15 insertions(+) create mode 100644 libcrystfel/crystfel.pc.in diff --git a/.gitignore b/.gitignore index fe472b2d..b65dea30 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ build-aux/ltmain.sh lib/.libs/ lib/dummy.lo lib/libgnu.la +libcrystfel/crystfel.pc diff --git a/configure.ac b/configure.ac index 1a1bc848..a148942a 100644 --- a/configure.ac +++ b/configure.ac @@ -305,4 +305,5 @@ HTML_DIR=${docdir}/reference AC_CONFIG_FILES(Makefile lib/Makefile doc/reference/Makefile libcrystfel/Makefile) +AC_CONFIG_FILES(libcrystfel/crystfel.pc) AC_OUTPUT diff --git a/libcrystfel/Makefile.am b/libcrystfel/Makefile.am index 2a02a20b..4c857152 100644 --- a/libcrystfel/Makefile.am +++ b/libcrystfel/Makefile.am @@ -29,3 +29,6 @@ libcrystfel_la_include_HEADERS = src/beam-parameters.h src/hdf5-file.h \ INCLUDES = "-I$(top_srcdir)/data" AM_CPPFLAGS = -DDATADIR=\""$(datadir)"\" -I$(top_builddir)/lib -Wall AM_CPPFLAGS += -I$(top_srcdir)/lib @LIBCRYSTFEL_CFLAGS@ + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = crystfel.pc diff --git a/libcrystfel/crystfel.pc.in b/libcrystfel/crystfel.pc.in new file mode 100644 index 00000000..bb7ba2c3 --- /dev/null +++ b/libcrystfel/crystfel.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: CrystFEL +Description: Useful routines for crystallography using a free-electron laser +Version: @VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lcrystfel -- cgit v1.2.3