| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all optimize=+lto abi=+time64 |
| 4 |
export DEB_CFLAGS_MAINT_APPENDscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_CFLAGS_MAINT_APPEND. = -Wall -pedantic |
| 5 |
|
| 6 |
%scip-debian debian libgpiod 2.2.5-1 libgpiod/rules/`%`().: |
| 7 |
ifeq ($(filterscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/filter. nopython,$(DEB_BUILD_PROFILESscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_PROFILES.)),) |
| 8 |
dh $@ --with python3 --exclude=.la |
| 9 |
else |
| 10 |
dh $@ --exclude=.la |
| 11 |
endif |
| 12 |
|
| 13 |
override_dh_auto_configurescip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_auto_configure().: |
| 14 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- \ |
| 15 |
--enable-tools=yes \ |
| 16 |
--enable-bindings-cxx \ |
| 17 |
$(NULLscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/NULL.) |
| 18 |
if ! echo "$(DEB_BUILD_PROFILESscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_PROFILES.)" | grep -q "nopython"; then \ |
| 19 |
pybuild --configure -d bindings/python/; \ |
| 20 |
fi |
| 21 |
|
| 22 |
override_dh_auto_buildscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_auto_build().: |
| 23 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). |
| 24 |
if ! echo "$(DEB_BUILD_PROFILESscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_PROFILES.)" | grep -q "nopython"; then \ |
| 25 |
CFLAGS="$(shell dpkg-buildflags --get CFLAGS) -I $(CURDIRscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/CURDIR.)/include -I $(CURDIRscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/CURDIR.)/tests/gpiosim/" \ |
| 26 |
LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS) -L $(CURDIRscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/CURDIR.)/lib/.libs/ -L $(CURDIRscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/CURDIR.)/tests/gpiosim/.libs/" \ |
| 27 |
pybuild --build -s pyproject -d bindings/python/; \ |
| 28 |
fi |
| 29 |
if ! echo "$(DEB_BUILD_OPTIONSscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_OPTIONS.)" | grep -q "nodoc"; then \ |
| 30 |
if command -v doxygen >/dev/null; then \ |
| 31 |
cd docs && doxygen Doxyfile; \ |
| 32 |
else \ |
| 33 |
echo "Warning: doxygen not found. Skipping documentation build."; \ |
| 34 |
fi; \ |
| 35 |
fi |
| 36 |
|
| 37 |
|
| 38 |
override_dh_auto_build-indepscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_auto_build-indep().: |
| 39 |
ifeq (,$(filterscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_OPTIONS.))) |
| 40 |
dh_auto_build -- doc |
| 41 |
endif |
| 42 |
|
| 43 |
|
| 44 |
override_dh_auto_install-indepscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_auto_install-indep().: |
| 45 |
|
| 46 |
override_dh_auto_installscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_auto_install().: |
| 47 |
dh_auto_installscip-debian debian debhelper . dh_auto_install(). |
| 48 |
if ! echo "$(DEB_BUILD_PROFILESscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/DEB_BUILD_PROFILES.)" | grep -q "nopython"; then \ |
| 49 |
pybuild --install -s pyproject -d bindings/python/; \ |
| 50 |
fi |
| 51 |
|
| 52 |
override_dh_installdocsscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_installdocs().: |
| 53 |
|
| 54 |
dh_installdocsscip-debian debian debhelper . dh_installdocs(). -X.md5 |
| 55 |
|
| 56 |
override_dh_cleanscip-debian debian libgpiod 2.2.5-1 libgpiod/rules/override_dh_clean().: |
| 57 |
dh_cleanscip-debian debian debhelper . dh_clean(). |
| 58 |
rm -rf confdefs.h |
| 59 |
rm -rf doc/* |