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.

144 line
7.7KB

  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. ubuntu2204:
  18. git clone https://github.com/liballeg/allegro5.git
  19. pushd allegro5 && git checkout 5.2.5.0
  20. bash ../ubuntu2204.sh make impl
  21. make package-ubuntu2204
  22. bash ../ubuntu2204.sh make impl_sdl
  23. make package_sdl-ubuntu2204
  24. bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  25. prep:
  26. apt-get update
  27. apt-get install -y freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev \
  28. libxcursor-dev libavfilter-dev \
  29. libpng-dev libjpeg-dev libfreetype6-dev \
  30. libxrandr-dev libxinerama-dev libxi-dev \
  31. libgtk2.0-dev libsdl2-dev
  32. switch-to-latest-clang
  33. impl:
  34. make prep
  35. # static build
  36. pushd allegro5 && \
  37. cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_static -DSHARED=off -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  38. make -j $$(nproc) && \
  39. make install && \
  40. cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  41. ## shared build
  42. #pushd allegro5 && \
  43. #cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_shared -DSHARED=on -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  44. #make -j $$(nproc) && \
  45. #sudo make install && \
  46. #sudo cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  47. prep_sdl:
  48. make prep
  49. apt-get install -y libsdl2-dev
  50. impl_sdl:
  51. make prep_sdl
  52. # static build
  53. pushd allegro5 && \
  54. cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/allegro5_static -DALLEGRO_SDL=on -DSHARED=off -DSTATIC=on -DWANT_FFMPEG=off -DWANT_TTF=on . && \
  55. make -j $$(nproc) && \
  56. make install && \
  57. cp -prv lib/pkgconfig/allegro* /usr/share/pkgconfig/
  58. package-ubuntu1804:
  59. rm -rf out
  60. mkdir -p out/opt/cppse/build/allegro5/
  61. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
  62. # with one exception I'm relying on internals of allegro5 for one file..
  63. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5/include/allegro5/internal/aintern_bitmap.h
  64. # since above file also includes others, let's just sync the entire internal dir
  65. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5/include/allegro5/internal/
  66. # somewhere also platform became needed, let's pull those in as well
  67. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5/include/allegro5/platform/
  68. rm -rf allegro5_*_amd64.deb
  69. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.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
  70. package_sdl-ubuntu1804:
  71. rm -rf out
  72. mkdir -p out/opt/cppse/build/allegro5sdl/
  73. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5sdl/
  74. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5sdl/include/allegro5/internal/aintern_bitmap.h
  75. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5sdl/include/allegro5/internal/
  76. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5sdl/include/allegro5/platform/
  77. rm -rf allegro5sdl_*_amd64.deb
  78. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.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
  79. package-ubuntu2004:
  80. rm -rf out
  81. mkdir -p out/opt/cppse/build/allegro5/
  82. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
  83. # with one exception I'm relying on internals of allegro5 for one file..
  84. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5/include/allegro5/internal/aintern_bitmap.h
  85. # since above file also includes others, let's just sync the entire internal dir
  86. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5/include/allegro5/internal/
  87. # somewhere also platform became needed, let's pull those in as well
  88. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5/include/allegro5/platform/
  89. rm -rf allegro5_*_amd64.deb
  90. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.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
  91. package-ubuntu2204:
  92. rm -rf out
  93. mkdir -p out/opt/cppse/build/allegro5/
  94. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5/
  95. # with one exception I'm relying on internals of allegro5 for one file..
  96. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5/include/allegro5/internal/aintern_bitmap.h
  97. # since above file also includes others, let's just sync the entire internal dir
  98. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5/include/allegro5/internal/
  99. # somewhere also platform became needed, let's pull those in as well
  100. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5/include/allegro5/platform/
  101. rm -rf allegro5_*_amd64.deb
  102. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.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
  103. package_sdl-ubuntu2004:
  104. rm -rf out
  105. mkdir -p out/opt/cppse/build/allegro5sdl/
  106. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5sdl/
  107. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5sdl/include/allegro5/internal/aintern_bitmap.h
  108. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5sdl/include/allegro5/internal/
  109. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5sdl/include/allegro5/platform/
  110. rm -rf allegro5sdl_*_amd64.deb
  111. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.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
  112. package_sdl-ubuntu2204:
  113. rm -rf out
  114. mkdir -p out/opt/cppse/build/allegro5sdl/
  115. cp -prv allegro5/allegro5_static/* out/opt/cppse/build/allegro5sdl/
  116. cp -prv allegro5/include/allegro5/internal/aintern_bitmap.h out/opt/cppse/build/allegro5sdl/include/allegro5/internal/aintern_bitmap.h
  117. cp -prv allegro5/include/allegro5/internal/* out/opt/cppse/build/allegro5sdl/include/allegro5/internal/
  118. cp -prv allegro5/include/allegro5/platform/* out/opt/cppse/build/allegro5sdl/include/allegro5/platform/
  119. rm -rf allegro5sdl_*_amd64.deb
  120. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.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
  121. clean:
  122. rm -rf allegro5
  123. rm -rf out
  124. rm -rf allegro5*.deb
  125. rm -rf allegro5*.changes
  126. shell:
  127. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash