1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/audio/solfege/Makefile
Alejandro Pulver 3583fb4460 - Update to version 3.6.0.
PR:		ports/104169
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2006-10-09 00:33:21 +00:00

61 lines
1.7 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: solfege
# Date created: Apr 10, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= solfege
PORTVERSION= 3.6.0
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX= -nosound
MAINTAINER= ports@FreeBSD.org
COMMENT= Free eartraining software
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
swig:${PORTSDIR}/devel/swig13 \
${STYLESHEET}:${PORTSDIR}/textproc/docbook-xsl
USE_X_PREFIX= yes
USE_GNOME= gnomehack gnomeprefix pygnomeextras
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man \
--disable-oss-sound \
--enable-docbook-stylesheet=${STYLESHEET}
MAKE_ARGS= skipmanual=YES
MAN1= lessonfile_editor.1 solfege.1
STYLESHEET= ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
.else
.if !defined(DISPLAY) || ${DISPLAY} == ""
IGNORE= requires an active X session (and DISPLAY variable). Please compile this while running X
.endif
.endif
post-patch:
@${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e 's|/usr/bin/python|${SETENV} python|g'
.for file in lessonfile_editor.py.in run-solfege.py.in
@${REINPLACE_CMD} -e 's|share", "solfege|share", "gnome", "solfege|g' \
${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e 's|type=sequencer-device|type=fake-synth|g ; \
s|/usr/bin|${LOCALBASE}/bin|g' ${WRKSRC}/default.config
@${REINPLACE_CMD} -e 's|(datadir)/locale|(prefix)/share/locale|g' \
${WRKSRC}/po/Makefile
.include <bsd.port.mk>