File: rules

package info (click to toggle)
glew 2.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 10,804 kB
  • sloc: ansic: 70,763; sh: 1,596; perl: 910; makefile: 629; python: 147
file content (52 lines) | stat: -rwxr-xr-x 1,279 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f
# (C) 2003 Marcelo E. Magallon <mmagallo@debian.org>
# (C) 2006-2011 Joost Yervante Damad <andete@debian.org>
# (C) 2012 Matteo F. Vescovi <mfv.debian@gmail.com>
# (C) 2020 Alastair McKinstry <mckinstry@debian.org>

export DH_VERBOSE=1
# export DH_NO_ACT
# export DH_OPTIONS

# The magic debhelper  rule
%:
	dh $@ 

include /usr/share/dpkg/architecture.mk

DPKG_EXPORT_BUILDFLAGS = 1
DEB_CFLAGS_MAINT_APPEND = -Wall -g
include /usr/share/dpkg/buildflags.mk

# let dh_strip strip
export STRIP=true
export INSTALL=install --strip-program=true


override_dh_auto_configure:
	rm -f config/config.guess
	ln -sf /usr/share/misc/config.guess config/

override_dh_auto_build:
	dh_auto_build -- \
		GL_LDFLAGS=-lGL \
		GLU_LDFLAGS=-lGLU \
		GLUT_LDFLAGS=-lglut \
		LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		'LD=$$(CC)' \
		SYSTEM=$(firstword $(subst -, ,$(DEB_HOST_GNU_SYSTEM))) \
		'OPT=$(CFLAGS)'
	dh_installdirs
	$(MAKE) install.all GLEW_DEST=$(CURDIR)/debian/tmp/usr LIBDIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_clean:
	rm -f config/config.guess
	ln -sf /usr/share/misc/config.guess config/
	dh_auto_clean

override_dh_strip:
	dh_strip --dbgsym-migration="libglew-dbg (<< 2.0.0-5)"

debian/%.1: debian/%.sgml
	docbook-to-man $< > $@