Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

112 rindas
5.6KB

  1. SHELL:=/bin/bash
  2. ubuntu1804:
  3. git clone https://github.com/liballeg/allegro5.git
  4. pushd allegro5 && git checkout 5.2.5.0
  5. bash ../ubuntu1804.sh make impl
  6. make package-ubuntu1804
  7. bash ../ubuntu1804.sh make impl_sdl
  8. make package_sdl-ubuntu1804
  9. ubuntu2004:
  10. git clone https://github.com/liballeg/allegro5.git
  11. pushd allegro5 && git checkout 5.2.5.0
  12. bash ../ubuntu2004.sh make impl
  13. make package-ubuntu2004
  14. bash ../ubuntu2004.sh make impl_sdl
  15. make package_sdl-ubuntu2004
  16. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  17. prep:
  18. apt-get update
  19. apt-get install -y freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \
  20. libxcursor-dev libavfilter-dev \
  21. libpng-dev libjpeg-dev libfreetype6-dev \
  22. libxrandr-dev libxinerama-dev libxi-dev \
  23. libgtk2.0-dev libsdl2-dev
  24. switch-to-latest-clang
  25. impl:
  26. make prep
  27. # static build
  28. pushd allegro5 && \
  29. cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_static -DSHARED=off -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  30. make -j $$(nproc) && \
  31. make install && \
  32. cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  33. ## shared build
  34. #pushd allegro5 && \
  35. #cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_shared -DSHARED=on -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  36. #make -j $$(nproc) && \
  37. #sudo make install && \
  38. #sudo cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  39. prep_sdl:
  40. make prep
  41. apt-get install -y libsdl2-dev
  42. impl_sdl:
  43. make prep_sdl
  44. # static build
  45. pushd allegro5 && \
  46. cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_static -DALLEGRO_SDL=on -DSHARED=off -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  47. make -j $$(nproc) && \
  48. make install && \
  49. cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  50. package-ubuntu1804:
  51. rm -rf out
  52. mkdir -p out/opt/cppse/build/allegro5/
  53. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
  54. # with one exception I'm relying on internals of allegro5 for one file..
  55. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5/include/allegro5/internal/aintern_bitmap.h
  56. # since above file also includes others, let's just sync the entire internal dir
  57. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5/include/allegro5/internal/
  58. # somewhere also platform became needed, let's pull those in as well
  59. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5/include/allegro5/platform/
  60. rm -rf allegro5_*_amd64.deb
  61. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -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
  62. package_sdl-ubuntu1804:
  63. rm -rf out
  64. mkdir -p out/opt/cppse/build/allegro5sdl/
  65. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5sdl/
  66. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5sdl/include/allegro5/internal/aintern_bitmap.h
  67. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5sdl/include/allegro5/internal/
  68. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5sdl/include/allegro5/platform/
  69. rm -rf allegro5sdl_*_amd64.deb
  70. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n allegro5sdl --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "allegro5 - SDL version - build dependency" --url "https://github.com/liballeg/allegro5.git" --deb-generate-changes -C /src/out
  71. package-ubuntu2004:
  72. rm -rf out
  73. mkdir -p out/opt/cppse/build/allegro5/
  74. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
  75. # with one exception I'm relying on internals of allegro5 for one file..
  76. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5/include/allegro5/internal/aintern_bitmap.h
  77. # since above file also includes others, let's just sync the entire internal dir
  78. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5/include/allegro5/internal/
  79. # somewhere also platform became needed, let's pull those in as well
  80. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5/include/allegro5/platform/
  81. rm -rf allegro5_*_amd64.deb
  82. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -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
  83. package_sdl-ubuntu2004:
  84. rm -rf out
  85. mkdir -p out/opt/cppse/build/allegro5sdl/
  86. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5sdl/
  87. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5sdl/include/allegro5/internal/aintern_bitmap.h
  88. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5sdl/include/allegro5/internal/
  89. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5sdl/include/allegro5/platform/
  90. rm -rf allegro5sdl_*_amd64.deb
  91. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n allegro5sdl --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "allegro5 - SDL version - build dependency" --url "https://github.com/liballeg/allegro5.git" --deb-generate-changes -C /src/out
  92. clean:
  93. rm -rf allegro5
  94. rm -rf out
  95. rm -rf allegro5*.deb
  96. rm -rf allegro5*.changes
  97. shell:
  98. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash