summaryrefslogtreecommitdiff
path: root/print/lilypond/Makefile
blob: d7d70706bcb0fe27eb5b7c004cd4ba9596df1778 (plain)
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
# $NetBSD: Makefile,v 1.34 2005/05/22 20:08:28 jlam Exp $
#

DISTNAME=	lilypond-2.4.3
PKGREVISION=	2
CATEGORIES=	print
MASTER_SITES=	http://lilypond.org/download/v2.4/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://lilypond.org/web/
COMMENT=	GNU Music Typesetter

DEPENDS+=	ec-fonts-mftraced-[0-9]*:../../fonts/ec-fonts-mftraced
BUILD_DEPENDS+=	bison>=1.875nb1:../../devel/bison

BUILDLINK_DEPENDS.mftrace+=	mftrace>=1.1.0

GNU_CONFIGURE=		YES
USE_PKGLOCALEDIR=	YES
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake
MAKEFILE=		GNUmakefile

USE_MAKEINFO=	YES
TEXINFO_REQD=	4.7
GCC_REQD+=	3.0.5
INFO_DIR=	info/lilypond
INFO_FILES=	lilypond.info lilypond-internals.info music-glossary.info
CONFIGURE_HAS_INFODIR=	NO
CONFIGURE_ARGS+=	--infodir=${PREFIX}/info

CONFIGURE_ARGS+=--disable-optimising
CONFIGURE_ENV+=	PYTHON=${PYTHONBIN}
PYTHON_VERSIONS_ACCEPTED= 21 23
# 22 has some regular expression problem

SCRIPTS_DIR=	share/lilypond/${PKGVERSION:S/nb${PKGREVISION}//}/scripts
PLIST_SUBST+=	SCRIPTS_DIR=${SCRIPTS_DIR}
MESSAGE_SUBST+=	SCRIPTS_DIR=${SCRIPTS_DIR}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/${SCRIPTS_DIR}
	${INSTALL_DATA} ${WRKSRC}/buildscripts/out/lilypond-login ${PREFIX}/${SCRIPTS_DIR}
	${INSTALL_DATA} ${WRKSRC}/buildscripts/out/lilypond-profile ${PREFIX}/${SCRIPTS_DIR}

.include "../../fonts/mftrace/buildlink3.mk"
.include "../../lang/guile/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../print/teTeX-bin/kpathsea.buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../mk/emacs.mk"
.include "../../mk/ghostscript.mk"
.include "../../mk/bsd.pkg.mk"