2007-03-11 09:51:34 +00:00
|
|
|
# New ports collection makefile for: mma
|
|
|
|
# Date created: 2007-03-10
|
|
|
|
# Whom: Nicola Vitale <nivit@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mma
|
2008-04-03 13:08:55 +00:00
|
|
|
DISTVERSION= 1.3a
|
2007-08-06 13:43:58 +00:00
|
|
|
#PORTREVISION= 0
|
2007-03-11 09:51:34 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://www.mellowood.ca/${PORTNAME}/ \
|
|
|
|
http://nivi.interfree.it/distfiles/${PORTNAME}/
|
2008-04-03 13:08:55 +00:00
|
|
|
DISTFILES= ${PORTNAME}-bin-${DISTVERSION}.tar.gz
|
2007-03-11 09:51:34 +00:00
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= Musical MIDI Accompaniment generator
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
USE_PYTHON= 2.4+
|
|
|
|
|
2008-04-03 13:08:55 +00:00
|
|
|
OPTIONS= TIMIDITY "Install timidity++ as MIDI player" Off \
|
2007-03-11 09:51:34 +00:00
|
|
|
PLAYMIDI "Install playmidi as MIDI player" Off
|
|
|
|
|
2008-04-03 13:08:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-bin-${DISTVERSION}
|
|
|
|
WRKDOC= ${WRKDIR}/${PORTNAME}-pdf-${DISTVERSION:S,a,,}
|
2007-03-11 09:51:34 +00:00
|
|
|
|
|
|
|
CP_INSTALL_MMA= ${WRKSRC}/cp-install
|
2007-08-06 13:43:58 +00:00
|
|
|
FIND_FILES= ${WRKSRC} -type f -and \( -name "*.py" -or -name 'cp-install' -or -name 'mkall' \) -print0
|
2007-03-11 09:51:34 +00:00
|
|
|
FIND_FILES_BAK= ${WRKSRC} -type f -and \( -name "*.orig" -or -name "*.bak" \)
|
|
|
|
|
|
|
|
.if !defined (NOPORTDOCS)
|
2008-04-03 13:08:55 +00:00
|
|
|
DISTFILES+= ${PORTNAME}-pdf-${DISTVERSION:S,a,,}.tar.gz
|
2007-03-11 09:51:34 +00:00
|
|
|
.endif
|
|
|
|
|
2007-08-06 13:43:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2007-03-11 09:51:34 +00:00
|
|
|
|
2007-08-06 13:43:58 +00:00
|
|
|
XARGS_ARGS= -0
|
|
|
|
REINPLACE_ARGS= -i.bak -e 's,/usr/local/share/mma,${DATADIR},' \
|
|
|
|
-e 's,/usr/local/etc,${LOCALBASE}/etc,' \
|
|
|
|
-e 's,%%DOCSDIR%%,${DOCSDIR},' \
|
|
|
|
-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},' \
|
|
|
|
-e 's,%%PREFIX%%,${PREFIX},' \
|
|
|
|
-e 's,/usr/bin/env python,&${PYTHON_VER},'
|
2007-03-11 09:51:34 +00:00
|
|
|
|
|
|
|
post-patch:
|
2007-08-06 13:43:58 +00:00
|
|
|
@${FIND} ${FIND_FILES} | ${XARGS} ${XARGS_ARGS} ${REINPLACE_CMD}
|
2007-03-11 09:51:34 +00:00
|
|
|
@${FIND} ${FIND_FILES_BAK} -delete
|
|
|
|
@${TOUCH} ${WRKSRC}/includes/aria/.keepme
|
|
|
|
|
|
|
|
do-install:
|
2007-08-06 13:43:58 +00:00
|
|
|
@cd ${WRKSRC} && ${CP_INSTALL_MMA}
|
2007-03-11 09:51:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-08-06 13:43:58 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/pdf && ${CP} ${WRKDOC}/*.pdf ${DOCSDIR}/pdf/
|
2007-03-11 09:51:34 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (WITH_TIMIDITY)
|
|
|
|
RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity++
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (WITH_PLAYMIDI)
|
|
|
|
RUN_DEPENDS+= playmidi:${PORTSDIR}/audio/playmidi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|