summaryrefslogtreecommitdiff
path: root/audio/denemo
diff options
context:
space:
mode:
Diffstat (limited to 'audio/denemo')
-rw-r--r--audio/denemo/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/audio/denemo/Makefile b/audio/denemo/Makefile
index 585ea95dc41b..7bb30f3e14fc 100644
--- a/audio/denemo/Makefile
+++ b/audio/denemo/Makefile
@@ -33,8 +33,12 @@ USE_X_PREFIX= yes
BROKEN= "Does not compile"
.endif
-post-configure:
- ${PERL} -pi -e "s:<wait.h:<sys/wait.h:g" ${WRKSRC}/*.c
+pre-patch:
+.for ii in analysis_highlighting.c main.c playback.c print.c
+ ${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
+ ${SED} -e "s:<wait.h:<sys/wait.h:g" < ${WRKSRC}/${ii}.orig \
+ > ${WRKSRC}/${ii}
+.endfor
pre-install:
${ECHO_CMD} bin/${PORTNAME} > ${PLIST}
@@ -51,12 +55,12 @@ do-install:
${MKDIR} ${PREFIX}/share/denemo
${INSTALL_PROGRAM} ${WRKSRC}/denemo ${PREFIX}/bin
.for i in ${SHARED}
- ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/denemo
+ ${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/${DOCDIR}
+ ${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif