You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- SHELL:=/bin/bash
-
- allegro5:
- git clone https://github.com/liballeg/allegro5.git
- pushd allegro5 && git checkout 5.2.5.0
- bash ../ubuntu1804.sh make impl
- make package
-
- impl:
- apt-get update
- apt-get install -y freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \
- libxcursor-dev libavfilter-dev \
- libpng-dev libjpeg-dev libfreetype6-dev \
- libxrandr-dev libxinerama-dev libxi-dev \
- libgtk2.0-dev
- # static build
- pushd allegro5 && \
- cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_static -DSHARED=off -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
- make -j $$(nproc) && \
- make install && \
- cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
- ## shared build
- #pushd allegro5 && \
- #cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_shared -DSHARED=on -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
- #make -j $$(nproc) && \
- #sudo make install && \
- #sudo cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
-
- package:
- rm -rf out
- mkdir -p out/opt/cppse/build/allegro5/
- cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
- rm -rf allegro5_1.0_amd64.deb
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n allegro5 --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "allegro5 - build dependency" --url "https://github.com/liballeg/allegro5.git" --deb-generate-changes -C /src/out
-
- clean:
- rm -rf allegro5
- rm -rf out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash
|