1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/print/lilypond/Makefile
2014-01-07 15:32:24 +00:00

90 lines
2.2 KiB
Makefile

# Created by: patrick, trevor
# $FreeBSD$
PORTNAME= lilypond
PORTVERSION= 2.18.0
CATEGORIES= print audio
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/
MAINTAINER= gahr@FreeBSD.org
COMMENT= The GNU music typesetter
LICENSE= GPLv3
BUILD_DEPENDS= pdftexi2dvi:${PORTSDIR}/print/texinfo \
t1ascii:${PORTSDIR}/print/t1utils \
bash:${PORTSDIR}/shells/bash \
convert:${PORTSDIR}/graphics/ImageMagick \
dblatex:${PORTSDIR}/textproc/dblatex \
fontforge:${PORTSDIR}/print/fontforge \
help2man:${PORTSDIR}/misc/help2man \
pngtopnm:${PORTSDIR}/graphics/netpbm \
rsync:${PORTSDIR}/net/rsync \
zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:${PORTSDIR}/print/gsfonts
RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \
${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf:${PORTSDIR}/x11-fonts/dejavu
LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile \
libgmp.so:${PORTSDIR}/math/gmp \
libfreetype.so:${PORTSDIR}/print/freetype2
INFO= internals \
lilypond-changes \
lilypond-contributor \
lilypond-essay \
lilypond-extending \
lilypond-internals \
lilypond-learning \
lilypond-notation \
lilypond-usage \
lilypond-web \
music-glossary
USES= bison:build gettext gmake pkgconfig perl5
USE_GHOSTSCRIPT=9
USE_TEX= latex
USE_PYTHON= -3
USE_PERL5= build
USE_GNOME= pango
MAKEFILE= GNUmakefile
GNU_MAKEFILE= yes
MAKE_JOBS_UNSAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts \
--with-python-include=${PYTHON_INCLUDEDIR}
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \
FLEX=${FLEX} YACC=${YACC}
ALL_TARGET= all
NO_CCACHE= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
${WRKSRC}/lily/include/includable-lexer.hh
.if !${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}.in
.endif
post-install:
@${LN} -fs ${DATADIR}/${PORTVERSION} ${STAGEDIR}${DATADIR}/current
regression-test: build
cd ${WRKSRC} && ${GMAKE} -f ${MAKEFILE} test
.include <bsd.port.mk>