summaryrefslogblamecommitdiffstats
path: root/audio/solfege/Makefile
blob: ec3b7dc1838eccf1356164e30d19df3600b29a2d (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                               
                                                                            
 

                       
                     
                 
                     
                  













                                                              
                                     

                                                         
                   










                                                              



                                                                               



                                                                               





                                                                           
# ex:ts=8
# Ports collection makefile for:    solfege
# Date created:         Apr 10, 2003
# Whom:             ijliao
#
# $FreeBSD$
#   $MCom: ports/audio/solfege/Makefile,v 1.6 2007/08/15 06:04:48 mezz Exp $
#

PORTNAME=   solfege
PORTVERSION=    3.9.0
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   SF
PKGNAMESUFFIX=  -nosound

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

BUILD_DEPENDS=  ${STYLESHEET}:${PORTSDIR}/textproc/docbook-xsl

USE_GNOME=  gnomehack gnomeprefix libxslt pygtk2
WANT_GNOME= yes
USE_PYTHON= yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  ac_cv_path_XML2PO=""
CONFIGURE_ARGS= --disable-oss-sound \
        --enable-docbook-stylesheet=${STYLESHEET}
MAKE_ARGS=  skipmanual=yes
USE_DISPLAY=    yes

MAN1=       lessonfile_editor.1 solfege.1

STYLESHEET= ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mpygnomeextras}!=""
USE_GNOME+= pygnomeextras
.endif

post-patch:
    @${RM} ${WRKSRC}/lesson-files/bin/csound-play-harmonic-interval.sh.orig
    @${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.post.mk>