# lilypond.cygport NAME="lilypond" VERSION=2.19.15 RELEASE=1 SUMMARY="A typesetting system for music notation." DESCRIPTION="LilyPond is an automated music engraving system. It formats music beautifully and automatically, and has a friendly syntax for its input files." CATEGORY="Interpreters" MAJOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 1)" MINOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 2)" ############################################################################# # Patches. These are as follows: # # - 2.18.2-dos-to-posix.patch - Use cygwin_conv_path() instead of # cygwin_conv_to_posix_path(). PATCH_URI=" 2.18.2-dos-to-posix.patch " ############################################################################# HOMEPAGE="http://www.lilypond.org/" SRC_URI="http://download.linuxaudio.org/${PN}/sources/v${MAJOR_VERSION}.${MINOR_VERSION}/${P}.tar.gz" DIFF_EXCLUDES="configure" ############################################################################# # This cygport file produces two packages, the main 'lilypond' package and # 'lilypond-doc' which contains the documentation. PKG_NAMES="lilypond lilypond-doc" ############################################################################# ############################################################################# # The main 'lilypond' package contains everything except the HTML # documentation. lilypond_CONTENTS="--exclude=html usr" lilypond_SUMMARY="${SUMMARY}" lilypond_DESCRIPTION="${DESCRIPTION}" lilypond_CATEGORY="Interpreters" ############################################################################# ############################################################################# # The 'lilypond-doc' package. lilypond_doc_CONTENTS="usr/share/doc/lilypond/html" lilypond_doc_SUMMARY="HTML documentation for LilyPond." lilypond_doc_DESCRIPTION="${DESCRIPTION} This package contains the HTML documentation for LilyPond." lilypond_doc_CATEGORY="Doc" ############################################################################# src_compile() { cd "${S}" ./autogen.sh --noconfigure cd "${B}" "${S}/configure" --prefix=/usr --exec-prefix=/usr \ --with-ncsb-dir=/usr/share/ghostscript/fonts # lilypond doesn't compile with parallel builds. MAKEOPTS+=" -j 1" # The code in the python directory won't compile out of the box, as # it needs '-lpython', and the makefile doesn't link against this # library. So we build this first, explicitly specifying the python # libraries. Once this is built, we can build the rest of the # lilypond code. cd "${B}/python" cygmake LDFLAGS="$(python-config --libs)" cd "${B}" cygmake # Make the lilypond documentation. cygmake doc } src_install() { local vimdir=/usr/share/vim/vim74 mkdir -p "${D}${vimdir}" cd "${B}" make install DESTDIR="${D}" vimdir="${vimdir}" # Symlink lilypond-init.el in emacs' site-start.d directory cd "${D}/usr/share/emacs/site-lisp" mkdir site-start.d ln -s ../lilypond-init.el site-start.d }