No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

71 líneas
2.9KB

  1. SHELL:=/bin/bash
  2. VERSION:=1.0.0
  3. build: cppse-inotify-cpp_$(VERSION)_amd64.deb
  4. cppse-inotify-cpp_$(VERSION)_amd64.deb:
  5. make ubuntu2404
  6. ubuntu2004:
  7. # check out revision that is master at the time of writing
  8. git clone https://github.com/erikzenker/inotify-cpp || true
  9. pushd inotify-cpp && \
  10. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  11. popd && \
  12. bash ../ubuntu2004.sh make impl
  13. make package-ubuntu2004
  14. ubuntu2204:
  15. # check out revision that is master at the time of writing
  16. git clone https://github.com/erikzenker/inotify-cpp || true
  17. pushd inotify-cpp && \
  18. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  19. popd && \
  20. bash ../ubuntu2204.sh make impl
  21. make package-ubuntu2204
  22. ubuntu2404:
  23. # check out revision that is master at the time of writing
  24. git clone https://github.com/erikzenker/inotify-cpp || true
  25. pushd inotify-cpp && \
  26. git checkout 1a4413637a08f6303526a2be140806f5abaaffd5 && \
  27. popd && \
  28. bash ../ubuntu2404.sh make impl
  29. make package-ubuntu2404
  30. impl:
  31. dpkg -i ../boost/cppse-boost_*.deb
  32. pushd inotify-cpp && \
  33. cmake -DCMAKE_INSTALL_PREFIX=$$PWD/../inotify-cpp_out -DBUILD_EXAMPLE=OFF -DBUILD_TEST=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DUSE_BOOST_FILESYSTEM=OFF -DBoost_USE_STATIC_LIBS=ON -DBOOST_ROOT="/opt/cppse/build/boost/" -DBoost_INCLUDE_DIR="/opt/cppse/build/boost/include" . && \
  34. make -j8 && \
  35. make install
  36. package-ubuntu2004:
  37. rm -rf out
  38. mkdir -p out/opt/cppse/build/inotify-cpp
  39. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  40. rm -rf cppse_inotify-cpp_*_amd64.deb
  41. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  42. package-ubuntu2204:
  43. rm -rf out
  44. mkdir -p out/opt/cppse/build/inotify-cpp
  45. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  46. rm -rf cppse_inotify-cpp_*_amd64.deb
  47. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  48. package-ubuntu2404:
  49. rm -rf out
  50. mkdir -p out/opt/cppse/build/inotify-cpp
  51. cp -prv inotify-cpp_out/* out/opt/cppse/build/inotify-cpp/
  52. rm -rf cppse_inotify-cpp_*_amd64.deb
  53. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v $(VERSION) -s dir -t deb -n cppse-inotify-cpp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "inotify-cpp - build dependency" --url "https://github.com/erikzenker/inotify-cpp" --deb-generate-changes -C /src/out
  54. clean:
  55. sudo rm -rf inotify-cpp*
  56. sudo rm -rf out
  57. shell:
  58. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash