From 7d4fb66fb85031486c0f8b38d48068036e2dc922 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 27 Feb 2011 11:39:09 -0500 Subject: [PATCH] Add pkg-config specification for CK. --- Makefile.in | 6 ++++++ build/ck.pc.in | 10 ++++++++++ configure | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 build/ck.pc.in diff --git a/Makefile.in b/Makefile.in index 1e06b85..b93413a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -4,6 +4,7 @@ CFLAGS=@CFLAGS@ PREFIX=@PREFIX@ LIBRARY=@LIBRARY@ HEADERS=@HEADERS@ +PKGCONFIG_DATA=@LIBRARY@/pkgconfig all: make -C src all || exit @@ -26,12 +27,16 @@ install: all cp -r include/gcc/* $(HEADERS)/gcc || exit chmod 755 $(HEADERS)/gcc chmod 644 $(HEADERS)/gcc/ck_*.h $(HEADERS)/gcc/*/ck_*.h || exit + mkdir -p $(PKGCONFIG_DATA) || exit + chmod 755 $(PKGCONFIG_DATA) + cp build/ck.pc $(PKGCONFIG_DATA)/ck.pc || exit uninstall: rm -f $(LIBRARY)/libck* rm -f $(HEADERS)/ck_*.h rm -f $(HEADERS)/gcc/ck_*.h rm -f $(HEADERS)/gcc/*/ck_*.h + rm -f $(PKGCONFIG_DATA)/ck.pc clean: make -C src clean @@ -41,4 +46,5 @@ clean: distribution: clean rm -f build/ck.build rm -f build/regressions.build + rm -f build/ck.pc rm -f Makefile diff --git a/build/ck.pc.in b/build/ck.pc.in new file mode 100644 index 0000000..e60c473 --- /dev/null +++ b/build/ck.pc.in @@ -0,0 +1,10 @@ +prefix=@PREFIX@ +includedir=@HEADERS@ +libdir=@LIBRARY@ + +Name: Concurrency Kit +Description: Toolkit for well-specified design and implementation of concurrent systems +URL: http://www.concurrencykit.org/ +Version: 0.1.0 +Libs: -L${libdir} -lck +Cflags: -D__@PROFILE@__ -I${includedir} diff --git a/configure b/configure index d8b6fdf..90d67db 100755 --- a/configure +++ b/configure @@ -158,6 +158,7 @@ if test "$PROFILE"; then printf "Generating build files..........." generate build/ck.build.in build/ck.build generate build/regressions.build.in build/regressions.build + generate build/ck.pc.in build/ck.pc generate Makefile.in Makefile echo "success" generate_stdout @@ -335,6 +336,7 @@ printf "Generating build files..........." generate build/ck.build.in build/ck.build generate build/regressions.build.in build/regressions.build +generate build/ck.pc.in build/ck.pc generate Makefile.in Makefile echo "success"