2006-12-28 18:26:23 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2006/12/28 23:26:23 kili Exp $
|
2006-10-29 14:27:12 -05:00
|
|
|
#
|
|
|
|
# Credits to Matt Jibson. He did the initial work on this port and many
|
|
|
|
# tools it depends on.
|
|
|
|
|
2006-11-13 07:51:14 -05:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2006-11-26 06:24:29 -05:00
|
|
|
COMMENT-main= "LilyPond - music notation for everyone"
|
2006-10-29 14:27:12 -05:00
|
|
|
COMMENT-docs= "LilyPond documentation"
|
|
|
|
|
2006-11-26 06:24:29 -05:00
|
|
|
VERSION= 2.8.8
|
|
|
|
DISTNAME= lilypond-${VERSION}
|
|
|
|
DISTNAME-docs= ${DISTNAME}-1.documentation
|
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
|
|
PKGNAME-docs= ${DISTNAME:S,-,-docs-,}
|
2006-10-29 14:27:12 -05:00
|
|
|
CATEGORIES= print
|
|
|
|
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME-docs}.tar.bz2:0
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
|
|
|
|
2006-11-26 06:24:29 -05:00
|
|
|
MULTI_PACKAGES= -main -docs
|
2006-10-29 14:27:12 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://lilypond.org/web/
|
|
|
|
|
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_FTP=Yes
|
|
|
|
PERMIT_PACKAGE_CDROM=Yes
|
|
|
|
PERMIT_DISTFILES_FTP=Yes
|
|
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
|
|
|
|
|
|
MASTER_BASE= http://download.linuxaudio.org/lilypond/
|
|
|
|
MASTER_SITES= ${MASTER_BASE}v${VERSION:C,\.[0-9]*$,,}/
|
|
|
|
MASTER_SITES0= ${MASTER_BASE}binaries/documentation/
|
|
|
|
|
|
|
|
# We don't use the standard autoconf mechanisms from the ports
|
|
|
|
# system, because it doesn't work for lilypond. Instead, we use
|
|
|
|
# autogen.sh and add AUTOCONV_VERSION to the environment.
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_SCRIPT= autogen.sh
|
|
|
|
CONFIGURE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
PYTHON=${MODPY_BIN} \
|
|
|
|
FLEXLEXER_PATH=/usr/include/g++
|
|
|
|
CONFIGURE_ARGS+= --with-ncsb-dir=${LOCALBASE}/lib/X11/fonts/ghostscript
|
|
|
|
USE_GMAKE= Yes
|
2006-11-13 07:51:14 -05:00
|
|
|
USE_X11= Yes
|
2006-10-29 14:27:12 -05:00
|
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
|
2006-11-26 06:24:29 -05:00
|
|
|
PKG_ARCH-docs= *
|
|
|
|
LIB_DEPENDS-docs=
|
|
|
|
RUN_DEPENDS-docs=
|
|
|
|
|
|
|
|
WANTLIB-main= c fontconfig freetype m stdc++ X11
|
|
|
|
MODULES= devel/gettext lang/python
|
2006-10-29 14:27:12 -05:00
|
|
|
LIB_DEPENDS= guile.>=15,guile-ltdl.>=1::lang/guile \
|
|
|
|
glib-2.0.>=1000,gmodule-2.0.>=1000,gobject-2.0.>=1000::devel/glib2 \
|
|
|
|
pango-1.0.>=1200,pangoft2-1.0.>=1200::devel/pango
|
|
|
|
RUN_DEPENDS= ::print/ghostscript/gnu
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ::print/mftrace \
|
|
|
|
::devel/bison \
|
|
|
|
::devel/autoconf/${AUTOCONF_VERSION} \
|
|
|
|
${RUN_DEPENDS}
|
|
|
|
|
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-11-26 06:24:29 -05:00
|
|
|
# Fails for yet unknown reason on mf when mftracing feta26 with EINVAL
|
|
|
|
# in intercept_get_string.
|
|
|
|
NO_SYSTRACE= Yes
|
|
|
|
|
2006-10-29 14:27:12 -05:00
|
|
|
post-extract:
|
|
|
|
mkdir -p ${WRKDIR}/docs
|
|
|
|
cd ${WRKDIR}/docs && \
|
|
|
|
bzip2 -cd ${FULLDISTDIR}/${DISTNAME-docs}.tar.bz2 | tar xf -
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lilypond/${VERSION}
|
|
|
|
umask 022 && cp -R ${WRKDIR}/docs/* \
|
|
|
|
${PREFIX}/share/doc/lilypond/${VERSION}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|