fix(main/notcurses): remove target_link_directories(notcurses-static...

- Progress on https://github.com/termux/termux-packages/issues/23492

- Works around error `Found relative path while evaluating link directories of "notcurses-static": "lib"`
This commit is contained in:
termux-pacman-bot
2026-01-03 07:37:23 +00:00
parent 99a1dfe857
commit 1976a707db
2 changed files with 21 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
removing target_link_directories(notcurses-static...
avoids error:
Found relative path while evaluating link directories of "notcurses-static": "lib"
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,7 @@
@@ -32,7 +36,22 @@
target_compile_definitions(notcurses-core
PUBLIC
_XOPEN_SOURCE=700 # wcwidth(3) requires _XOPEN_SOURCE, and is in our headers
@@ -417,7 +417,7 @@
@@ -411,14 +411,6 @@ target_link_directories(notcurses
"${SWSCALE_LIBRARY_DIRS}"
"${AVUTIL_LIBRARY_DIRS}"
)
-target_link_directories(notcurses-static
- PRIVATE
- "${AVCODEC_STATIC_LIBRARY_DIRS}"
- "${AVDEVICE_STATIC_LIBRARY_DIRS}"
- "${AVFORMAT_STATIC_LIBRARY_DIRS}"
- "${SWSCALE_STATIC_LIBRARY_DIRS}"
- "${AVUTIL_STATIC_LIBRARY_DIRS}"
-)
elseif(${USE_OIIO})
target_include_directories(notcurses PUBLIC "${OIIO_INCLUDE_DIRS}")
target_include_directories(notcurses-static PUBLIC "${OIIO_STATIC_INCLUDE_DIRS}")
@@ -436,7 +428,7 @@ add_library(notcurses-ffi SHARED ${NCFFISRCS})
target_compile_options(notcurses-ffi PUBLIC -fkeep-inline-functions)
target_compile_definitions(notcurses-ffi PUBLIC NOTCURSES_FFI)
# don't want these on freebsd/dragonfly/osx

View File

@@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="blingful TUIs and character graphics"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.0.17"
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/dankamongmen/notcurses/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b0fbe824984fe25b5a16770dbd00b85d44db5d09cc35bd881b95335d0db53128
TERMUX_PKG_AUTO_UPDATE=true