mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00: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 \
|
run make \
|
||||||
production=true
|
production=true
|
||||||
}
|
}
|
||||||
|
|
||||||
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
|
||||||
|
|
|
@ -11,5 +11,4 @@ auth_type="sig"
|
||||||
auth_import_key="BFD009061E535052AD0DF2150D28D4D2A0ACE884"
|
auth_import_key="BFD009061E535052AD0DF2150D28D4D2A0ACE884"
|
||||||
auth_opts=("nano-${version}.tar.xz.asc" "nano-${version}.tar.xz")
|
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"
|
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`.
|
# Target folder has to be removed, otherwise we will get `/usr/local/include/ncurses/ncursesw`.
|
||||||
rm -rf "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
rm -rf "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||||
ln -svf ncursesw "${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…
Add table
Add a link
Reference in a new issue