Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 include /usr/share/dpkg/architecture.mk
5 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
6 CROSS = CROSS=$(DEB_HOST_GNU_TYPE)- PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
7 endif
8
9 # The following architectures need the -latomic flag
10 # to build, otherwise we FTBFS with
11 # ./track_info.c:47: undefined reference to `__atomic_fetch_add_8'
12 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935678
13 # Depends on 13-atomic_ld.patch
14 ifneq (,$(findstring $(DEB_HOST_ARCH), m68k powerpc sh4))
15 export LDLIBS += -latomic
16 endif
17
18 DEB_CFLAGS_MAINT_APPEND += -I/usr/include/ncursesw
19 DEB_BUILD_MAINT_OPTIONS = hardening=+all
20 DPKG_EXPORT_BUILDFLAGS = 1
21 include /usr/share/dpkg/buildflags.mk
22
23 suggested_deps = alsa jack
24
25 EXTRA_CMUS_DIR_OP_PLUGINS = debian/cmus/usr/lib/cmus/op/
26 EXTRA_CMUS_PLUGINS := $(foreach plugin,$(suggested_deps),$(plugin).so)
27
28 %:
29 dh $@
30
31 override_dh_auto_configure:
32 $(CROSS) ./configure \
33 prefix=/usr \
34 CONFIG_ARTS=n \
35 CONFIG_ROAR=n \
36 DEBUG=0
37
38 override_dh_auto_build:
39 # Pass V=2 to make to enable verbose build logs, which is useful for
40 # porters, sorting out build hardening issues, etc.
41 dh_auto_build -- V=2
42
43 override_dh_shlibdeps:
44 dh_shlibdeps -pcmus $(foreach plugin,$(EXTRA_CMUS_PLUGINS),-X$(plugin))
45 dpkg-shlibdeps -O -dSuggests \
46 $(foreach plugin,$(EXTRA_CMUS_PLUGINS),$(EXTRA_CMUS_DIR_OP_PLUGINS)$(plugin)) \
47 >> debian/cmus.substvars
48 dh_shlibdeps --remaining-packages