mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: ncurses and readline
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
diff -ruN ncurses-clean/config.sub ncurses/config.sub
|
||||
--- ncurses-clean/config.sub 2022-10-14 15:55:47.209908636 -0300
|
||||
+++ ncurses/config.sub 2022-10-14 15:56:44.089908194 -0300
|
||||
@@ -1718,7 +1718,7 @@
|
||||
# Now accept the basic system types.
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST end in a * to match a version number.
|
||||
- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
+ gnu* | android* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
|
||||
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
|
||||
| sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
|
||||
diff -ruN ncurses-clean/configure ncurses/configure
|
||||
--- ncurses-clean/configure 2022-10-14 15:55:47.209908636 -0300
|
||||
+++ ncurses/configure 2022-10-14 16:01:02.713239547 -0300
|
||||
@@ -6244,6 +6244,10 @@
|
||||
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
|
||||
fi
|
||||
;;
|
||||
+ (astral*)
|
||||
+ CC_SHARED_OPTS=-fPIC
|
||||
+ MK_SHARED_LIB='${CC} -shared -o $@'
|
||||
+ ;;
|
||||
(haiku*)
|
||||
|
||||
test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -ruN readline-clean/support/config.sub readline/support/config.sub
|
||||
--- readline-clean/support/config.sub 2022-10-14 16:21:57.553229749 -0300
|
||||
+++ readline/support/config.sub 2022-10-14 16:22:12.479896273 -0300
|
||||
@@ -1723,7 +1723,7 @@
|
||||
# Now accept the basic system types.
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST end in a * to match a version number.
|
||||
- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
+ gnu* | android* | astral* |bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
|
||||
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
|
||||
| sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
|
||||
@@ -0,0 +1,26 @@
|
||||
name=ncurses
|
||||
revision=1
|
||||
from_source=ncurses
|
||||
imagedeps="base-devel"
|
||||
hostdeps="xgcc xbinutils libstdc++-v3"
|
||||
deps="mlibc"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --with-shared --without-normal --with-termlib --enable-pc-files --enable-widec
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j${parallelism}
|
||||
}
|
||||
|
||||
install() {
|
||||
make install DESTDIR="${dest_dir}"
|
||||
|
||||
echo "INPUT(-lncursesw)" > ${dest_dir}${prefix}/lib/libncurses.so
|
||||
echo "INPUT(-ltinfow)" > ${dest_dir}${prefix}/lib/libtinfo.so
|
||||
echo "INPUT(-lmenuw)" > ${dest_dir}${prefix}/lib/libmenu.so
|
||||
echo "INPUT(-lformw)" > ${dest_dir}${prefix}/lib/libform.so
|
||||
echo "INPUT(-lpanelw)" > ${dest_dir}${prefix}/lib/libpanel.so
|
||||
echo "INPUT(-lncursesw)" > ${dest_dir}${prefix}/lib/libcursesw.so
|
||||
cp ${dest_dir}${prefix}/lib/libncurses.so ${dest_dir}${prefix}/lib/libcurses.so
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
name=readline
|
||||
revision=1
|
||||
from_source=readline
|
||||
imagedeps="base-devel"
|
||||
hostdeps="xgcc xbinutils"
|
||||
deps="mlibc ncurses"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --enable-multibyte --disable-static --enable-shared
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j${parallelism} SHLIB_LIBS="-lncursesw"
|
||||
}
|
||||
|
||||
install() {
|
||||
make install SHLIB_LIBS="-lncursesw" DESTDIR="${dest_dir}"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=ncurses
|
||||
version=6.3
|
||||
source_method=tarball
|
||||
tarball_url="https://ftp.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz"
|
||||
tarball_sha512=5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
|
||||
|
||||
regenerate() {
|
||||
true
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
name=readline
|
||||
version=8.2
|
||||
source_method=tarball
|
||||
tarball_url="https://ftp.gnu.org/gnu/readline/readline-${version}.tar.gz"
|
||||
tarball_sha512=0a451d459146bfdeecc9cdd94bda6a6416d3e93abd80885a40b334312f16eb890f8618a27ca26868cebbddf1224983e631b1cbc002c1a4d1cd0d65fba9fea49a
|
||||
|
||||
regenerate() {
|
||||
true
|
||||
}
|
||||
Reference in New Issue
Block a user