diff options
author | trevor <trevor@FreeBSD.org> | 2003-10-04 21:57:00 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2003-10-04 21:57:00 +0800 |
commit | 2c6ab2b78acf851b613f71ea0f322cbbfb23c2e8 (patch) | |
tree | 802538301a95192383348796493dc43f308b218d /audio/denemo/Makefile | |
parent | 0a193c0b85f6eac42c4799c42254c68aca5190a4 (diff) | |
download | freebsd-ports-gnome-2c6ab2b78acf851b613f71ea0f322cbbfb23c2e8.tar.gz freebsd-ports-gnome-2c6ab2b78acf851b613f71ea0f322cbbfb23c2e8.tar.zst freebsd-ports-gnome-2c6ab2b78acf851b613f71ea0f322cbbfb23c2e8.zip |
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.
Diffstat (limited to 'audio/denemo/Makefile')
-rw-r--r-- | audio/denemo/Makefile | 14 |
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 |