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.

44 line
1.5KB

  1. SHELL:=/bin/bash
  2. UBUNTU_VERSION ?= 2404
  3. CODENAME ?= noble
  4. VERSION:=0.1.7
  5. build: $(CODENAME)/cppse-fastpfor_$(VERSION)_amd64.deb
  6. $(CODENAME)/cppse-fastpfor_$(VERSION)_amd64.deb:
  7. mkdir -p $(CODENAME)
  8. make ubuntu$(UBUNTU_VERSION)
  9. ubuntu$(UBUNTU_VERSION):
  10. git clone https://github.com/rayburgemeestre/FastPFor || true
  11. pushd FastPFor && git checkout change-google-test-branch # master at the time of writing
  12. bash ../ubuntu$(UBUNTU_VERSION).sh make impl
  13. make package-ubuntu$(UBUNTU_VERSION)
  14. bash ../ubuntu$(UBUNTU_VERSION).sh chown $$(id -u):$$(id -g) . -R # fix permissions
  15. impl:
  16. patch FastPFor/CMakeLists.txt libcpp.patch
  17. switch-to-latest-clang
  18. pushd FastPFor && \
  19. CXX=$$(which c++) cmake . && \
  20. make -j $$(nproc)
  21. package-ubuntu$(UBUNTU_VERSION):
  22. rm -rf out
  23. mkdir -p out/opt/cppse/build/fastpfor/lib
  24. mkdir -p out/opt/cppse/build/fastpfor/include
  25. cp -prv ./FastPFor/libFastPFOR.a out/opt/cppse/build/fastpfor/lib/
  26. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  27. rm -rf $(CODENAME)/cppse-fastpfor_*_amd64.deb
  28. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -s dir -t deb -n cppse-fastpfor --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out
  29. cp -prv cppse-fastpfor_*_amd64.deb $(CODENAME)/
  30. clean:
  31. rm -rf FastPFor
  32. rm -rf out
  33. shell:
  34. FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash