File: rules

package info (click to toggle)
read-edid 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 176 kB
  • ctags: 151
  • sloc: ansic: 1,065; makefile: 22
file content (31 lines) | stat: -rwxr-xr-x 1,027 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

%:
	dh $@

override_dh_auto_configure:
ifeq ($(DEB_HOST_ARCH_OS), $(filter $(DEB_HOST_ARCH_OS), linux)) 
ifeq ($(DEB_HOST_ARCH), $(filter $(DEB_HOST_ARCH), amd64 i386 x32))
	# amd64, i386, x32 and linux
	dh_auto_configure -- -DCLASSICBUILD=YES -DI2CBUILD=YES
else
	# not amd64, i386, x32 but linux
	dh_auto_configure -- -DCLASSICBUILD=NO -DI2CBUILD=YES
endif
else #not linux: kfree, hurd ... 
ifeq ($(DEB_HOST_ARCH_CPU), $(filter $(DEB_HOST_ARCH_CPU), amd64 i386))
	#kfree-amd64, kfree-i386, hurd-i386, 3
	dh_auto_configure -- -DI2CBUILD=NO -DCLASSICBUILD=YES
endif
endif 

override_dh_compress:
	dh_compress
	dh_link usr/share/man/man1/get-edid.1.gz usr/share/man/man1/parse-edid.1.gz