Skip to content

Commit

Permalink
Add Aleph One (#1207)
Browse files Browse the repository at this point in the history
* Add alephone

* Update vcpkg.json

* Update vcpkg.json

* Update vcpkg.json

* Update vcpkg.json

* Fixes

* fixes

* Update build.sh

* Update build.sh

* Update run-alephone.sh
  • Loading branch information
d10sfan authored May 10, 2024
1 parent b91299c commit edaa71f
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 1 deletion.
3 changes: 3 additions & 0 deletions engines/alephone/assets/run-alephone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./alephone "$PWD" "$@"
26 changes: 26 additions & 0 deletions engines/alephone/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

sudo apt-get -y install autoconf-archive

export CXXFLAGS=-I"$VCPKG_INSTALLED_PATH"/include
export CFLAGS=-I"$VCPKG_INSTALLED_PATH"/include
export LDFLAGS=-L"$VCPKG_INSTALLED_PATH/lib"
export LIBRARY_PATH="$VCPKG_INSTALLED_PATH/lib"

# CLONE PHASE
git clone https://github.com/Aleph-One-Marathon/alephone.git source
pushd source
git checkout -f "$COMMIT_TAG"
git submodule update --init --recursive
popd

# BUILD PHASE
pushd source
autoreconf -i
./configure --with-boost-libdir="$VCPKG_INSTALLED_PATH/lib"
make
popd

# COPY PHASE
cp -rfv assets/* "$diststart/2398450/dist/"
cp -rfv source/Source_Files/alephone "$diststart/2398450/dist/"
11 changes: 11 additions & 0 deletions engines/alephone/env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"STEAM_APP_ID_LIST": [
"2398450"
],
"LICENSE_PATH": "./source/COPYING",
"APT_LIBRARIES": [
"nasm",
"libboost-dev"
],
"COMMIT_TAG": "release-20240510"
}
58 changes: 58 additions & 0 deletions engines/alephone/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies":[
{
"name":"boost-algorithm"
},
{
"name":"boost-uuid"
},
{
"name":"boost-property-tree"
},
{
"name":"boost-iostreams",
"default-features":false
},
{
"name":"boost-filesystem"
},
{
"name":"boost-lockfree"
},
{
"name":"boost-dll"
},
{
"name":"boost-system"
},
{
"name":"sdl2-net"
},
{
"name":"sdl2-ttf"
},
{
"name":"zziplib"
},
{
"name":"ffmpeg",
"features":[
"vorbis",
"vpx"
]
},
{
"name":"nativefiledialog"
},
{
"name":"libsndfile"
},
{
"name":"openal-soft"
},
{
"name":"catch2"
}
]
}
23 changes: 22 additions & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8979,6 +8979,16 @@
"command": "./ftequakeworld.sh",
"cloudNotAvailable": true,
"app_id": "2347390"
},
{
"game_name": "Classic Marathon",
"download": [],
"engine_name": "Aleph One",
"command": "./run-alephone.sh",
"cloudAvailable": true,
"cloudIssue": true,
"cloudIssueReason": "unworkable_location",
"app_id": "2398450"
}
],
"engines": [
Expand Down Expand Up @@ -10838,6 +10848,17 @@
"controllerNotSupported": true,
"engine_name": "CleanDoom",
"internal_engine_name": "cleandoom"
},
{
"engine_link": "https://github.com/Aleph-One-Marathon/alephone",
"version": "1.8",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "GPLv3",
"license_link": "https://github.com/Aleph-One-Marathon/alephone/blob/master/COPYING",
"controllerNotSupported": true,
"engine_name": "Aleph One",
"internal_engine_name": "alephone"
}
],
"default_engine": {
Expand Down Expand Up @@ -11095,4 +11116,4 @@
"value": "Save Format Not Compatible"
}
]
}
}

0 comments on commit edaa71f

Please sign in to comment.