2013-04-18 08:52:01 +02:00
|
|
|
# Created by: patrick, trevor
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lilypond
|
2014-08-05 16:09:20 +02:00
|
|
|
PORTVERSION= 2.19.11
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 2
|
2013-04-18 08:52:01 +02:00
|
|
|
CATEGORIES= print audio
|
|
|
|
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/
|
2013-04-18 16:36:34 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2013-04-18 08:52:01 +02:00
|
|
|
|
2014-12-10 23:29:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-04-18 08:52:01 +02:00
|
|
|
COMMENT= The GNU music typesetter
|
|
|
|
|
2013-12-16 15:27:40 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-05-06 04:00:40 +02:00
|
|
|
BUILD_DEPENDS= pdftexi2dvi:${PORTSDIR}/print/texinfo \
|
2013-04-18 08:52:01 +02:00
|
|
|
t1ascii:${PORTSDIR}/print/t1utils \
|
|
|
|
bash:${PORTSDIR}/shells/bash \
|
2014-01-08 10:07:12 +01:00
|
|
|
convert:${PORTSDIR}/graphics/ImageMagick \
|
2013-12-20 13:39:27 +01:00
|
|
|
dblatex:${PORTSDIR}/textproc/dblatex \
|
2014-01-08 10:07:12 +01:00
|
|
|
fontforge:${PORTSDIR}/print/fontforge \
|
|
|
|
help2man:${PORTSDIR}/misc/help2man \
|
2013-12-20 13:39:27 +01:00
|
|
|
pngtopnm:${PORTSDIR}/graphics/netpbm \
|
|
|
|
rsync:${PORTSDIR}/net/rsync \
|
2014-07-22 08:26:42 +02:00
|
|
|
texi2html:${PORTSDIR}/textproc/texi2html \
|
2014-01-08 10:07:12 +01:00
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
2013-04-18 08:52:01 +02:00
|
|
|
${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:${PORTSDIR}/print/gsfonts
|
|
|
|
|
2014-01-08 10:07:12 +01:00
|
|
|
RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \
|
|
|
|
${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf:${PORTSDIR}/x11-fonts/dejavu
|
|
|
|
|
2013-12-16 15:27:40 +01:00
|
|
|
LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile \
|
|
|
|
libgmp.so:${PORTSDIR}/math/gmp \
|
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
2013-04-18 08:52:01 +02:00
|
|
|
|
2014-01-08 10:07:12 +01:00
|
|
|
INFO= internals \
|
2013-04-18 08:52:01 +02:00
|
|
|
lilypond-changes \
|
|
|
|
lilypond-contributor \
|
|
|
|
lilypond-essay \
|
|
|
|
lilypond-extending \
|
2014-01-08 10:07:12 +01:00
|
|
|
lilypond-internals \
|
|
|
|
lilypond-learning \
|
|
|
|
lilypond-notation \
|
2014-02-03 10:57:31 +01:00
|
|
|
lilypond-snippets \
|
2014-01-08 10:07:12 +01:00
|
|
|
lilypond-usage \
|
2013-04-18 08:52:01 +02:00
|
|
|
lilypond-web \
|
2014-01-08 10:07:12 +01:00
|
|
|
music-glossary
|
2013-04-18 08:52:01 +02:00
|
|
|
|
2014-10-24 18:42:59 +02:00
|
|
|
USES= bison:build gettext gmake pkgconfig perl5 compiler:c++11-lib python:-3
|
2014-05-22 09:14:39 +02:00
|
|
|
USE_CXXSTD= c++11
|
2013-04-18 08:52:01 +02:00
|
|
|
USE_GHOSTSCRIPT=9
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= latex
|
2014-01-08 10:07:12 +01:00
|
|
|
USE_PERL5= build
|
2013-04-18 08:52:01 +02:00
|
|
|
USE_GNOME= pango
|
|
|
|
|
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
GNU_MAKEFILE= yes
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-01-08 10:07:12 +01:00
|
|
|
CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts \
|
|
|
|
--with-python-include=${PYTHON_INCLUDEDIR}
|
2013-04-18 08:52:01 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \
|
2014-07-14 12:14:27 +02:00
|
|
|
FLEX=${FLEX} YACC=${YACC} HOME=${WRKDIR}
|
2013-04-18 08:52:01 +02:00
|
|
|
|
|
|
|
ALL_TARGET= all
|
|
|
|
|
2014-01-08 10:07:12 +01:00
|
|
|
NO_CCACHE= yes
|
2013-04-18 08:52:01 +02:00
|
|
|
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2014-02-21 14:39:12 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-04-18 08:52:01 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2014-08-05 16:09:20 +02:00
|
|
|
${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|isinf[ ]*(|::isinf(|g' -e 's|isnan|::isnan|g'
|
2013-04-18 08:52:01 +02:00
|
|
|
${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
|
|
|
|
${WRKSRC}/lily/include/includable-lexer.hh
|
|
|
|
.if !${PORT_OPTIONS:MNLS}
|
|
|
|
${REINPLACE_CMD} -e '/po \\$$/d' ${WRKSRC}/${MAKEFILE}.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2013-12-16 15:27:40 +01:00
|
|
|
@${LN} -fs ${DATADIR}/${PORTVERSION} ${STAGEDIR}${DATADIR}/current
|
2013-04-18 08:52:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|