pkgsrc/print/lilypond/Makefile

71 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.116 2018/04/16 14:35:06 wiz Exp $
DISTNAME= lilypond-2.18.2
PKGREVISION= 11
CATEGORIES= print
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v2.18/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://lilypond.org/
COMMENT= GNU Music Typesetter
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= tex-metafont-[0-9]*:../../fonts/tex-metafont
BUILD_DEPENDS+= tex-metapost-[0-9]*:../../graphics/tex-metapost
BUILD_DEPENDS+= urw-fonts-[0-9]*:../../fonts/urw-fonts
BUILD_DEPENDS+= intlfonts-[0-9]*:../../fonts/intlfonts
BUILD_DEPENDS+= font-cronyx-cyrillic-[0-9]*:../../fonts/font-cronyx-cyrillic
BUILD_DEPENDS+= kochi-ttf-[0-9]*:../../fonts/kochi-ttf
BUILD_DEPENDS+= fontforge>=20060125:../../fonts/fontforge
BUILD_DEPENDS+= t1utils>=1.33:../../fonts/t1utils
BUILD_DEPENDS+= dblatex-[0-9]*:../../textproc/dblatex
BUILD_DEPENDS+= rsync-[0-9]*:../../net/rsync
# pngtopnm
BUILD_DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
# convert
BUILD_DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
DEPENDS+= tex-cyrillic-[0-9]*:../../print/tex-cyrillic
DEPENDS+= tex-lh-[0-9]*:../../fonts/tex-lh
DEPENDS+= tex-psnfss-[0-9]*:../../fonts/tex-psnfss
DEPENDS+= tex-epsf-[0-9]*:../../print/tex-epsf
DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics
# 1.7 coredumps when generating eps files
DEPENDS+= potrace>=1.8:../../graphics/potrace
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
USE_LANGUAGES= c c++
USE_TOOLS+= bison flex gmake gs:run makeinfo perl pkg-config msgfmt
USE_TOOLS+= texi2html zip
MAKE_FILE= GNUmakefile
.include "../../mk/bsd.prefs.mk"
TEXINFO_REQD= 4.11
GCC_REQD+= 3.0.5
GNU_CONFIGURE_INFODIR= ${PREFIX}/${PKGINFODIR}
INFO_DIR= ${GNU_CONFIGURE_INFODIR}
INFO_FILES= YES
CONFIGURE_ARGS+= --disable-optimising
CONFIGURE_ARGS+= --with-ncsb-dir=${PREFIX}/share/fonts/urw
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
REPLACE_PYTHON+= scripts/build/yyout2grammar.py
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 2.18.0
PLIST_SUBST+= PKGVERSION=${PKGVERSION:S/nb${PKGREVISION}//}
# needs FlexLexer.h
# make sure we use the same version for that file and the flex binary
FLEX_REQD= 2.6.0
BUILDLINK_API_DEPENDS.flex+= flex>=2.6.0
.include "../../devel/flex/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
# lilypond's configure rejects guile2
.include "../../lang/guile/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/omf-scrollkeeper.mk"
.include "../../mk/bsd.pkg.mk"