File: rules

package info (click to toggle)
devil 1.7.8-10
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 9,796 kB
  • sloc: ansic: 45,835; sh: 15,558; cpp: 4,009; python: 1,300; pascal: 792; makefile: 307; cs: 192; fortran: 5
file content (25 lines) | stat: -rwxr-xr-x 685 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DEB_CFLAGS_MAINT_APPEND = -DGLX_GLXEXT_LEGACY
DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -lm -lXpm -lXcursor -lpthread -ldl -lXxf86vm

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBUG_FLAGS = --disable-release
endif

%:
	dh $@ --parallel --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-static=yes --enable-shared=yes \
		$(DEBUG_FLAGS) \
		--enable-IL=yes --enable-ILU=yes --enable-ILUT=yes

override_dh_auto_install:
	dh_auto_install
	rm debian/tmp/usr/share/info/DevIL_manual.info
	rm -f debian/tmp/usr/share/info/dir
	for file in debian/tmp/usr/lib/*/*.la; do \
	sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
	done