freebsd-ports/print/lilypond/Makefile
Kurt Jaeger 1f914b7979 print/lilypond: update 2.18.2 -> 2.20.0
- submitter becomes maintainer
- WWW points to new site
- updated manuals

PR:		245754
Submitted by:	Martin Neubauer <m.ne@gmx.net>
2020-04-20 18:48:49 +00:00

82 lines
2.2 KiB
Makefile

# Created by: patrick, trevor
# $FreeBSD$
PORTNAME= lilypond
DISTVERSION= 2.20.0
CATEGORIES= print audio
MASTER_SITES= http://lilypond.org/download/source/v${DISTVERSION:R}/
MAINTAINER= m.ne@gmx.net
COMMENT= GNU music typesetter
LICENSE= GPLv3
BUILD_DEPENDS= pdftexi2dvi:print/texinfo \
t1ascii:print/t1utils \
bash:shells/bash \
convert:graphics/ImageMagick6 \
dblatex:textproc/dblatex \
fontforge:print/fontforge \
help2man:misc/help2man \
pngtopnm:graphics/netpbm \
rsync:net/rsync \
texi2html:textproc/texi2html \
zip:archivers/zip
LIB_DEPENDS= libltdl.so:devel/libltdl \
libguile.so:lang/guile1 \
libgmp.so:math/gmp \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
RUN_DEPENDS= mftrace:print/mftrace \
${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejavu
USES= bison:build compiler:gcc-c++11-lib gettext ghostscript gmake \
gnome perl5 pkgconfig python:2.7
USE_CXXSTD= c++11
USE_GNOME= pango
USE_PERL5= build
USE_TEX= latex texmf
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-texgyre-dir=${LOCALBASE}/${TEXMFDISTDIR}/fonts/opentype/public/tex-gyre \
--with-python-include=${PYTHON_INCLUDEDIR} --without-urwotf-dir
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \
FLEX=${FLEX} YACC=${YACC} HOME=${WRKDIR}
MAKEFILE= GNUmakefile
ALL_TARGET= all
INFO= internals \
lilypond-changes \
lilypond-contributor \
lilypond-essay \
lilypond-extending \
lilypond-internals \
lilypond-learning \
lilypond-notation \
lilypond-snippets \
lilypond-usage \
lilypond-web \
music-glossary
PLIST_SUB= DISTVERSION=${DISTVERSION}
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
post-patch:
@${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} \
${REINPLACE_CMD} -e 's|isinf[ ]*(|::isinf(|g' -e 's|isnan|::isnan|g'
@${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
${WRKSRC}/lily/include/includable-lexer.hh
${SED} -e 's|%%FONTDIR%%|${WRKDIR}/fontconfig/cache/|' \
${FILESDIR}/fonts.conf > ${WRKDIR}/.fonts.conf
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/po \\$$/d' ${WRKSRC}/${MAKEFILE}.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lilypond
(cd ${STAGEDIR}/${DATADIR} && ${LN} -fs ${DISTVERSION} current)
.include <bsd.port.mk>