56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
# Template file for 'lilypond'
|
|
pkgname=lilypond
|
|
version=2.21.1
|
|
revision=1
|
|
build_wrksrc="build"
|
|
build_style="gnu-configure"
|
|
configure_script="../configure"
|
|
configure_args="--disable-documentation ac_cv_func_isinf=yes
|
|
--with-texgyre-dir=/opt/texlive/2020/texmf-dist/fonts/opentype/public/tex-gyre"
|
|
hostmakedepends="autogen automake flex fontforge gettext gnupg guile1.8 pkg-config
|
|
tar texinfo texlive-bin"
|
|
makedepends="gc-devel guile1.8-devel libltdl-devel pango-devel python-devel"
|
|
depends="python ghostscript"
|
|
short_desc="Music engraving program"
|
|
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
|
license="GPL-3.0-or-later, GFDL-1.3-or-later"
|
|
homepage="http://lilypond.org/"
|
|
distfiles="http://lilypond.org/downloads/sources/v2.21/lilypond-${version}.tar.gz"
|
|
checksum=b7ccd72488b0838bc1ae5f490d6acefb292a902d977f6ed05f1eb26d30137e5e
|
|
python_version=2
|
|
|
|
if [ -n "${CROSS_BUILD}" ]; then
|
|
# needs guile-config-1.8 and python-config
|
|
hostmakedepends+=" guile1.8-devel python-devel"
|
|
makedepends+=" libfl-devel"
|
|
configure_args+=" --with-python-lib=python2.7
|
|
--with-python-include=${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) ;;
|
|
*-musl) broken="TeX Live not available, yet." ;;
|
|
esac
|
|
|
|
post_extract() {
|
|
if [ ! -d $wrksrc/$build_wrksrc ]; then
|
|
mkdir $wrksrc/$build_wrksrc
|
|
fi
|
|
}
|
|
|
|
pre_configure() {
|
|
source /etc/profile.d/texlive.sh
|
|
tlmgr install t1utils lh epsf tex-gyre
|
|
cd .. && ./autogen.sh --noconfigure
|
|
}
|
|
|
|
do_build() {
|
|
source /etc/profile.d/texlive.sh
|
|
make ${makejobs} ${make_build_args} ${make_build_target}
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/share/vim
|
|
mv $DESTDIR/usr/share/lilypond/${version}/vim $DESTDIR/usr/share/vim/vim82
|
|
}
|