Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:telephony-ithod
broadvoice16
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package broadvoice16
#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # Set debhelper options # DEB_BUILD_OPTIONS=nocheck export PACKAGE=broadvoice16 export VERSION=1.2 export DIR_WHERE_FIRST_CMAKELISTS_DOT_TEXT_IS=buildstartshere # Get some information about the machine we are building on: export numberOfProcessorsOnMachine=$(shell nproc) export wantedJobs=$(shell echo "1.25*$(numberOfProcessorsOnMachine)" | bc -l) export jobsIget=$(shell echo $(wantedJobs) | awk '{print int($$1+0.5)}') export TOTAL_DISK = $(shell df -h --total | awk 'END{print $$2}') export FREEMEM = $(shell free --mega) export TOTAL_MEM = $(shell free --total --mega | xargs | awk '{print $$19"MB"}') export TOTAL_RAM = $(shell free --total --mega | xargs | awk '{print $$8"MB"}') export TOTAL_SWAP = $(shell free --total --mega | xargs | awk '{print $$15"MB"}') #export static=false export static=0 #export shared=true export shared=1 #export tools=true export tools=1 export uploaddir=/usr/src/packages/SOURCES export builddir=/usr/src/packages/BUILD export sourcedir=/home/abuild/src export VERSION_CODENAME = $(shell cat /etc/os-release | grep VERSION_CODENAME | awk -F= '{print $$2}') export VERSION_ID = $(shell cat /etc/os-release | grep VERSION_ID | awk -F= '{print $$2}') %: echo echo "----- Entering section % -----" echo # dh $@ # dh $@ --buildsystem=cmake # dh $@ --buildsystem=cmake --builddirectory=$(DIR_WHERE_FIRST_CMAKELISTS_DOT_TEXT_IS) --parallel --max-parallel=$(jobsIget) # dh $@ --buildsystem=cmake --parallel --max-parallel=$(jobsIget) dh $@ --buildsystem=meson echo echo "----- Exiting section % -----" echo override_dh_auto_configure: echo echo "--- Start override_dh_auto_configure: ---" echo cp $(uploaddir)/COPYING $(uploaddir)/README $(uploaddir)/README.SUSE $(builddir) cp $(uploaddir)/meson_options.txt $(uploaddir)/meson.build $(builddir)/FloatingPoint echo echo "--- End override_dh_auto_configure: ---" echo override_dh_update_autotools_config: echo echo "--- Start override_dh_update_autotools_config: ---" echo echo "Skipping running override_dh_update_autotools_config" echo echo "--- End override_dh_update_autotools_config: ---" echo override_dh_autoreconf: echo echo "--- Start override_dh_autoreconf: ---" echo echo "Skipping running dh_autoreconf" echo echo "--- End override_dh_autoreconf: ---" echo override_dh_auto_build: echo echo "--- Start override_dh_auto_build: ---" echo echo "--- Machine data we are building on ---" echo "Total disk: $$TOTAL_DISK" echo "Output of free -h:" echo "$$FREEMEM" echo "Total memory: $$TOTAL_MEM" echo "Total RAM: $$TOTAL_RAM" echo "Total SWAP: $$TOTAL_SWAP" echo "numberOfProcessorsOnMachine=$$numberOfProcessorsOnMachine" echo "wantedJobs=$$wantedJobs" echo "jobsIget=$$jobsIget" echo "--- End machine data we are building on ---" echo echo $(shell cat /etc/os-release | grep VERSION_CODENAME | awk -F= '{print $$2}') echo $(shell cat /etc/os-release | grep VERSION_ID | awk -F= '{print $$2}') echo $$(VERSION_CODENAME)=$(VERSION_CODENAME) echo $$(VERSION_ID)=$(VERSION_ID) if [ "$(VERSION_CODENAME)" = "trixie" ] || [ "$(VERSION_ID)" = "23.10" ]; then echo "Debian Unstable" ; echo "Build directory /usr/src/packages/BUILD cannot be a parent of source directory /usr/src/packages/BUILD/FloatingPoint" ; mkdir -pv $(sourcedir) ; mv -v $(builddir)/FloatingPoint $(sourcedir) ; meson setup --reconfigure -Dstatic_libs=false -Dprefix=/usr/src/packages/BUILD/debian/tmp/usr $(sourcedir)/FloatingPoint ; else echo "Debian12, Ubuntu 22-23" ; meson $(builddir)/FloatingPoint -Dstatic_libs=false -Dprefix=/usr/src/packages/BUILD/debian/tmp/usr ; fi echo echo "--- Show files ---" find /usr/src/packages echo "--- End show files ---" echo ninja -C $(builddir) -j $(jobsIget) echo echo "--- End override_dh_auto_build: ---" echo override_dh_auto_test: echo echo "--- Start override_dh_auto_test: ---" echo echo "Skipping running dh_auto_test" echo echo "--- End override_dh_auto_test: ---" echo override_dh_auto_install: echo echo "--- Start override_dh_auto_install: ---" echo ninja -C $(builddir) install -j $(jobsIget) echo echo "--- End override_dh_auto_install: ---" echo execute_after_dh_install: echo echo "--- Start execute_before_dh_auto_install: ---" echo echo "--- Show files ---" find /usr/src/packages/BUILD/debian/tmp echo "--- End show files ---" echo echo "--- End execute_before_dh_auto_install: ---" echo
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor