985700ac53
Port changes: * Add patch removing fc-cache that caused the fs violation problem * Fix COMMENT * Add LIB_DEPENDS
95 lines
2.3 KiB
Makefile
95 lines
2.3 KiB
Makefile
# Created by: patrick, trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lilypond
|
|
PORTVERSION= 2.18.2
|
|
PORTREVISION= 6
|
|
CATEGORIES= print audio
|
|
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GNU music typesetter
|
|
|
|
LICENSE= GPLv3
|
|
|
|
OPTIONS_DEFINE= NLS
|
|
|
|
BUILD_DEPENDS= pdftexi2dvi:print/texinfo \
|
|
t1ascii:print/t1utils \
|
|
bash:shells/bash \
|
|
convert:graphics/ImageMagick \
|
|
dblatex:textproc/dblatex \
|
|
fontforge:print/fontforge \
|
|
help2man:misc/help2man \
|
|
pngtopnm:graphics/netpbm \
|
|
rsync:net/rsync \
|
|
zip:archivers/zip \
|
|
texi2html:textproc/texi2html \
|
|
${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:print/gsfonts
|
|
LIB_DEPENDS= libguile.so:lang/guile \
|
|
libgmp.so:math/gmp \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libltdl.so:devel/libltdl
|
|
RUN_DEPENDS= mftrace:print/mftrace \
|
|
${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejavu
|
|
|
|
INFO= internals \
|
|
lilypond-changes \
|
|
lilypond-contributor \
|
|
lilypond-essay \
|
|
lilypond-extending \
|
|
lilypond-internals \
|
|
lilypond-learning \
|
|
lilypond-notation \
|
|
lilypond-snippets \
|
|
lilypond-usage \
|
|
lilypond-web \
|
|
music-glossary
|
|
|
|
USES= bison:build gettext ghostscript gmake pkgconfig perl5 \
|
|
python:2.7
|
|
USE_TEX= latex
|
|
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:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lilypond
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lilypond/${PORTVERSION}/python/midi.so
|
|
@${LN} -fs ${DATADIR}/${PORTVERSION} ${STAGEDIR}${DATADIR}/current
|
|
|
|
regression-test: build
|
|
cd ${WRKSRC} && ${MAKE_CMD} -f ${MAKEFILE} test
|
|
|
|
.include <bsd.port.mk>
|