pkgsrc-wip/lilypond20/Makefile
Patrick Atamaniuk 5702aeeb1b LilyPond is a music typesetter. It produces sheet music using a
high-level description file, which is plain text, as input.  You
can use your favorite text editor to enter the description files.
The font and the layout were inspired by engraved music, but can
be modified.  The program also has limited MIDI functionality: you
can write MIDI files, and there is a MIDI to lilypond conversion
tool, midi2ly.  Conversion tools for PMX, MUP, ABC, Finale and
Musedata are also included.
2003-10-24 14:30:07 +00:00

67 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2003/10/24 14:30:10 atamaniuk Exp $
# created 2003-10-22 Patrick Atamaniuk <atamaniuk-pkgsrc@frobs.net>
DISTNAME= lilypond-2.0.1
PKGREVISION= 0
CATEGORIES= print
MASTER_SITES= ftp://ftp.lilypond.org/pub/LilyPond/v2.0/
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://lilypond.org/web/
COMMENT= GNU Music Typesetter
#BUILD_DEPENDS+= mftrace>=1.0.19:../../fonts/mftrace
BUILD_DEPENDS+= mftrace>=1.0.19:../../wip/mftrace
DEPENDS+= ghostscript-gnu-x11>=7:../../print/ghostscript-gnu-x11
GNU_CONFIGURE= YES
USE_BUILDLINK2= YES
USE_PKGLOCALEDIR= YES
USE_GMAKE= YES
MAKEFILE= GNUmakefile
GCC_REQD= 3.0.5
USE_MAKEINFO= YES
TEXINFO_REQD= 4.0
INFO_FILES= lilypond.info lilypond-internals.info music-glossary.info
PYTHON_VERSIONS_ACCEPTED= 20 21 23 # 22 has some regular expression problem
CPPFLAGS+=\
-I${WRKSRC}/lily/out -D__GNU_LIBRARY__ \
CONFIGURE_ARGS+=--disable-optimising
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
EXAMPLES_DIR= ${PREFIX}/share/examples/${DISTNAME}
MESSAGE_SUBST+=EXAMPLES_DIR=${EXAMPLES_DIR}
DOCSDIR?= ${PREFIX}/doc/${DISTNAME}
CPIO?=/usr/bin/cpio
pre-configure:
@ ${SETENV} WRKSRC=${WRKSRC} ${FILESDIR}/pre-configure
post-configure:
@ ${SETENV} WRKSRC=${WRKSRC} ${FILESDIR}/post-configure
pre-install:
@ ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
post-install:
@ ${ECHO} Installing examples to ${EXAMPLES_DIR}
${INSTALL_DATA_DIR} ${EXAMPLES_DIR}
@- cd ${WRKSRC} && ${FIND} input \! -path */CVS\* -and \! -path \*/out\* -and \! -name GNUmakefile -print0 \
| ${CPIO} -p0 ${EXAMPLES_DIR}
${INSTALL_SCRIPT_DIR} ${EXAMPLES_DIR}/scripts
${INSTALL_SCRIPT} ${WRKSRC}/buildscripts/out/lilypond-login ${EXAMPLES_DIR}/scripts
${INSTALL_SCRIPT} ${WRKSRC}/buildscripts/out/lilypond-profile ${EXAMPLES_DIR}/scripts
${INSTALL_SCRIPT} ${WRKSRC}/lilypond.vim ${EXAMPLES_DIR}/scripts
${INSTALL_DATA_DIR} ${DOCSDIR}
.for f in AUTHORS.txt INSTALL.txt NEWS.txt README.txt
${INSTALL_DATA} ${WRKSRC}/Documentation/topdocs/out/${f} ${DOCSDIR}
.endfor
PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
.include "../../lang/guile/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../print/teTeX2-bin/kpathsea.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"