summaryrefslogtreecommitdiff
path: root/audio/denemo
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2003-10-04 13:57:00 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2003-10-04 13:57:00 +0000
commit747b751dbf1a38f81d99546a65a2d7d3cc213609 (patch)
treede79fdb051b5c474f5559160aceaf1e8a19ffb3a /audio/denemo
parentUpgrade to nessus version 2.0.8 (diff)
Avoid Perl. Use the DATADIR and DOCSDIR macros.
PR: 47651 Submitted by: Simon Schubert of ath.cx Rename the post-configure target to pre-patch because it applies a patch.
Notes
Notes: svn path=/head/; revision=90243
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