Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Avoid unneeded library dependencies reported by dpkg-shlibdeps.
4 DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
5 DEB_BUILD_MAINT_OPTIONS := hardening=+all
6
7 include /usr/share/dpkg/architecture.mk
8 include /usr/share/dpkg/buildflags.mk
9 include /usr/share/dpkg/pkg-info.mk
10
11 #ifeq ($(DEB_HOST_ARCH), hurd-i386)
12 # LSPSERVER=--disable-lsp
13 #endif
14
15 %:
16 dh $@ --with python3
17
18 override_dh_auto_configure:
19 dh_auto_configure -- --enable-gc=system \
20 --with-latex=/usr/share/texmf/tex/latex \
21 --with-context=/usr/share/texmf/tex/context/third $(LSPSERVER)\
22 $(foreach v,CFLAGS CPPFLAGS CXXFLAGS LDFLAGS,'$(v)=$($(v))')
23
24 # Avoid a warning every time asy is run if HOME is unset.
25 export ASYMPTOTE_HOME := $(CURDIR)/debian/tmp_asymptote_home
26 override_dh_auto_configure: | $(ASYMPTOTE_HOME)
27 $(ASYMPTOTE_HOME):
28 mkdir $(ASYMPTOTE_HOME)
29
30 override_dh_auto_build:
31 make -j4 asy
32 make man
33 make all html
34 # fix location of images in info document
35 sed -e 's!image src="\([^"]*\)"!image src="/usr/share/doc/asymptote/html/\1"!g' < doc/png/asymptote.info > doc/png/asymptote.info.fixed
36 mv doc/png/asymptote.info.fixed doc/png/asymptote.info
37
38 override_dh_auto_install:
39 make install-asy DESTDIR=$(CURDIR)/debian/tmp
40 dh_installtex -pasymptote
41
42 #override_dh_auto_test:
43 # : do nothing here, otherwise make tries to compile prc/test.cc
44
45 override_dh_python3:
46 dh_python3 -Nasymptote-x11
47 dh_python3 -pasymptote-x11 /usr/share/asymptote/GUI
48
49 override_dh_compress:
50 dh_compress -X.pdf
51
52 override_dh_fixperms:
53 dh_fixperms -X usr/share/asymptote/GUI/xasy.py
54
55 override_dh_clean:
56 dh_clean
57 rm --force doc/*.aux doc/*.cp doc/*.cps doc/*.idx doc/*.ins doc/*.log doc/*.toc
58 rm -fr $(ASYMPTOTE_HOME)