dotfiles/ports/office/tasksh/files/patch-readline.diff
2019-02-12 10:15:47 -07:00

42 lines
1.1 KiB
Diff

--- cmake/Modules/FindReadline.cmake.orig 2015-12-07 11:04:57.000000000 +0100
+++ cmake/Modules/FindReadline.cmake 2015-12-07 11:05:32.000000000 +0100
@@ -11,11 +11,7 @@
# So we look for another one by default
IF (APPLE OR FREEBSD)
FIND_PATH (READLINE_INCLUDE_DIR NAMES readline/readline.h PATHS
- /usr/include/
- /sw/include
- /opt/local/include
- /opt/include
- /usr/local/include
+ @@PREFIX@@/include
NO_DEFAULT_PATH
)
ENDIF (APPLE OR FREEBSD)
@@ -26,11 +22,7 @@
# So we look for another one by default
IF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_readline_LIBRARY NAMES readline PATHS
- /usr/lib
- /sw/lib
- /opt/local/lib
- /opt/lib
- /usr/local/lib
+ @@PREFIX@@/lib
NO_DEFAULT_PATH
)
ENDIF (APPLE OR FREEBSD)
@@ -39,12 +31,7 @@
# Sometimes readline really needs ncurses
IF (APPLE OR FREEBSD)
FIND_LIBRARY (READLINE_ncurses_LIBRARY NAMES ncurses PATHS
- /usr/lib
- /sw/lib
- /opt/local/lib
- /opt/lib
- /usr/local/lib
- /usr/lib
+ @@PREFIX@@/lib
NO_DEFAULT_PATH
)
ENDIF (APPLE OR FREEBSD)