aboutsummaryrefslogtreecommitdiff
path: root/pkg-config
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-07-19 22:50:04 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-30 08:25:19 -0800
commita8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f (patch)
treecfded8a49cfc5b7e52ab2615d24a74c5fa7b479e /pkg-config
parent9cb3984eb0e0829d4f05b6116f6ae572bc44d21b (diff)
downloadpaludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.gz
paludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.xz
build: introduce cmake based build system
Diffstat (limited to 'pkg-config')
-rw-r--r--pkg-config/CMakeLists.txt14
-rw-r--r--pkg-config/paludis.pc.cmake11
2 files changed, 25 insertions, 0 deletions
diff --git a/pkg-config/CMakeLists.txt b/pkg-config/CMakeLists.txt
new file mode 100644
index 000000000..abd0cf777
--- /dev/null
+++ b/pkg-config/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+set(PALUDIS_PKG_CONFIG_CFLAGS)
+set(PALUDIS_PKG_CONFIG_LIBS
+ "-lpaludis_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisutil_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisargs_${PALUDIS_PKG_CONFIG_SLOT} ${CMAKE_THREAD_LIBS_INIT}")
+
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/paludis.pc.cmake"
+ "${CMAKE_CURRENT_BINARY_DIR}/paludis.pc"
+ @ONLY)
+
+install(FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/paludis.pc"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
+
diff --git a/pkg-config/paludis.pc.cmake b/pkg-config/paludis.pc.cmake
new file mode 100644
index 000000000..c0af433d0
--- /dev/null
+++ b/pkg-config/paludis.pc.cmake
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+
+Name: Paludis
+Description: The Other Package Mangler
+Version: @PALUDIS_PC_SLOT@
+Libs: -L${libdir} @PALUDIS_PKG_CONFIG_LIBS@
+Cflags: -I${includedir} @PALUDIS_PKG_CONFIG_CFLAGS@
+