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.
This commit is contained in:
Trevor Johnson 2003-10-04 13:57:00 +00:00
parent ecbea3a632
commit 747b751dbf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90243

View File

@ -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