freebsd-ports/print/lilypond/Makefile
Joe Marcus Clarke 4acc6fb2a4 Presenting GNOME 2.20.1 and all related works for FreeBSD. The official
GNOME 2.20 release notes can be found at
http://www.gnome.org/start/2.20/notes/en/ .  Beyond that, this update
includes the new GIMP 2.4 (courtesy of ahze).

The GNOME 2.20 update also includes a huge change in the FreeBSD GNOME
hierarchy.  We are now using the more standard DATADIR of ${PREFIX}/share
rather than ${PREFIX}/share/gnome. The result is that fewer patches and
hacks are needed to port GNOME components to FreeBSD.  This will mean some
user changes may be required, so be sure to read /usr/ports/UPDATING for
more details.

This release and the things we accomplished in it would not have been
possible without mezz's crazy idea to collapse DATADIR, and his persistence
to make it happen successfully.  Ahze and pav also deserve thanks for
their work on porting modules and testing the whole ball of wax on
pointyhat (respectively).

The FreeBSD GNOME team would also like to thank our various testers and
contributors:

Yasuda Keisuke
Frank Jahnke
Pawel Worach
Brian Gruber
Franz Klammer
Yuri Pankov
Nick Barkas
Cristian KLEIN
Tony Maher
Scot Hetzel
Martin Matuska (mm)
Benoit Dejean
Martin Wilke (miwi)
(And anyone else I may have missed)

PRs fixed in this release:

111272, 113470, 115995, 116338
2007-10-24 23:37:25 +00:00

109 lines
3 KiB
Makefile

# New ports collection makefile for: lilypond-devel
# Date created: 2001-02-10
# Whom: patrick
# based on print/lilypond originally by trevor
#
# $FreeBSD$
# $Id: Makefile,v 1.18 2004/05/25 22:16:33 patrick Exp $
#
PORTNAME= lilypond
PORTVERSION= 2.2.2
PORTREVISION= 4
CATEGORIES= print audio
MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/:src \
http://distfiles.master.finkmirrors.net/:rpm
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:src \
${PORTNAME}-${PORTVERSION}-1.i386.rpm:rpm
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= The GNU music typesetter
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX \
rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS= guile.15:${PORTSDIR}/lang/guile
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
MAN1= abc2ly.1 etf2ly.1 midi2ly.1 mup2ly.1 lilypond.1 musedata2ly.1 \
convert-ly.1 lilypond-bin.1 lilypond-book.1
INFO= lilypond lilypond-internals \
music-glossary
#INSTALLS_SHLIB not needed for phyton library midi.so
GNU_CONFIGURE= yes
USE_GETTEXT= yes
USE_BISON= build
USE_GMAKE= YES
USE_PYTHON= YES
MAKEFILE= GNUmakefile
PKGINSTALL= ${WRKDIR}/pkg-install
CONFIGURE_ARGS+= --with-kpathsea-include=${LOCALBASE}/include \
--with-kpathsea-lib=${LOCALBASE}/lib
CONFIGURE_ENV+= "CPPFLAGS=${CPPFLAGS}"
.if defined(WITH_SELFBUILT_FONTS)
BUILD_DEPENDS+= mftrace:${PORTSDIR}/print/mftrace
.else
BUILD_DEPENDS+= rpm2cpio:${PORTSDIR}/archivers/rpm
.endif
# inform kpathsea.h of getopt-prototype version
CFLAGS+= -D__GNU_LIBRARY__
CPPFLAGS+= -I${WRKSRC}/lily/out
CFLAGS+= ${CPPFLAGS}
.include <bsd.port.pre.mk>
ALL_TARGET= all
SCRIPTS_ENV+= PORTVERSION=${PORTVERSION}
.if defined(NOPORTDOCS)
PLIST_SUB+= CONDITIONAL="@comment "
EXTRA_PATCHES+= ${FILESDIR}/extra-patch:GNUmakefile.in
.else
PLIST_SUB+= CONDITIONAL=""
.endif
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.if ${OSVERSION} >= 700042
BROKEN= Does not compile with GCC 4.2
.endif
pre-configure:
${SED} -e "s=%%LOCALBASE%%=${LOCALBASE}=g;s=%%DATADIRVERSION%%=${DATADIR}/${PORTVERSION}=g" \
< ${FILESDIR}/pkg-install.in \
| ${SED} -e "s=${PREFIX}=\$${PKG_PREFIX}=g" \
> ${PKGINSTALL}
.if !defined(WITH_SELFBUILT_FONTS)
post-configure:
cd ${WRKSRC} && ${GMAKE} -C mf get-pfa DISTDIR=${DISTDIR}
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}/scripts
cd ${WRKSRC}/input ; \
${TAR} -chf - --exclude=out --exclude=CVS --exclude=GNUmakefile . | \
${TAR} -xf - -C ${EXAMPLESDIR};
.for ii in login profile
${INSTALL_SCRIPT} ${WRKSRC}/buildscripts/out/lilypond-${ii} \
${EXAMPLESDIR}/scripts
.endfor
cd ${WRKSRC}/Documentation/topdocs/out && ${TAR} -chf - \
--exclude=dummy.dep --exclude=CVS --exclude=GNUmakefile . \
| ${TAR} -xf - -C ${DOCSDIR}
.endif
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${ECHO_CMD} "* Look in ${EXAMPLESDIR}/scripts"
@${ECHO_CMD} "* for needed additions to your .profile"
@${ECHO_CMD} "* (at least the TEXMF environment variable is required)."
.include <bsd.port.post.mk>