mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
Ports: Switch to new ports system (#594)
Much redundancy is removed from package scripts with this system. It also supports simple dependency management, uninstalling (through BSD ports style plist files), cleaning up after itself (with clean, clean_dist, clean_all commands), etc.
This commit is contained in:
parent
d5f1c57fe2
commit
18249b5996
47 changed files with 6563 additions and 428 deletions
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
PORT_DIR=SDL
|
||||
fetch() {
|
||||
run_fetch_git "https://github.com/SerenityOS/SDL"
|
||||
}
|
||||
configure() {
|
||||
CMAKEOPTS="-DPULSEAUDIO=OFF"
|
||||
run_configure_cmake
|
||||
}
|
||||
build() {
|
||||
run_make
|
||||
}
|
||||
install() {
|
||||
run_make_install
|
||||
}
|
||||
. ../.port_include.sh
|
12
Ports/SDL2/package.sh
Executable file
12
Ports/SDL2/package.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash ../.port_include.sh
|
||||
port=SDL2
|
||||
version=serenity-git
|
||||
workdir=SDL-master-serenity
|
||||
useconfigure=true
|
||||
curlopts="-L"
|
||||
files="https://github.com/SerenityOS/SDL/archive/master-serenity.tar.gz SDL2-git.tar.gz"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_ROOT/Toolchain/CMakeToolchain.txt -DPULSEAUDIO=OFF"
|
||||
|
||||
configure() {
|
||||
run cmake $configopts
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue