From e56b2dce7e89a92e1b9b35caa13b3e938c4cedea Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Sun, 26 Jan 2020 01:27:08 -0800 Subject: [PATCH] CMakeLists.txt: output date.pc for pkg-config --- CMakeLists.txt | 15 +++++++++++++++ date.pc.in | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 date.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index f30c473..fe778e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,6 +128,15 @@ if( BUILD_TZ_LIB ) endif( ) endif( ) +if ( BUILD_TZ_LIB ) + # Cflags: -I${includedir} @TZ_COMPILE_DEFINITIONS@ + set( TZ_COMPILE_DEFINITIONS "$,-D$, -D>,>" ) + configure_file(date.pc.in date.pc.cf @ONLY) + file( GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc" + INPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc.cf" ) + +endif( ) + #[===================================================================[ installation #]===================================================================] @@ -171,6 +180,12 @@ install ( FILES cmake/dateConfig.cmake "${version_config}" DESTINATION ${CONFIG_LOC}) +if ( BUILD_TZ_LIB ) + install( + FILES ${CMAKE_BINARY_DIR}/date.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif( ) + #[===================================================================[ testing #]===================================================================] diff --git a/date.pc.in b/date.pc.in new file mode 100644 index 0000000..b9c4623 --- /dev/null +++ b/date.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_BINDIR@ +libdir=@CMAKE_INSTALL_LIB@ +includedir=@CMAKE_INSTALL_INCLUDE@ + +Name: date +Description: A date and time library based on the C++11/14/17 header +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -ltz +Cflags: -I${includedir} @TZ_COMPILE_DEFINITIONS@ ?id=8a28ba76126cbbd2a6d61e864f576e7a7bd7a763'>root/.mailmap
AgeCommit message (Expand)Author
2024-08-05Change email of Evgeny Pisemsky....* .mailmap: Add entry to Evgeny Pisemsky. * gnu/packages/emacs-xyz.scm, gnu/packages/engineering.scm, gnu/packages/guile-xyz.scm, gnu/packages/hardware.scm, gnu/packages/perl.scm, gnu/packages/python-xyz.scm, gnu/packages/sdl.scm, gnu/packages/web.scm: Adjust copyright line. Change-Id: I9a10be1ee7cc164f18d826b51348ee26eee2ca4b Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Evgeny Pisemsky
2024-01-07Update mailmap....* .mailmap: Add entry for Tomas Volf. Change-Id: I0a8b43b3b7f71c3020f96118adcbad8937a290fb Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Tomas Volf
2023-08-16Update email addresses for Juliana Sims....* .mailmap: Add an entry for Juliana. * gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/build-tools.scm, gnu/packages/scheme.scm: Update Juliana's email. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims
2022-01-11Update mailmap....* .mailmap: Add entry for Zheng Junjie. Leo Famulari
2021-11-06Update mailmap and copyright assignments for Liliana Marie Prikler....Use full names everywhere. * .mailmap: Use full name for Liliana Marie Prikler. * gnu/packages/zig.scm: Likewise. Liliana Marie Prikler
2021-09-06Update mailmap....* .mailmap: Add entry for Liliana Marie Prikler. Liliana Marie Prikler
2021-09-04Update mailmap....* .mailmap: Alias all my contributions to the same identity. Marius Bakke
2021-07-27Update mailmap....* .mailmap: Add entry for Christine Lemmer-Webber. Leo Famulari
2021-07-08mailmap: Update entries for Matthew James Kraai....* .mailmap: Change name for Matthew James Kraai. * gnu/packages/lisp-xyz.scm, gnu/packages/python-xyz.scm, gnu/packages/rust.scm: Likewise. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Matthew James Kraai
2021-06-23gnu: Add Sollya....* gnu/packages/algebra.scm (sollya): New variable. * .mailmap: Adjust "proper email" for `git commit`. Eric Bavier