Ports: Update the port system once again!
This commit is contained in:
@@ -4,6 +4,10 @@ NAME='doom'
|
||||
VERSION='git'
|
||||
DOWNLOAD_URL="https://github.com/ozkl/doomgeneric.git#613f870b6fa83ede448a247de5a2571092fa729d"
|
||||
|
||||
configure() {
|
||||
:
|
||||
}
|
||||
|
||||
build() {
|
||||
if [ ! -f doom1.wad ]; then
|
||||
wget https://distro.ibiblio.org/slitaz/sources/packages/d/doom1.wad || exit 1
|
||||
|
||||
@@ -6,7 +6,7 @@ if (( $# != 1 )); then
|
||||
fi
|
||||
|
||||
if [[ -z $BANAN_ROOT_DIR ]]; then
|
||||
BANAN_ROOT_DIR="$(dirname $(realpath $0))/.."
|
||||
BANAN_ROOT_DIR="$(realpath $(dirname $(realpath $0))/..)"
|
||||
fi
|
||||
|
||||
source "$BANAN_ROOT_DIR/script/config.sh"
|
||||
@@ -18,6 +18,10 @@ export PKG_CONFIG_SYSROOT_DIR="$BANAN_SYSROOT"
|
||||
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_SYSROOT_DIR/usr/lib/pkgconfig"
|
||||
export PKG_CONFIG_PATH="$PKG_CONFIG_SYSROOT_DIR/usr/share/pkgconfig"
|
||||
|
||||
export CC="$BANAN_TOOLCHAIN_TRIPLE-gcc"
|
||||
export CXX="$BANAN_TOOLCHAIN_TRIPLE-g++"
|
||||
export LD="$BANAN_TOOLCHAIN_TRIPLE-ld"
|
||||
|
||||
if [ ! -f "$BANAN_SYSROOT/usr/lib/libc.a" ]; then
|
||||
pushd "$BANAN_ROOT_DIR" >/dev/null
|
||||
./bos libc || exit 1
|
||||
@@ -29,11 +33,13 @@ clean() {
|
||||
find . -mindepth 1 -maxdepth 1 -not -name 'patches' -not -name 'build.sh' -exec rm -rf {} +
|
||||
}
|
||||
|
||||
build() {
|
||||
configure() {
|
||||
configure_options=("--host=$BANAN_ARCH-banan_os" '--prefix=/usr')
|
||||
configure_options+=(${CONFIGURE_OPTIONS[*]})
|
||||
configure_options+=("${CONFIGURE_OPTIONS[@]}")
|
||||
./configure "${configure_options[@]}" || exit 1
|
||||
}
|
||||
|
||||
./configure ${configure_options[*]} || exit 1
|
||||
build() {
|
||||
make -j$(nproc) || exit 1
|
||||
}
|
||||
|
||||
@@ -143,6 +149,7 @@ fi
|
||||
cd "$build_dir"
|
||||
|
||||
if (( $needs_compile )); then
|
||||
configure
|
||||
build
|
||||
sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash"
|
||||
fi
|
||||
|
||||
@@ -4,7 +4,10 @@ NAME='ncurses'
|
||||
VERSION='6.5'
|
||||
DOWNLOAD_URL="https://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz#136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6"
|
||||
CONFIGURE_OPTIONS=(
|
||||
'--disable-db-intall'
|
||||
"--with-pkg-config='$PKG_CONFIG'"
|
||||
"--with-pkg-config-libdir=/usr/lib/pkgconfig"
|
||||
'--enable-pc-files'
|
||||
'--enable-sigwinch'
|
||||
'--disable-widec'
|
||||
'--without-ada'
|
||||
'--without-manpages'
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $BANAN_PORT_DIR ]; then
|
||||
echo "You must set the BANAN_PORT_DIR environment variable" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $(dirname $(realpath $0))
|
||||
|
||||
rm -f $BANAN_PORT_DIR/.installed
|
||||
|
||||
while IFS= read -r port; do
|
||||
pushd $(dirname "$port") >/dev/null
|
||||
./build.sh
|
||||
popd >/dev/null
|
||||
done < <(find . -name '.compile_hash')
|
||||
done < <(find $BANAN_PORT_DIR -name '.compile_hash')
|
||||
|
||||
@@ -4,7 +4,7 @@ NAME='vim'
|
||||
VERSION='9.0'
|
||||
DOWNLOAD_URL="ftp://ftp.vim.org/pub/vim/unix/vim-$VERSION.tar.bz2#a6456bc154999d83d0c20d968ac7ba6e7df0d02f3cb6427fb248660bacfb336e"
|
||||
TAR_CONTENT='vim90'
|
||||
DEPENDENCIES=('ncurses' )
|
||||
DEPENDENCIES=('ncurses')
|
||||
CONFIGURE_OPTIONS=(
|
||||
'--with-tlib=ncurses'
|
||||
'--disable-nls'
|
||||
|
||||
Reference in New Issue
Block a user