aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-12-03 17:05:08 +0100
committerThomas White <taw@physics.org>2012-12-03 17:12:40 +0100
commit6c4b989c187c46c1d14ae0beb598046c055e747c (patch)
tree364d72fa146954b7be4e55e8cc2f5eb2756fef81
parent44a5179f3e353627061f58c1cad717d383254843 (diff)
Add crystfel.pc file for pkg-config
-rw-r--r--.gitignore1
-rw-r--r--configure.ac1
-rw-r--r--libcrystfel/Makefile.am3
-rw-r--r--libcrystfel/crystfel.pc.in10
4 files changed, 15 insertions, 0 deletions
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