File: rules

package info (click to toggle)
supercollider 1%3A3.4.5-1wheezy1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,972 kB
  • sloc: cpp: 116,645; lisp: 64,914; ansic: 10,725; python: 3,548; perl: 766; ruby: 487; sh: 152; makefile: 117; xml: 13
file content (80 lines) | stat: -rwxr-xr-x 3,386 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /usr/bin/make -f

include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/scons.mk

DEB_SRCDIR=common

# Add here any variable or target overrides you need.
DEB_DH_INSTALL_SOURCEDIR=debian/tmp
export CDBS_NO_DOC_SYMLINKING:=1

# G++ 4.7 ICEs, so use 4.6
CC=gcc-4.6
CXX=g++-4.6

# Do not enable parallel building: scons cannot handle parallel
# builds when the chdir option is used in any command
# DEB_BUILD_PARALLEL = 1

DEB_INSTALL_DOCS_supercollider             = "README LINUX" common/build/README
DEB_INSTALL_DOCS_supercollider-server      = "README LINUX" common/build/README
DEB_INSTALL_DOCS_supercollider-emacs       = editors/scel/README
DEB_INSTALL_DOCS_supercollider-vim         = editors/scvim/README editors/scvim/SCVim.scd
DEB_INSTALL_CHANGELOGS_ALL                 = common/build/ChangeLog

DEB_INSTALL_MANPAGES_supercollider-server  = debian/scsynth.1
DEB_INSTALL_MANPAGES_supercollider         = debian/sclang.1
DEB_INSTALL_MANPAGES_supercollider-vim     = debian/scvim.1 debian/scvim_make_help.1 debian/sclangpipe_app.1

# recent SVN revisions also install examples to $(DEB_DESTDIR)/usr/share
DEB_INSTALL_EXAMPLES_supercollider         = common/build/examples/*
DEB_INSTALL_DIRS_supercollider             = usr/share/SuperCollider/Extensions

# SCVIM/SCED=0 here, because we install them by hand below
# (so that the build won't break)
# Also STRIP=0 since we let cdbs (dh_strip) decide whether to strip
DEB_SCONS_OPTIONS = DEVELOPMENT=yes PREFIX=/usr CROSSCOMPILE=1 CURL=0 SCVIM=0 SCED=0 STRIP=0
# Handle DEB_BUILD_OPTIONS (see policy 4.9.1)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	DEB_SCONS_OPTIONS += "DEBUG=1"
endif

DEB_SCONS_INSTALL_TARGET = DESTDIR=$(DEB_DESTDIR) install

# The build system apparently can't handle this
CXXFLAGS =

clean:: scons-clean
scons-clean::
	dh_testdir
	scons -C common $(SCONS_FLAGS) --clean scrub
	rm -f common/.sconsign.dblite
	rm -f editors/scvim/.sconsign.dblite
	rm -f editors/sced/.sconsign.dblite
	# also remove some files, that SCons forgets about
	rm -f editors/scel/el/sclang-vars.el
	rm -f linux/libsclang.pc
	rm -f linux/libscplugin.pc
	rm -f linux/libscsynth.pc

common-install-arch common-install-indep:: common-install-impl
common-install-impl::
	scons --install-sandbox=$(DEB_DESTDIR) --directory=editors/scvim PREFIX=/usr VIMFILE_DIR=/usr/share/vim/addons install-all
	scons --install-sandbox=$(DEB_DESTDIR) --directory=editors/sced PREFIX=/usr install
	# fixing some executables in class library and docs for happier lintian
	find $(DEB_DESTDIR)/usr/share/SuperCollider -type d -exec chmod 755 {} \;; \
	find $(DEB_DESTDIR)/usr/share/SuperCollider -type f -exec chmod 644 {} \;; \
	# vim-addon-manager stuff
	install -d $(DEB_DESTDIR)/usr/share/vim/registry
	install -m 644 debian/supercollider-vim.yaml $(DEB_DESTDIR)/usr/share/vim/registry
	# lintian overrides
	install -m 644 debian/README.extensions $(DEB_DESTDIR)/usr/share/SuperCollider/Extensions/README
	# icons and metadata for freedesktop-style menu entries
	install -d $(DEB_DESTDIR)/usr/share/applications
	install -m 644 debian/*.desktop $(DEB_DESTDIR)/usr/share/applications
	install -d $(DEB_DESTDIR)/usr/share/pixmaps
	install -m 644 linux/icons/supercollider.xpm $(DEB_DESTDIR)/usr/share/pixmaps
	install -m 644 linux/icons/supercollider.png $(DEB_DESTDIR)/usr/share/pixmaps