選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

67 行
2.3KB

  1. SHELL:=/bin/bash
  2. ubuntu2204:
  3. mkdir -p $$PWD/../out
  4. # check out revision that is master at the time of writing
  5. git clone -b v1.1.0 https://github.com/redis/hiredis || true
  6. bash ../ubuntu2204.sh make hiredis
  7. git clone -b 1.3.6 https://github.com/sewenew/redis-plus-plus || true
  8. bash ../ubuntu2204.sh make redis-plus-plus
  9. make package-ubuntu2204
  10. ubuntu2404:
  11. mkdir -p $$PWD/../out
  12. # check out revision that is master at the time of writing
  13. git clone -b v1.2.0 https://github.com/redis/hiredis || true
  14. bash ../ubuntu2404.sh make hiredis
  15. git clone -b 1.3.13 https://github.com/sewenew/redis-plus-plus || true
  16. bash ../ubuntu2404.sh make redis-plus-plus
  17. make package-ubuntu2404
  18. .PHONY : hiredis
  19. hiredis:
  20. pushd hiredis && \
  21. cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=$$PWD/../out/hiredis -DENABLE_SSL=off -DBUILD_SHARED_LIBS=OFF . && \
  22. make USE_SSL=0 && \
  23. make PREFIX=$$PWD/../out/hiredis USE_SSL=0 install && \
  24. popd
  25. .PHONY : redis-plus-plus
  26. redis-plus-plus:
  27. pushd redis-plus-plus && \
  28. mkdir -p build && \
  29. pushd build && \
  30. cmake -DCMAKE_PREFIX_PATH=$$PWD/../../out/hiredis -DCMAKE_INSTALL_PREFIX=$$PWD/../../out/redis-plus-plus -DREDIS_PLUS_PLUS_BUILD_STATIC=ON -DREDIS_PLUS_PLUS_USE_TLS=OFF .. && \
  31. make -j 8 && \
  32. make install && \
  33. cd ..
  34. package-ubuntu2204:
  35. rm -rf pkg_out
  36. mkdir -p pkg_out/opt/cppse/build/
  37. rsync -raPv out/ pkg_out/opt/cppse/build/
  38. rm -rf redis-plus-plus*amd64.deb
  39. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out
  40. package-ubuntu2404:
  41. rm -rf pkg_out
  42. mkdir -p pkg_out/opt/cppse/build/
  43. rsync -raPv out/ pkg_out/opt/cppse/build/
  44. rm -rf redis-plus-plus*amd64.deb
  45. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out
  46. clean:
  47. sudo rm -rf hiredis
  48. sudo rm -rf redis-plus-plus
  49. sudo rm -rf out
  50. sudo rm -rf pkg_out
  51. shell:
  52. FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash