Adopt some patches from OpenBSD port
authorunc0rr
Fri, 03 Feb 2017 23:04:50 +0300
changeset 12129 ffc7bb9fde01
parent 12128 4027903ff3e7
child 12130 858bf4d04c54
Adopt some patches from OpenBSD port
hedgewars/SDLh.pas
hedgewars/avwrapper/CMakeLists.txt
misc/libphyslayer/CMakeLists.txt
--- a/hedgewars/SDLh.pas	Mon Jan 30 11:35:09 2017 -0500
+++ b/hedgewars/SDLh.pas	Fri Feb 03 23:04:50 2017 +0300
@@ -27,6 +27,9 @@
 {$IFDEF FREEBSD}
     {$DEFINE UNIX}
 {$ENDIF}
+{$IFDEF OPENBSD}
+    {$DEFINE UNIX}
+{$ENDIF}
 {$IFDEF DARWIN}
     {$DEFINE UNIX}
 {$ENDIF}
--- a/hedgewars/avwrapper/CMakeLists.txt	Mon Jan 30 11:35:09 2017 -0500
+++ b/hedgewars/avwrapper/CMakeLists.txt	Fri Feb 03 23:04:50 2017 +0300
@@ -3,7 +3,9 @@
 include_directories(${LIBAV_INCLUDE_DIR})
 
 add_library(avwrapper avwrapper.c)
-#TODO: find good VERSION and SOVERSION values
+set_target_properties(avwrapper PROPERTIES
+                          VERSION 1.0
+                          SOVERSION 1.0)
 target_link_libraries(avwrapper ${LIBAV_LIBRARIES})
 install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
                           LIBRARY DESTINATION ${target_library_install_dir}
--- a/misc/libphyslayer/CMakeLists.txt	Mon Jan 30 11:35:09 2017 -0500
+++ b/misc/libphyslayer/CMakeLists.txt	Fri Feb 03 23:04:50 2017 +0300
@@ -14,7 +14,9 @@
 
 #compiles and links actual library
 add_library (physlayer ${PHYSLAYER_SRCS})
-#TODO: find good VERSION and SOVERSION values
+set_target_properties(physlayer PROPERTIES
+                          VERSION 1.0
+                          SOVERSION 1.0)
 target_link_libraries(physlayer ${SDL2_LIBRARY} lua physfs)
 install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir}
                           LIBRARY DESTINATION ${target_library_install_dir}