aboutsummaryrefslogtreecommitdiffstats
path: root/devel/openfec/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/openfec/files')
-rw-r--r--devel/openfec/files/COPYRIGHT-LDPC15
-rw-r--r--devel/openfec/files/patch-CMakeLists.txt55
2 files changed, 70 insertions, 0 deletions
diff --git a/devel/openfec/files/COPYRIGHT-LDPC b/devel/openfec/files/COPYRIGHT-LDPC
new file mode 100644
index 000000000000..9cd0d7f65b4f
--- /dev/null
+++ b/devel/openfec/files/COPYRIGHT-LDPC
@@ -0,0 +1,15 @@
+Except as otherwise specified, all program code and documentation in this
+directory is copyright (c) 1995-2012 by Radford M. Neal.
+
+Permission is granted for anyone to copy, use, modify, and distribute
+these programs and accompanying documents for any purpose, provided
+this copyright notice is retained and prominently displayed, and note
+is made of any changes made to these programs. These programs and
+documents are distributed without any warranty, express or implied.
+As the programs were written for research purposes only, they have not
+been tested to the degree that would be advisable in any important
+application. All use of these programs is entirely at the user's own
+risk.
+
+Some routines in the module rand.c are taken from the GNU C Library,
+and are copyrighted as described there and in the file LGPL.
diff --git a/devel/openfec/files/patch-CMakeLists.txt b/devel/openfec/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..24b34a9fb74c
--- /dev/null
+++ b/devel/openfec/files/patch-CMakeLists.txt
@@ -0,0 +1,55 @@
+--- CMakeLists.txt.orig 2025-11-10 21:36:14 UTC
++++ CMakeLists.txt
+@@ -23,33 +23,33 @@ ENABLE_TESTING()
+
+ ENABLE_TESTING()
+
+-if (PROFILING STREQUAL "ON")
++#if (PROFILING STREQUAL "ON")
+
+-else(PROFILING STREQUAL "ON")
++#else(PROFILING STREQUAL "ON")
+
+-endif(PROFILING STREQUAL "ON")
++#endif(PROFILING STREQUAL "ON")
+
+-if (DEBUG STREQUAL "ON")
++#if (DEBUG STREQUAL "ON")
+ # Debug mode
+-ADD_DEFINITIONS(-DOF_DEBUG)
+-set(CMAKE_BUILD_TYPE Debug)
+-message(STATUS "Debug mode ON" )
++#ADD_DEFINITIONS(-DOF_DEBUG)
++#set(CMAKE_BUILD_TYPE Debug)
++#message(STATUS "Debug mode ON" )
+
+-else(DEBUG STREQUAL "ON")
++#else(DEBUG STREQUAL "ON")
+ # Release mode
+-set(CMAKE_BUILD_TYPE Release)
+-set(OPTIMIZE "3" CACHE STRING "Set optimization level (0-3 or DEFAULT)")
+-if (NOT OPTIMIZE STREQUAL "DEFAULT")
+- string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
+- string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O${OPTIMIZE}")
+-endif()
+-message(STATUS "Debug mode OFF")
+-message(STATUS "Optimization level ${OPTIMIZE}")
++#set(CMAKE_BUILD_TYPE Release)
++#set(OPTIMIZE "3" CACHE STRING "Set optimization level (0-3 or DEFAULT)")
++#if (NOT OPTIMIZE STREQUAL "DEFAULT")
++# string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
++# string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
++# set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O${OPTIMIZE}")
++#endif()
++#message(STATUS "Debug mode OFF")
++#message(STATUS "Optimization level ${OPTIMIZE}")
+
+-endif (DEBUG STREQUAL "ON")
++#endif (DEBUG STREQUAL "ON")
+
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wno-unused-result")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
+
+ set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/${CMAKE_BUILD_TYPE}
+ CACHE STRING "output path for libraries")