mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
Ports/freedink: Use make install
rather than copying files manually
This ensures the required binary files are installed to the correct location and data files are copied to their default location so the `--refdir` argument isn't needed when launching the game.
This commit is contained in:
parent
cecc554102
commit
94de006144
1 changed files with 3 additions and 6 deletions
|
@ -12,16 +12,13 @@ files=(
|
|||
)
|
||||
configopts=("--prefix=/usr/local" "--disable-rpath" "--disable-tests" "LDFLAGS=-ldl -lfontconfig -lxml2")
|
||||
|
||||
resource_path="/usr/local/share/games/dink"
|
||||
|
||||
launcher_name="FreeDink"
|
||||
launcher_category=Games
|
||||
launcher_command="/usr/local/bin/freedink --software-rendering --truecolor --refdir ${resource_path}"
|
||||
launcher_command='/usr/local/bin/freedink --software-rendering --truecolor'
|
||||
|
||||
install() {
|
||||
target_dir="${SERENITY_INSTALL_ROOT}${resource_path}"
|
||||
run_nocd mkdir -p ${target_dir}
|
||||
run_nocd cp -R ${freedink_data}/* ${target_dir}
|
||||
run_nocd make DESTDIR="${SERENITY_INSTALL_ROOT}" -C "${freedink_data}" install
|
||||
run make DESTDIR="${SERENITY_INSTALL_ROOT}" "${installopts[@]}" install
|
||||
}
|
||||
|
||||
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2 -I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue