You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools desktop xdg
|
|
|
|
DESCRIPTION="Visual programming language for multimedia"
|
|
HOMEPAGE="http://msp.ucsd.edu/software.html"
|
|
MY_P="pd-$(ver_cut 1-2)-$(ver_cut 3-)"
|
|
SRC_URI="http://msp.ucsd.edu/Software/pd-$(ver_cut 1-2)-$(ver_cut 3-).src.tar.gz
|
|
https://puredata.info/portal_css/Plone%20Default/logo.png -> ${PN}.png"
|
|
KEYWORDS="~amd64"
|
|
S="${WORKDIR}/${MY_P}"
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
|
|
IUSE="alsa fftw jack oss"
|
|
REQUIRED_USE="|| ( alsa jack oss )"
|
|
|
|
RDEPEND="
|
|
dev-lang/tcl:=
|
|
dev-lang/tk:=[truetype]
|
|
alsa? ( media-libs/alsa-lib )
|
|
jack? ( virtual/jack )
|
|
fftw? ( >=sci-libs/fftw-3 )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
# Disable portaudio and portmidi because otherwise Pd's local sources get installed
|
|
src_configure() {
|
|
econf --disable-portaudio \
|
|
--without-local-portaudio \
|
|
--disable-portmidi \
|
|
--without-local-portmidi \
|
|
$(use_enable alsa) \
|
|
$(use_enable jack) \
|
|
$(use_enable fftw) \
|
|
$(use_enable oss)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
doicon -s 48 "${DISTDIR}"/${PN}.png
|
|
make_desktop_entry pd "pure data" "${PN}" "AudioVideo;AudioVideoEditing"
|
|
}
|