Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37854464
en ru br
ALT Linux repos
S:1.1.3-alt1.1

Group :: System/Libraries
RPM: librply

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rply-1.01-cmake_build.patch
Download


diff -durN rply-1.01.orig/CMake/export/CMakeLists.txt rply-1.01/CMake/export/CMakeLists.txt
--- rply-1.01.orig/CMake/export/CMakeLists.txt	1970-01-01 03:00:00.000000000 +0300
+++ rply-1.01/CMake/export/CMakeLists.txt	2011-09-05 19:53:56.000000000 +0400
@@ -0,0 +1,26 @@
+# This CMakeLists.txt file handles the creation of files needed by
+# other client projects that use RPLY.  Nothing is built by this
+# CMakeLists.txt file.  This CMakeLists.txt file must be processed by
+# CMake after all the other CMakeLists.txt files in the RPLY tree,
+# which is why the SUBDIRS(CMake/export) command is at the end
+# of the top level CMakeLists.txt file.
+
+# Save the compiler settings so another project can import them.
+INCLUDE(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake)
+SET(RPLY_BUILD_SETTINGS_FILE ${rply_BINARY_DIR}/RPLYBuildSettings.cmake)
+SET(RPLY_EXPORT_BUILD_SETTINGS_FILE 
+  ${CMAKE_INSTALL_PREFIX}/share/rply/cmake/RPLYBuildSettings.cmake
+)
+CMAKE_EXPORT_BUILD_SETTINGS(${RPLY_BUILD_SETTINGS_FILE})
+
+# Create the VXLConfig.cmake file for the build tree.
+CONFIGURE_FILE(${RPLY_CMAKE_DIR}Modules/RPLYConfig.cmake.in
+               ${CMAKE_BINARY_DIR}/rplyConfig.cmake @ONLY IMMEDIATE)
+
+INSTALL_FILES(/share/rply FILES 
+  ${CMAKE_BINARY_DIR}/rplyConfig.cmake
+#  ${RPLY_BINARY_DIR}/RPLYBuildSettings.cmake
+#  ${RPLY_BINARY_DIR}/RPLYLibraryDepends.cmake
+#  ${RPLY_CMAKE_DIR}/RPLYStandardOptions.cmake
+#  ${RPLY_CMAKE_DIR}/UseRPLY.cmake
+)
diff -durN rply-1.01.orig/CMake/Modules/RPLYConfig.cmake.in rply-1.01/CMake/Modules/RPLYConfig.cmake.in
--- rply-1.01.orig/CMake/Modules/RPLYConfig.cmake.in	1970-01-01 03:00:00.000000000 +0300
+++ rply-1.01/CMake/Modules/RPLYConfig.cmake.in	2011-09-05 19:53:56.000000000 +0400
@@ -0,0 +1,4 @@
+# The RPLY library directory.
+SET(RPLY_LIBRARY_DIR "@LIB_INSTALL_DIR@")
+SET(RPLY_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@")
+SET(RPLY_LIBRARY "@RPLY_LIBRARY@")
diff -durN rply-1.01.orig/CMakeLists.txt rply-1.01/CMakeLists.txt
--- rply-1.01.orig/CMakeLists.txt	1970-01-01 03:00:00.000000000 +0300
+++ rply-1.01/CMakeLists.txt	2011-09-05 19:53:56.000000000 +0400
@@ -0,0 +1,34 @@
+PROJECT(rply)
+cmake_minimum_required(VERSION 2.6)
+
+SET(RPLY_LIB_MAJOR_VERSION 1)
+SET(RPLY_LIB_MINOR_VERSION 01)
+
+SET(RPLY_CMAKE_DIR ${CMAKE_SOURCE_DIR}/CMake/ )
+SET(RPLY_LIBRARY librply.so )
+
+add_library(rply SHARED rply.c )
+set_target_properties( rply PROPERTIES
+                              VERSION ${RPLY_LIB_MAJOR_VERSION}.${RPLY_LIB_MINOR_VERSION}
+                              SOVERSION ${RPLY_LIB_MAJOR_VERSION}
+                              ) 
+
+include_directories( ${CMAKE_SOURCE_DIR} )
+add_executable(rply_convert etc/convert.c )
+add_executable(rply_dump etc/dump.c )
+add_executable(rply_sconvert etc/sconvert.c )
+target_link_libraries (rply_convert rply)
+target_link_libraries (rply_dump rply)
+target_link_libraries (rply_sconvert rply)
+
+# Installs the header files
+install(FILES rply.h DESTINATION include/rply)
+
+# Installs the target file
+install(TARGETS rply LIBRARY DESTINATION lib${LIB_SUFFIX})
+install(TARGETS rply_convert RUNTIME DESTINATION bin)
+install(TARGETS rply_dump RUNTIME DESTINATION bin)
+install(TARGETS rply_sconvert RUNTIME DESTINATION bin)
+
+#This should be the last line of the project
+SUBDIRS( CMake/export )
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin