e00faaf4e4
From ChangeLog (https://github.com/nonstop/termit/releases/tag/termit-3.1): * completely switched to Lua 5.3 * disabled annoying menubar on F10 * added new options: scrollOnKeystroke, scrollOnOutput * refactored several deprecated GTK functions * fixed several bugs * replaced appdata with modern metainfo PR: 244336 Submitted by: bob@eager.cx (maintainer)
45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
--- src/CMakeLists.txt.orig 2020-02-17 06:02:21 UTC
|
|
+++ src/CMakeLists.txt
|
|
@@ -27,11 +27,11 @@ ENDIF(NOT VTE_FOUND)
|
|
|
|
SET(LUA_VERSION "" CACHE STRING "Lua version")
|
|
IF(LUA_VERSION STREQUAL "")
|
|
- IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
- pkg_search_module(LUA REQUIRED lua53)
|
|
- ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
+ pkg_search_module(LUA REQUIRED lua>=5.3 lua-5.3)
|
|
+ ELSE(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
pkg_search_module(LUA REQUIRED lua>=5.3 lua5.3)
|
|
- ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
ELSE(LUA_VERSION STREQUAL "")
|
|
pkg_search_module(LUA REQUIRED
|
|
lua=${LUA_VERSION} lua5.3=${LUA_VERSION})
|
|
@@ -43,9 +43,9 @@ ENDIF(NOT LUA_FOUND)
|
|
INCLUDE(Sources.cmake)
|
|
|
|
SET(TERMIT_CFLAGS "-I${LUA_INCLUDE_DIR}")
|
|
-IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
SET(TERMIT_CFLAGS "${TERMIT_CFLAGS} -I/usr/local/include")
|
|
-ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
FOREACH(cflag ${VTE_CFLAGS} ${GTK_CFLAGS} ${LUA_CFLAGS})
|
|
SET(TERMIT_CFLAGS "${TERMIT_CFLAGS} ${cflag}")
|
|
ENDFOREACH(cflag)
|
|
@@ -64,11 +64,11 @@ SET_SOURCE_FILES_PROPERTIES(${TERMIT_SRCS} PROPERTIES
|
|
|
|
ADD_EXECUTABLE(${TARGET} ${TERMIT_SRCS})
|
|
|
|
-IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
SET(TERMIT_LDFLAGS"-llua5.3")
|
|
-ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+ELSE(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
SET(TERMIT_LDFLAGS "-ldl -lm")
|
|
-ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
|
+ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
FOREACH(ldflag ${VTE_LDFLAGS} ${LUA_LDFLAGS})
|
|
LIST(APPEND TERMIT_LDFLAGS "${ldflag}")
|
|
ENDFOREACH(ldflag)
|