mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
Ports: Install ncurses headers into the main include directory
This commit is contained in:
parent
06c6c046f3
commit
749d0eef7f
3 changed files with 6 additions and 3 deletions
|
@ -9,5 +9,3 @@ build() {
|
|||
run make \
|
||||
production=true
|
||||
}
|
||||
|
||||
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
|
|
|
@ -11,5 +11,4 @@ auth_type="sig"
|
|||
auth_import_key="BFD009061E535052AD0DF2150D28D4D2A0ACE884"
|
||||
auth_opts=("nano-${version}.tar.xz.asc" "nano-${version}.tar.xz")
|
||||
|
||||
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
export PKG_CONFIG_PATH="${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig"
|
||||
|
|
|
@ -87,4 +87,10 @@ post_install() {
|
|||
# Target folder has to be removed, otherwise we will get `/usr/local/include/ncurses/ncursesw`.
|
||||
rm -rf "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
ln -svf ncursesw "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
|
||||
# Compatibility symlink for ports that expect `/usr/local/include/curses.h` and friends.
|
||||
# FIXME: Is there a logical explanation for all of this? If so, we should clean it up at some point.
|
||||
for file in $(ls "${SERENITY_INSTALL_ROOT}/usr/local/include/ncursesw"); do
|
||||
ln -svf ncursesw/${file} "${SERENITY_INSTALL_ROOT}/usr/local/include/${file}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue