From 8be9990cdb1ce35e1138c9ed477ecfd93ca7f184 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 18 Sep 2014 12:00:40 +0200 Subject: [PATCH] Install some pkgconfig files --- .gitignore | 1 + src/libexpr/local.mk | 2 ++ src/libexpr/nix-expr.pc.in | 10 ++++++++++ src/libmain/local.mk | 2 ++ src/libmain/nix-main.pc.in | 9 +++++++++ src/libstore/local.mk | 2 ++ src/libstore/nix-store.pc.in | 9 +++++++++ 7 files changed, 35 insertions(+) create mode 100644 src/libexpr/nix-expr.pc.in create mode 100644 src/libmain/nix-main.pc.in create mode 100644 src/libstore/nix-store.pc.in diff --git a/.gitignore b/.gitignore index c8a65ad6f..e420fbf01 100644 --- a/.gitignore +++ b/.gitignore @@ -114,6 +114,7 @@ Makefile.config *.so *.dep *~ +*.pc # GNU Global GPATH diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index 620a03538..6bb151167 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -26,3 +26,5 @@ $(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh dist-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh + +$(eval $(call install-file-in, $(d)/nix-expr.pc, $(libdir)/pkgconfig, 0644)) diff --git a/src/libexpr/nix-expr.pc.in b/src/libexpr/nix-expr.pc.in new file mode 100644 index 000000000..21b6c38dd --- /dev/null +++ b/src/libexpr/nix-expr.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Nix +Description: Nix Package Manager +Version: @PACKAGE_VERSION@ +Requires: nix-store bdw-gc +Libs: -L${libdir} -lnixexpr +Cflags: -I${includedir}/nix diff --git a/src/libmain/local.mk b/src/libmain/local.mk index 71a07d197..4b6a4767e 100644 --- a/src/libmain/local.mk +++ b/src/libmain/local.mk @@ -9,3 +9,5 @@ libmain_SOURCES := $(wildcard $(d)/*.cc) libmain_LIBS = libstore libutil libformat libmain_ALLOW_UNDEFINED = 1 + +$(eval $(call install-file-in, $(d)/nix-main.pc, $(libdir)/pkgconfig, 0644)) diff --git a/src/libmain/nix-main.pc.in b/src/libmain/nix-main.pc.in new file mode 100644 index 000000000..de1bdf706 --- /dev/null +++ b/src/libmain/nix-main.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Nix +Description: Nix Package Manager +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lnixmain +Cflags: -I${includedir}/nix diff --git a/src/libstore/local.mk b/src/libstore/local.mk index 180088d3d..024d7dec7 100644 --- a/src/libstore/local.mk +++ b/src/libstore/local.mk @@ -30,3 +30,5 @@ $(d)/local-store.cc: $(d)/schema.sql.hh $(trace-gen) sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1) clean-files += $(d)/schema.sql.hh + +$(eval $(call install-file-in, $(d)/nix-store.pc, $(libdir)/pkgconfig, 0644)) diff --git a/src/libstore/nix-store.pc.in b/src/libstore/nix-store.pc.in new file mode 100644 index 000000000..3f1a2d83d --- /dev/null +++ b/src/libstore/nix-store.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Nix +Description: Nix Package Manager +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lnixstore -lnixutil -lnixformat +Cflags: -I${includedir}/nix