mirror of
https://github.com/RGBCube/serenity
synced 2025-08-01 18:17:46 +00:00
Everywhere: Replace SERENITY_ROOT with SERENITY_SOURCE_DIR
This commit is contained in:
parent
3f5c934ea6
commit
e45e0eeb47
33 changed files with 69 additions and 69 deletions
|
@ -10,7 +10,7 @@ export PKG_CONFIG_DIR=""
|
|||
export PKG_CONFIG_SYSROOT_DIR="${SERENITY_BUILD_DIR}/Root"
|
||||
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_SYSROOT_DIR}/usr/lib/pkgconfig/:${PKG_CONFIG_SYSROOT_DIR}/usr/local/lib/pkgconfig"
|
||||
|
||||
# To be removed.
|
||||
# To be deprecated soon.
|
||||
export SERENITY_ROOT="$(realpath "${SCRIPT}/../")"
|
||||
|
||||
enable_ccache
|
||||
|
|
|
@ -190,7 +190,7 @@ keyring and can later be used for verification using [`auth_opts`](#auth_opts).
|
|||
|
||||
Options passed to `make install` in the default `install` function.
|
||||
|
||||
`DESTDIR="${SERENITY_BUILD_DIR}/Root"` (`"${SERENITY_ROOT}/Build/${SERENITY_ARCH}/Root"`)
|
||||
`DESTDIR="${SERENITY_BUILD_DIR}/Root"` (`"${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}/Root"`)
|
||||
is always passed, override the `install` function if that's undesirable.
|
||||
|
||||
#### `makeopts`
|
||||
|
@ -215,7 +215,7 @@ is placed in.
|
|||
The location of the ports directory, only used for the `package.db` file for
|
||||
now. Don't override this in ports contributed to Serenity.
|
||||
|
||||
Defaults to `$SERENITY_ROOT/Ports`.
|
||||
Defaults to `$SERENITY_SOURCE_DIR/Ports`.
|
||||
|
||||
#### `useconfigure`
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ workdir=SDL-main-serenity
|
|||
useconfigure=true
|
||||
files="https://github.com/SerenityOS/SDL/archive/main-serenity.tar.gz SDL2-git.tar.gz 18ce496be8644b0eb7fc4cad0d8dd5ff"
|
||||
auth_type=md5
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt -DPULSEAUDIO=OFF -DJACK=OFF"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt -DPULSEAUDIO=OFF -DJACK=OFF"
|
||||
|
||||
configure() {
|
||||
run cmake $configopts
|
||||
|
|
|
@ -4,7 +4,7 @@ useconfigure=true
|
|||
version=git
|
||||
depends="SDL2 SDL2_image"
|
||||
workdir=SDLPoP-86988c668eeaa10f218e1d4938fc5b4e42314d68
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://github.com/NagyD/SDLPoP/archive/86988c668eeaa10f218e1d4938fc5b4e42314d68.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
|
||||
auth_type=sha256
|
||||
install_location="Root/opt/PrinceOfPersia"
|
||||
|
|
|
@ -4,7 +4,7 @@ useconfigure=true
|
|||
version=git
|
||||
depends="SDL2 SDL2_mixer SDL2_image"
|
||||
workdir=Super-Mario-Clone-Cpp-master
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp/archive/refs/heads/master.zip master.zip 11f622721d1ba504acf75c024aa0dbe3"
|
||||
auth_type=md5
|
||||
install_location="Root/opt/Super_Mario"
|
||||
|
|
|
@ -4,7 +4,7 @@ version=c094d64570c30c70f4003e9428d31a2a0d9d3d41
|
|||
useconfigure=true
|
||||
files="https://github.com/vkoskiv/c-ray/archive/${version}.tar.gz ${version}.tar.gz b83e3c6a1462486257dfe38d309b47c2"
|
||||
auth_type=md5
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
depends="SDL2"
|
||||
workdir="${port}-${version}"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ useconfigure=true
|
|||
version=git
|
||||
depends="SDL2"
|
||||
workdir=chester-public
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://github.com/veikkos/chester/archive/public.tar.gz chester.tar.gz f09d797209e7bfd9b1460d2540525186"
|
||||
auth_type=md5
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ useconfigure=true
|
|||
files="https://github.com/Kitware/CMake/releases/download/v$version/cmake-$version.tar.gz cmake-$version.tar.gz 2a71f16c61bac5402004066d193fc14e"
|
||||
auth_type=md5
|
||||
depends="bash gcc make sed ncurses"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
|
||||
configure() {
|
||||
run cmake $configopts .
|
||||
|
|
|
@ -4,7 +4,7 @@ useconfigure=true
|
|||
version=git
|
||||
depends="ncurses"
|
||||
workdir=cmatrix-master
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://github.com/abishekvashok/cmatrix/archive/refs/heads/master.zip cmatrix.zip 2541321b89149b375d5732402e52d654"
|
||||
auth_type=md5
|
||||
|
||||
|
|
|
@ -8,4 +8,4 @@ auth_type="sig"
|
|||
auth_import_key="C52048C0C0748FEE227D47A2702353E0F7E48EDB"
|
||||
auth_opts="dialog-${version}.tgz.asc dialog-${version}.tgz"
|
||||
useconfigure=true
|
||||
configopts="--prefix=/usr/local --with-ncurses --with-curses-dir=${SERENITY_ROOT}/Build/i686/Root/usr/local/include/ncurses"
|
||||
configopts="--prefix=/usr/local --with-ncurses --with-curses-dir=${SERENITY_SOURCE_DIR}/Build/i686/Root/usr/local/include/ncurses"
|
||||
|
|
|
@ -5,6 +5,6 @@ files="https://github.com/dmsc/emu2/archive/${version}.zip emu2-${version}.zip 2
|
|||
auth_type=md5
|
||||
|
||||
build() {
|
||||
export CC="${SERENITY_ROOT}/Toolchain/Local/${SERENITY_ARCH}/bin/${SERENITY_ARCH}-pc-serenity-gcc"
|
||||
export CC="${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin/${SERENITY_ARCH}-pc-serenity-gcc"
|
||||
run make DESTDIR="${SERENITY_BUILD_DIR}/Root" CC="${CC}" $installopts
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ files="https://github.com/google/flatbuffers/archive/refs/tags/v${version}.tar.g
|
|||
useconfigure=true
|
||||
# Since we are cross-compiling, we cannot build the tests, because we need
|
||||
# the flatbuffers compiler to build them
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt -DFLATBUFFERS_BUILD_TESTS=off"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt -DFLATBUFFERS_BUILD_TESTS=off"
|
||||
|
||||
configure() {
|
||||
run cmake $configopts
|
||||
|
|
|
@ -9,7 +9,7 @@ depends="ncurses"
|
|||
build() {
|
||||
run make \
|
||||
PKG_CONFIG_CURSES=no \
|
||||
CURSES_CFLAGS="-I${SERENITY_ROOT}/Build/i686/Root/usr/local/include/ncurses" \
|
||||
CURSES_CFLAGS="-I${SERENITY_SOURCE_DIR}/Build/i686/Root/usr/local/include/ncurses" \
|
||||
CURSES_LDFLAGS="-lncurses -ltinfo" \
|
||||
CURSES=ncurses \
|
||||
USE_UTF8=no \
|
||||
|
|
|
@ -4,7 +4,7 @@ version=3bf6f7cd893db3451019d6e18a2d9ad1de0e7c8c
|
|||
useconfigure=true
|
||||
files="https://github.com/rasky/genemu/archive/${version}.tar.gz genemu-${version}.tar.gz 5704a21341ea56d026601e48e08f4605"
|
||||
auth_type=md5
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_ROOT}/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_SOURCE_DIR}/Toolchain/CMake/CMakeToolchain.txt"
|
||||
depends="SDL2"
|
||||
|
||||
configure() {
|
||||
|
|
|
@ -5,7 +5,7 @@ version=2.4.0-devel
|
|||
depends="SDL2 zlib"
|
||||
commit=353379e1f8a847cc0e284541d2b40fd49d175d22
|
||||
workdir="${port}-${commit}"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://github.com/hatari/hatari/archive/${commit}.tar.gz ${commit}.tar.gz 614d8c20a06deea6df464a5de32cc795"
|
||||
auth_type=md5
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ useconfigure=true
|
|||
version=1.7.3
|
||||
depends="zlib"
|
||||
workdir=libzip-${version}
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
files="https://libzip.org/download/libzip-${version}.tar.gz libzip-${version}.tar.gz 76f8fea9b88f6ead7f15ed7712eb5aef"
|
||||
auth_type=md5
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=nesalizer
|
||||
version=master
|
||||
makeopts="CONF=release EXTRA=-I${SERENITY_ROOT}/Build/i686/Root/usr/local/include/SDL2"
|
||||
makeopts="CONF=release EXTRA=-I${SERENITY_SOURCE_DIR}/Build/i686/Root/usr/local/include/SDL2"
|
||||
files="https://github.com/SerenityOS/nesalizer/archive/master.zip nesalizer-master.zip 0bbcde24c2366ced827ad63935f557cf"
|
||||
auth_type=md5
|
||||
depends=SDL2
|
||||
|
|
|
@ -8,7 +8,7 @@ files="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${ve
|
|||
auth_type=md5
|
||||
|
||||
configure() {
|
||||
export CC=${SERENITY_ROOT}/Toolchain/Local/${SERENITY_ARCH}/bin/${SERENITY_ARCH}-pc-serenity-gcc
|
||||
export CC=${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin/${SERENITY_ARCH}-pc-serenity-gcc
|
||||
export CFLAGS=""
|
||||
export LDFLAGS="-lncurses"
|
||||
run ./configure --no-thanks
|
||||
|
|
|
@ -4,7 +4,7 @@ version=1.28
|
|||
useconfigure=true
|
||||
files="https://github.com/8bitbubsy/pt2-clone/archive/v${version}.tar.gz v${version}.tar.gz 42df939c03b7e598ed8b17a764150860"
|
||||
auth_type=md5
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMake/CMakeToolchain.txt"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
|
||||
depends="SDL2"
|
||||
|
||||
configure() {
|
||||
|
|
|
@ -27,7 +27,7 @@ pre_configure() {
|
|||
}
|
||||
|
||||
post_configure() {
|
||||
run cp "${SERENITY_ROOT}/Ports/${port}/Setup.local" "Modules/Setup.local"
|
||||
run cp "${SERENITY_SOURCE_DIR}/Ports/${port}/Setup.local" "Modules/Setup.local"
|
||||
}
|
||||
|
||||
if [ -x "$(command -v python3)" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue