Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engge #318

Merged
merged 8 commits into from
Mar 31, 2021
Merged

engge #318

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions engines/engge/assets/run-engge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

ln -rsf ./Resources/ThimbleweedPark.ggpack1 ./ThimbleweedPark.ggpack1
ln -rsf ./Resources/ThimbleweedPark.ggpack2 ./ThimbleweedPark.ggpack2

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

apt-get -y install mercurial libssl1.0-dev

# CLONE PHASE
git clone https://github.com/scemino/engge.git source
pushd source
git checkout e8beab7
git submodule update --init --recursive
popd

hg clone https://hg.libsdl.org/SDL
pushd SDL
hg checkout release-2.0.14
popd

git clone https://github.com/SDL-mirror/SDL_mixer.git SDL_mixer
pushd SDL_mixer
git checkout -f release-2.0.4
popd

wget https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.zip
unzip glew-2.1.0.zip -d glew

git clone https://github.com/g-truc/glm glm
pushd glm
git checkout -f 947527d3
git submodule update --init --recursive
popd

git clone https://github.com/Kitware/CMake.git cmake
pushd cmake
git checkout -f 39c6ac5
popd

git clone https://github.com/aseprite/freetype2.git freetype2
pushd freetype2
git checkout -f fbbcf50
popd

readonly pfx="$PWD/local"
mkdir -p "$pfx"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$pfx/lib/pkgconfig"

# BUILD PHASE
pushd cmake
./bootstrap
make
sudo make install
popd

export CMAKE_ROOT=/usr/local/share/cmake-3.16/
/usr/local/bin/cmake --version

pushd "SDL"
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_PREFIX_PATH="$pfx" \
-DCMAKE_INSTALL_PREFIX="$pfx" \
..
make -j "$(nproc)"
make install
popd

pushd "SDL_mixer"
./configure --prefix="$pfx"
make -j "$(nproc)"
make install
popd

pushd glew/glew-2.1.0
GLEW_DEST="$pfx" make -j "$(nproc)"
GLEW_DEST="$pfx" make install
popd

pushd freetype2
mkdir build
cd build
cmake \
-DCMAKE_PREFIX_PATH="$pfx;$pfx/usr/local" \
-DCMAKE_INSTALL_PREFIX="$pfx" \
-DCMAKE_CXX_FLAGS="-fPIC" \
-DCMAKE_C_FLAGS="-fPIC" \
-DBUILD_SHARED_LIBS=ON \
..
make -j "$(nproc)"
make install
popd

pushd "source"
mkdir -p build
cd build
cmake \
-DGLM_INCLUDE_DIR=../../glm \
-DCMAKE_INSTALL_PREFIX="$pfx" \
-DCMAKE_PREFIX_PATH="$pfx" \
-DCMAKE_BUILD_TYPE=Release \
..
cmake --build . --config Release
popd

# COPY PHASE
mkdir -p "$diststart/569860/dist/lib"
cp -rfv "$pfx/lib/"*.so* "$diststart/569860/dist/lib"
cp -rfv source/build/src/engge "$diststart/569860/dist/"
cp -rfv assets/* "$diststart/569860/dist/"
cp -rfv glew/glew-2.1.0/lib/*.so* "$diststart/569860/dist/lib"
7 changes: 7 additions & 0 deletions engines/engge/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

export STEAM_APP_ID_LIST="569860"
export LICENSE_PATH="./source/LICENSE"
export ADDITIONAL_LICENSES="./SDL/COPYING.txt ./SDL_mixer/COPYING.txt ./glm/copying.txt ./glew/glew-2.1.0/LICENSE.txt ./freetype2/README"
export CUSTOM_CONTAINER="ubuntu:18.04"
export GCC_10="1"
18 changes: 17 additions & 1 deletion metadata/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4345,6 +4345,22 @@
}
]
},
"569860": {
"game_name": "Thimbleweed Park™",
"download": [],
"command": "./run-engge.sh",
"information": {
"store_link": "https://steamcommunity.com/app/569860",
"engine_name": "engge",
"engine_link": "https://github.com/scemino/engge",
"version": "e8beab7 (from master)",
"comments": "",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "MIT",
"license_link": "https://github.com/scemino/engge/blob/master/LICENSE"
}
},
"698780": {
"game_name": "Doki Doki Literature Club!",
"command": "./DDLC.sh",
Expand Down Expand Up @@ -4892,4 +4908,4 @@
}
]
}
}
}