blob: c3fa634323b55b2407f720559c52897e8e864cdc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Created by: patrick, trevor
# $FreeBSD$
PORTNAME= lilypond
PORTVERSION= 2.16.1
CATEGORIES= print audio
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/
MAINTAINER= gahr@FreeBSD.org
COMMENT= The GNU music typesetter
BUILD_DEPENDS= pdftexi2dvi:${PORTSDIR}/print/texinfo \
t1ascii:${PORTSDIR}/print/t1utils \
bash:${PORTSDIR}/shells/bash \
fontforge:${PORTSDIR}/print/fontforge \
${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:${PORTSDIR}/print/gsfonts
LIB_DEPENDS= guile:${PORTSDIR}/lang/guile \
gmp:${PORTSDIR}/math/gmp \
freetype:${PORTSDIR}/print/freetype2
RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \
${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf:${PORTSDIR}/x11-fonts/dejavu
MAN1= lilymidi.1 lilypond-book.1 lilypond-invoke-editor.1 \
lilypond.1 lilysong.1 convert-ly.1 abc2ly.1 etf2ly.1 \
midi2ly.1 musicxml2ly.1
INFO= lilypond-notation \
lilypond-usage \
lilypond-internals \
lilypond-learning \
lilypond-changes \
lilypond-contributor \
lilypond-essay \
lilypond-extending \
lilypond-snippets \
lilypond-web \
music-glossary \
internals
USES= bison:build gettext
USE_GMAKE= yes
USE_GHOSTSCRIPT=9
USE_TEX= tetex
USE_PYTHON= yes
USE_PERL5_BUILD=yes
USE_GNOME= pango
USE_GCC= any
MAKEFILE= GNUmakefile
GNU_MAKEFILE= yes
MAKE_JOBS_UNSAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \
FLEX=${FLEX} YACC=${YACC}
ALL_TARGET= all
NOCCACHE= 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 empty(${PORT_OPTIONS:MNLS})
${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}.in
.endif
post-install:
@${LN} -fs ${DATADIR}/${PORTVERSION} ${DATADIR}/current
.include <bsd.port.mk>
|