aboutsummaryrefslogtreecommitdiffstats
path: root/audio/solfege/Makefile
blob: 1c18e32fcc0c45675074235d0d6f36376c940220 (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:    solfege
# Date created:         Apr 10, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   solfege
PORTVERSION=    2.0.4
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Free eartraining software

BUILD_DEPENDS=  gm4:${PORTSDIR}/devel/m4 \
        swig:${PORTSDIR}/devel/swig11 \
        xsltproc:${PORTSDIR}/textproc/libxslt \
        ${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
        ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2

USE_X_PREFIX=   yes
USE_GNOME=  gnomehack gnomeprefix libgtkhtml
USE_PYTHON= yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --disable-oss-sound \
        --enable-docbook-stylesheet=${LOCALBASE}/share/xsl/docbook/html/chunk.xsl
PLIST_SUB=  VERSION=${PORTVERSION}

MAN1=       solfege.1

post-patch:
    @${GREP} -lR "/usr/bin/python2.2" ${WRKSRC} | ${XARGS} \
        ${REINPLACE_CMD} -e 's|/usr/bin/python2.2|${SETENV} python|g'
    @${REINPLACE_CMD} -e 's|share/solfege|share/gnome/solfege|g' \
        ${WRKSRC}/run-solfege.py.in
    @${REINPLACE_CMD} -e 's|(datadir)/locale|(prefix)/share/locale|g' \
        ${WRKSRC}/po/Makefile

.include <bsd.port.mk>