debian swirl logo

Back to the packages list supercollider

#! /usr/bin/make -f

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk

DEB_DH_INSTALL_SOURCEDIR= debian/tmp

# # Add here any variable or target overrides you need.

DEB_INSTALL_DOCS_supercollider-language    = README_LINUX.txt README.txt
DEB_INSTALL_DOCS_supercollider-server      = README_LINUX.txt README.txt
DEB_INSTALL_DOCS_supercollider-emacs       = editors/scel/README
DEB_INSTALL_DOCS_supercollider-vim         = editors/scvim/README editors/scvim/SCVim.scd
DEB_INSTALL_DOCS_supercollider-gedit       = editors/sced/README

DEB_INSTALL_MANPAGES_supercollider-server  = debian/scsynth.1
DEB_INSTALL_MANPAGES_supercollider-supernova = debian/supernova.1
DEB_INSTALL_MANPAGES_supercollider-language  = debian/sclang.1
DEB_INSTALL_MANPAGES_supercollider-vim     = debian/scvim.1 debian/sclangpipe_app.1
DEB_INSTALL_MANPAGES_supercollider-ide     = debian/scide.1

# supernova (alternative to scsynth) uses fancy simd things which fail to build on sparc/powerpc
ifeq ("$(DEB_HOST_ARCH_CPU)","sparc")
	DEB_BUILD_SUPERNOVA= off
else
		ifeq ("$(DEB_HOST_ARCH_CPU)","powerpc")
		DEB_BUILD_SUPERNOVA= off
		else
		DEB_BUILD_SUPERNOVA= on
		endif
endif

DEB_CMAKE_EXTRA_FLAGS = \
		-DDSO_VISIBILITY=on \
		-DSC_EL_BYTECOMPILE=off \
		-DSYSTEM_BOOST=on \
		-DENABLE_TESTSUITE=off \
		-DLIBSCSYNTH=on \
		-DSYSTEM_YAMLCPP=off \
		-DSUPERNOVA="$(DEB_BUILD_SUPERNOVA)"

# Exclude external libs from the source package if unused on linux or using system-supplied
DEB_UPSTREAM_REPACKAGE_EXCLUDES = \
					  external_libraries/boost/ \
					  external_libraries/curl/ \
					  external_libraries/libsndfile/ \
					  external_libraries/sndfile.hh \
					  external_libraries/simplejson-*/ \
					  external_libraries/icu
DEB_UPSTREAM_URL = http://prdownloads.sourceforge.net/supercollider
DEB_UPSTREAM_TARBALL_BASENAME_MANGLE = s/supercollider(.*)/SuperCollider$$1-Source-linux/
DEB_UPSTREAM_TARBALL_EXTENSION = tar.bz2
DEB_UPSTREAM_TARBALL_SRCDIR = SuperCollider-Source
DEB_UPSTREAM_TARBALL_MD5 = f6d8384eb076f3ccced5051abd2f33bf
DEB_UPSTREAM_REPACKAGE_TAG = repack

binary-fixup/supercollider-common::
		dh_linktree -psupercollider-common

install/supercollider-common::
		install -m 644 debian/README.extensions \
			$(DEB_DH_INSTALL_SOURCEDIR)/usr/share/SuperCollider/Extensions/README

install/supercollider-emacs::
		install -d $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/applications
		install -m 644 debian/scel.desktop $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/applications

install/supercollider-vim::
		install -d $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/applications
		install -m 644 debian/scvim.desktop $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/applications

Builds:

libscsynth1
supercollider synthesis server library
supercollider-common
common files for supercollider
supercollider-dev
development files for supercollider
supercollider-emacs
supercollider mode for emacs
supercollider-gedit
supercollider mode for gedit
supercollider-ide
integrated development environment for supercollider audio system
supercollider-language
real time audio synthesis programming language
supercollider
real time audio synthesis programming language
supercollider-server
real time audio synthesis server
supercollider-supernova
real time audio synthesis server (multiprocessor version)
supercollider-vim
supercollider mode for vim