freebsd-ports/print/lilypond/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

86 lines
2.2 KiB
Makefile

PORTNAME= lilypond
DISTVERSION= 2.24.1
CATEGORIES= print audio
MASTER_SITES= http://lilypond.org/download/source/v${DISTVERSION:R}/
MAINTAINER= m.ne@gmx.net
COMMENT= GNU music typesetter
WWW= https://lilypond.org/
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
USE_CXXSTD= c++14
USE_GNOME= pango
USE_PERL5= build
GNU_CONFIGURE= yes
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-devel
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:
@${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>