ports: Update some ports to new syntax
This commit is contained in:
parent
505388b9fa
commit
c94243e107
|
@ -18,9 +18,7 @@ CONFIGURE_OPTIONS=(
|
|||
'--without-ca-path'
|
||||
)
|
||||
|
||||
install() {
|
||||
make install DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
# remove libtool file
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libcurl.la
|
||||
}
|
||||
|
|
|
@ -5,9 +5,7 @@ VERSION='9f'
|
|||
DOWNLOAD_URL="https://www.ijg.org/files/jpegsrc.v9f.tar.gz#04705c110cb2469caa79fb71fba3d7bf834914706e9641a4589485c1f832565b"
|
||||
TAR_CONTENT="jpeg-$VERSION"
|
||||
|
||||
install() {
|
||||
make install DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
# remove libtool files
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libjpeg.la
|
||||
}
|
||||
|
|
|
@ -5,9 +5,7 @@ VERSION='1.6.48'
|
|||
DOWNLOAD_URL="https://download.sourceforge.net/libpng/libpng-$VERSION.tar.gz#68f3d83a79d81dfcb0a439d62b411aa257bb4973d7c67cd1ff8bdf8d011538cd"
|
||||
DEPENDENCIES=('zlib')
|
||||
|
||||
install() {
|
||||
make install DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
# remove libtool files
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libpng.la
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libpng16.la
|
||||
|
|
|
@ -6,9 +6,7 @@ DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.gz#67160e3457
|
|||
TAR_CONTENT="tiff-$VERSION"
|
||||
DEPENDENCIES=('zlib' 'zstd' 'libjpeg')
|
||||
|
||||
install() {
|
||||
make install "DESTDIR=$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
# remove libtool files
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libtiff.la
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libtiffxx.la
|
||||
|
|
|
@ -9,9 +9,7 @@ CONFIGURE_OPTIONS=(
|
|||
"--with-pnglibdir=$BANAN_SYSROOT/usr/lib"
|
||||
)
|
||||
|
||||
install() {
|
||||
make install DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
# remove libtool files
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libwebp.la
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libwebpdemux.la
|
||||
|
|
|
@ -16,9 +16,7 @@ CONFIGURE_OPTIONS=(
|
|||
'--without-cxx-binding'
|
||||
)
|
||||
|
||||
install() {
|
||||
make install "DESTDIR=$BANAN_SYSROOT" || exit 1
|
||||
|
||||
post_install() {
|
||||
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
|
||||
grep -q 'export NCURSES_NO_UTF8_ACS=' "$shellrc" || echo 'export NCURSES_NO_UTF8_ACS=1' >> "$shellrc"
|
||||
}
|
||||
|
|
|
@ -4,12 +4,8 @@ NAME='openssl'
|
|||
VERSION='3.3.1'
|
||||
DOWNLOAD_URL="https://github.com/openssl/openssl/releases/download/openssl-$VERSION/openssl-$VERSION.tar.gz#777cd596284c883375a2a7a11bf5d2786fc5413255efab20c50d6ffe6d020b7e"
|
||||
DEPENDENCIES=('zlib')
|
||||
MAKE_INSTALL_TARGETS=('install_sw' 'install_ssldirs')
|
||||
|
||||
configure() {
|
||||
./Configure --prefix=/usr --openssldir=/etc/ssl -DOPENSSL_USE_IPV6=0 no-asm no-tests banan_os-generic threads zlib
|
||||
}
|
||||
|
||||
install() {
|
||||
make install_sw "DESTDIR=$BANAN_SYSROOT" || exit 1
|
||||
make install_ssldirs "DESTDIR=$BANAN_SYSROOT" || exit 1
|
||||
}
|
||||
|
|
|
@ -9,6 +9,9 @@ if [ $tcc_arch = 'i686' ]; then
|
|||
tcc_arch='i386'
|
||||
fi
|
||||
|
||||
MAKE_BUILD_TARGETS=("cross-$tcc_arch $tcc_arch-libtcc1-usegcc=yes")
|
||||
MAKE_INSTALL_TARGETS=("install-unx")
|
||||
|
||||
configure() {
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
|
@ -22,12 +25,6 @@ configure() {
|
|||
--elfinterp=/usr/lib/DynamicLoader.so
|
||||
}
|
||||
|
||||
build() {
|
||||
touch $BANAN_SYSROOT/usr/include/sys/ucontext.h
|
||||
make -j$(nproc) cross-$tcc_arch $tcc_arch-libtcc1-usegcc=yes || exit 1
|
||||
}
|
||||
|
||||
install() {
|
||||
make install-unx DESTDIR=$BANAN_SYSROOT || exit 1
|
||||
post_install() {
|
||||
ln -sf $tcc_arch-tcc $BANAN_SYSROOT/usr/bin/tcc
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff -ruN tcc-0.9.27/tccrun.c tcc-0.9.27-banan_os/tccrun.c
|
||||
--- tcc-0.9.27/tccrun.c 2017-12-17 10:27:05.000000000 +0200
|
||||
+++ tcc-0.9.27-banan_os/tccrun.c 2025-06-28 20:30:00.914206003 +0300
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifdef CONFIG_TCC_BACKTRACE
|
||||
# ifndef _WIN32
|
||||
# include <signal.h>
|
||||
-# ifndef __OpenBSD__
|
||||
+# if !defined(__OpenBSD__) && !defined(__banan_os__)
|
||||
# include <sys/ucontext.h>
|
||||
# endif
|
||||
# else
|
Loading…
Reference in New Issue