2004-06-16 01:12:16 +02:00
|
|
|
# New ports collection makefile for: lilypond-devel
|
2001-02-26 02:51:33 +01:00
|
|
|
# Date created: 2001-02-10
|
2004-06-16 01:12:16 +02:00
|
|
|
# Whom: patrick
|
|
|
|
# based on print/lilypond originally by trevor
|
2001-02-26 02:51:33 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2004-06-16 01:12:16 +02:00
|
|
|
# $Id: Makefile,v 1.18 2004/05/25 22:16:33 patrick Exp $
|
2001-02-26 02:51:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lilypond
|
2011-02-07 17:24:56 +01:00
|
|
|
PORTVERSION= 2.13.48
|
2001-02-26 02:51:33 +01:00
|
|
|
CATEGORIES= print audio
|
2009-07-16 11:34:07 +02:00
|
|
|
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v2.13/:src \
|
2008-12-12 00:49:42 +01:00
|
|
|
${MASTER_SITE_LOCAL}/gahr/:fonts \
|
2009-11-14 12:13:39 +01:00
|
|
|
http://people.freebsd.org/~gahr/distfiles/:fonts \
|
|
|
|
http://www.chiark.greenend.org.uk/~sgtatham/gonville/:gonville
|
2005-12-05 04:45:48 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:src \
|
2009-11-14 12:13:39 +01:00
|
|
|
${PORTNAME}-fonts-${PORTVERSION}${EXTRACT_SUFX}:fonts \
|
|
|
|
gonville-${GONVILLE_REV}${EXTRACT_SUFX}:gonville
|
2005-12-05 04:45:48 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= The GNU music typesetter
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2003-11-20 21:17:10 +01:00
|
|
|
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX \
|
2008-07-04 00:22:13 +02:00
|
|
|
mftrace:${PORTSDIR}/print/mftrace \
|
|
|
|
rarian-sk-config:${PORTSDIR}/textproc/rarian \
|
2008-12-03 16:52:49 +01:00
|
|
|
texi2html:${PORTSDIR}/textproc/texi2html \
|
2009-09-27 20:08:16 +02:00
|
|
|
pdftexi2dvi:${PORTSDIR}/print/texinfo \
|
2009-11-14 12:13:39 +01:00
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
|
|
gsed:${PORTSDIR}/textproc/gsed
|
2009-05-18 20:17:19 +02:00
|
|
|
LIB_DEPENDS= guile.20:${PORTSDIR}/lang/guile \
|
2010-04-19 12:43:42 +02:00
|
|
|
gmp.10:${PORTSDIR}/math/gmp
|
2008-07-04 00:22:13 +02:00
|
|
|
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \
|
|
|
|
mftrace:${PORTSDIR}/print/mftrace
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2009-11-14 12:13:39 +01:00
|
|
|
GONVILLE_REV= r8724
|
|
|
|
GONVILLE_SIZES= 11 13 14 16 18 20 23 26
|
|
|
|
|
2010-08-24 23:33:40 +02:00
|
|
|
#OPTIONS= WEBDOCS "Include web documentation" off
|
2003-11-20 21:17:10 +01:00
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
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
|
2009-11-14 12:13:39 +01:00
|
|
|
INFO= lilypond-changes lilypond-contributor lilypond-essay \
|
2009-12-23 11:59:47 +01:00
|
|
|
lilypond-extending lilypond-internals lilypond-learning \
|
2010-07-02 17:38:36 +02:00
|
|
|
lilypond-notation lilypond-usage lilypond-web \
|
2010-08-24 23:33:40 +02:00
|
|
|
music-glossary
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2008-07-08 23:58:39 +02:00
|
|
|
USE_BISON= build
|
2008-07-09 16:07:31 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PYTHON= yes
|
2008-07-04 00:22:13 +02:00
|
|
|
USE_GNOME= pango
|
2008-07-09 16:07:31 +02:00
|
|
|
INSTALLS_OMF= yes
|
2001-02-26 02:51:33 +01:00
|
|
|
MAKEFILE= GNUmakefile
|
2008-07-15 09:37:33 +02:00
|
|
|
ALL_TARGET= all
|
2009-12-23 11:59:47 +01:00
|
|
|
CONFIGURE_ENV+= MAKEINFO="${LOCALBASE}/bin/makeinfo"
|
2008-08-22 01:11:29 +02:00
|
|
|
NOCCACHE= yes
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2003-10-14 01:10:31 +02:00
|
|
|
|
2003-06-05 00:43:38 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-10-14 01:10:31 +02:00
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
.if !defined(NOPORTDOCS) && defined(WITH_WEBDOCS)
|
2010-08-24 23:33:40 +02:00
|
|
|
IGNORE= installation of webdocs does not work
|
2010-02-23 09:08:48 +01:00
|
|
|
BUILD_DEPENDS+= pbmpscale:${PORTSDIR}/graphics/netpbm \
|
|
|
|
rsync:${PORTSDIR}/net/rsync
|
2008-07-04 00:22:13 +02:00
|
|
|
PLIST_SUB+= DOCS=""
|
2010-07-02 17:38:36 +02:00
|
|
|
PORTDOCS+= *
|
2003-11-20 21:17:10 +01:00
|
|
|
.else
|
2008-07-04 00:22:13 +02:00
|
|
|
PLIST_SUB+= DOCS="@comment "
|
2003-11-20 21:17:10 +01:00
|
|
|
.endif
|
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
post-extract:
|
2008-12-12 00:49:42 +01:00
|
|
|
${TAR} -C ${WRKDIR} -xf ${DISTDIR}/${PORTNAME}-fonts-${PORTVERSION}${EXTRACT_SUFX}
|
2009-11-14 12:13:39 +01:00
|
|
|
${TAR} -C ${WRKDIR} -xf ${DISTDIR}/gonville-${GONVILLE_REV}${EXTRACT_SUFX} && \
|
|
|
|
${CP} ${WRKDIR}/gonville-${GONVILLE_REV}/lilyfonts/otf/* ${WRKSRC}/mf/out/
|
|
|
|
.for size in ${GONVILLE_SIZES}
|
|
|
|
${LN} -s ${WRKSRC}/mf/out/gonville${size}.otf ${WRKSRC}/mf/out/gonville-${size}.otf
|
|
|
|
.endfor
|
2003-11-20 21:17:10 +01:00
|
|
|
|
2008-07-04 00:22:13 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|makeinfo|${LOCALBASE}/bin/makeinfo|' \
|
|
|
|
${WRKSRC}/configure
|
2008-08-13 21:06:55 +02:00
|
|
|
${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
|
|
|
|
${WRKSRC}/lily/include/includable-lexer.hh
|
2009-11-14 12:13:39 +01:00
|
|
|
${REINPLACE_CMD} -e 's|sed|gsed|g' ${WRKSRC}/Documentation/GNUmakefile
|
2008-12-03 16:52:49 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
${REINPLACE_CMD} -e '17,21d' ${WRKSRC}/po/GNUmakefile
|
|
|
|
.endif
|
2004-06-16 01:12:16 +02:00
|
|
|
|
2009-12-23 11:59:47 +01:00
|
|
|
pre-install:
|
|
|
|
.if exists(${PREFIX}/info/dir)
|
|
|
|
${REINPLACE_CMD} -i '' -e '/LilyPond/d' ${PREFIX}/info/dir
|
|
|
|
.endif
|
|
|
|
|
2001-02-26 02:51:33 +01:00
|
|
|
post-install:
|
2008-07-15 09:37:33 +02:00
|
|
|
@${LN} -s ${DATADIR}/${PORTVERSION} ${DATADIR}/current
|
2008-07-04 00:22:13 +02:00
|
|
|
.if !defined(NOPORTDOCS) && defined(WITH_WEBDOCS)
|
2008-07-15 09:37:33 +02:00
|
|
|
@echo "Installing documentation... this takes a while..."
|
2010-07-02 17:38:36 +02:00
|
|
|
cd ${WRKSRC} && ${GMAKE} doc install-doc
|
2009-12-23 11:59:47 +01:00
|
|
|
# @(cd ${WRKSRC}/out-www/offline-root && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
2003-10-14 01:10:31 +02:00
|
|
|
.endif
|
2001-02-26 02:51:33 +01:00
|
|
|
|
2003-05-18 13:36:12 +02:00
|
|
|
.include <bsd.port.post.mk>
|