aboutsummaryrefslogtreecommitdiff
path: root/audio/mma/Makefile
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2007-08-06 13:43:58 +0000
committerNicola Vitale <nivit@FreeBSD.org>2007-08-06 13:43:58 +0000
commit71f801e377af972ef9b08a69624a865488c8613b (patch)
tree612e3e9cc4bf4593a18953adaa25dbd141c44411 /audio/mma/Makefile
parent5135e1a2fe7bf1f0fbc96d2cc4e3cb58cd8dcaed (diff)
downloadports-71f801e377af972ef9b08a69624a865488c8613b.tar.gz
ports-71f801e377af972ef9b08a69624a865488c8613b.zip
Notes
Diffstat (limited to 'audio/mma/Makefile')
-rw-r--r--audio/mma/Makefile36
1 files changed, 14 insertions, 22 deletions
diff --git a/audio/mma/Makefile b/audio/mma/Makefile
index dc8df40fde50..919ab56817d7 100644
--- a/audio/mma/Makefile
+++ b/audio/mma/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= mma
-PORTVERSION= 1.1
-PORTREVISION= 1
+PORTVERSION= 1.2
+#PORTREVISION= 0
CATEGORIES= audio
MASTER_SITES= http://www.mellowood.ca/${PORTNAME}/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
@@ -27,40 +27,32 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-bin-${PORTVERSION}
WRKDOC= ${WRKDIR}/${PORTNAME}-pdf-${PORTVERSION}
CP_INSTALL_MMA= ${WRKSRC}/cp-install
-FIND_FILES= ${WRKSRC} -type f -and \( -name "*.py" -or -name 'cp-install' -or -name 'mkall' \)
+FIND_FILES= ${WRKSRC} -type f -and \( -name "*.py" -or -name 'cp-install' -or -name 'mkall' \) -print0
FIND_FILES_BAK= ${WRKSRC} -type f -and \( -name "*.orig" -or -name "*.bak" \)
-FIND_DOCS= . -type f -name "*.pdf"
.if !defined (NOPORTDOCS)
DISTFILES+= ${PORTNAME}-pdf-${PORTVERSION}.tar.gz
.endif
+.include <bsd.port.pre.mk>
-PLIST_SUB= PORTEXAMPLES=${PORTEXAMPLES}
+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},'
post-patch:
- @${FIND} ${FIND_FILES} -exec ${REINPLACE_CMD} \
- -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},' {} ";"
+ @${FIND} ${FIND_FILES} | ${XARGS} ${XARGS_ARGS} ${REINPLACE_CMD}
@${FIND} ${FIND_FILES_BAK} -delete
@${TOUCH} ${WRKSRC}/includes/aria/.keepme
do-install:
- @cd ${WRKSRC} && ${ENV} NOPORTDOCS=${NOPORTDOCS} WITHOUT_EXAMPLES=${WITHOUT_EXAMPLES} ${CP_INSTALL_MMA}
+ @cd ${WRKSRC} && ${CP_INSTALL_MMA}
.if !defined(NOPORTDOCS)
- @cd ${WRKDOC} && ${MKDIR} ${DOCSDIR}/pdf && ${FIND} ${FIND_DOCS} -exec ${INSTALL_DATA} {} ${DOCSDIR}/pdf/ ";"
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if defined (WITHOUT_EXAMPLES)
-PORTEXAMPLES= "@comment "
-.else
-PORTEXAMPLES= ""
+ @${MKDIR} ${DOCSDIR}/pdf && ${CP} ${WRKDOC}/*.pdf ${DOCSDIR}/pdf/
.endif
.if defined (WITH_TIMIDITY)