|
|
@@ -1,11 +1,5 @@ |
|
|
|
SHELL:=/bin/bash |
|
|
|
|
|
|
|
ubuntu1804: |
|
|
|
git clone https://github.com/SFML/SFML.git |
|
|
|
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt |
|
|
|
bash ../ubuntu1804.sh make impl |
|
|
|
make package-ubuntu1804 |
|
|
|
|
|
|
|
ubuntu2004: |
|
|
|
git clone https://github.com/SFML/SFML.git |
|
|
|
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt |
|
|
@@ -13,6 +7,12 @@ ubuntu2004: |
|
|
|
make package-ubuntu2004 |
|
|
|
bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions |
|
|
|
|
|
|
|
ubuntu1804: |
|
|
|
git clone https://github.com/SFML/SFML.git |
|
|
|
pushd SFML && git checkout 2.5.x # && patch -p1 < ../patch.txt |
|
|
|
bash ../ubuntu1804.sh make impl |
|
|
|
make package-ubuntu1804 |
|
|
|
|
|
|
|
impl: |
|
|
|
# copy & paste from allegro5 |
|
|
|
apt-get update |
|
|
@@ -26,7 +26,7 @@ impl: |
|
|
|
switch-to-latest-clang |
|
|
|
# static build |
|
|
|
pushd SFML && \ |
|
|
|
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/sfml_static -DBUILD_SHARED_LIBS=false . && \ |
|
|
|
cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/sfml_static -DBUILD_SHARED_LIBS=false . && \ |
|
|
|
make -j $$(nproc) && \ |
|
|
|
make install |
|
|
|
|