blob: 5bfb66bc6bec6799a8a62a311cd27ec22f1a6e5e (
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
85
86
87
88
89
90
91
92
|
# Created by: patrick, trevor
PORTNAME= lilypond
DISTVERSION= 2.23.9
CATEGORIES= print audio
MASTER_SITES= http://lilypond.org/download/source/v${DISTVERSION:R}/
PKGNAMESUFFIX= -devel
MAINTAINER= m.ne@gmx.net
COMMENT= GNU music typesetter
LICENSE= GPLv3
BUILD_DEPENDS= bash:shells/bash \
dblatex:textproc/dblatex \
fontforge:print/fontforge \
help2man:misc/help2man \
pdftexi2dvi:print/texinfo \
pngtopnm:graphics/netpbm \
rsync:net/rsync \
t1ascii:print/t1utils \
texi2html:textproc/texi2html \
zip:archivers/zip
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgc-threaded.so:devel/boehm-gc-threaded \
libgmp.so:math/gmp \
libguile-2.2.so:lang/guile2 \
libharfbuzz.so:print/harfbuzz \
libltdl.so:devel/libltdl
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejavu \
mftrace:print/mftrace
USES= bison:build compiler:c++11-lib cpe ghostscript gmake gnome \
magick:7,build perl5 pkgconfig python:3.5+
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
CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \
FLEX=${FLEX} \
GUILE_FLAVOR=guile-2.2 \
HOME=${WRKDIR} \
YACC=${YACC}
MAKEFILE= GNUmakefile
ALL_TARGET= all
CONFLICTS_INSTALL= lilypond
BINARY_ALIAS= python=${PYTHON_VERSION}
INFO= lilypond-changes \
lilypond-contributor \
lilypond-essay \
lilypond-extending \
lilypond-internals \
lilypond-learning \
lilypond-notation \
lilypond-snippets \
lilypond-usage \
music-glossary
PLIST_SUB= DISTVERSION=${DISTVERSION}
OPTIONS_DEFINE= NLS URW
OPTIONS_SUB= yes
URW_DESC= Use bundled URW fonts
NLS_USES= gettext
URW_BUILD_DEPENDS= urw-base35-fonts>0:x11-fonts/urw-base35-fonts
URW_RUN_DEPENDS_OFF= urw-base35-fonts>0:x11-fonts/urw-base35-fonts
URW_CONFIGURE_WITH= urwotf-dir=${LOCALBASE}/share/fonts/urw-base35-fonts
post-patch:
@${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>
|