File: rules

package info (click to toggle)
xilinx-bootgen 2022.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,492 kB
  • sloc: cpp: 36,509; ansic: 14,137; yacc: 1,300; lex: 651; makefile: 54
file content (16 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf --exclude=.la

override_dh_auto_configure:
	if dpkg-vendor --derives-from Ubuntu; then \
	  sed -i \
	    -e '/^Description: .*$$/i Provides: bootgen-xlnx (= $${source:Version})' \
	    -e '/^Description: .*$$/i Breaks: bootgen-xlnx (<= 2022.1-0ubuntu1)' \
	    -e '/^Description: .*$$/i Replaces: bootgen-xlnx (<= 2022.1-0ubuntu1)' \
	    debian/control; \
	fi
	dh_auto_configure -- --enable-static