Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

175 linhas
9.8KB

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