Restore the post-patch target to the previous version (using test(1)).

The make's ``.if exists'' works differently...

Submitted by:	KATO Tsuguru
This commit is contained in:
Mikhail Teterin 2001-07-17 14:21:36 +00:00
parent e31267efa6
commit d555a0e335
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45196

View File

@ -26,9 +26,8 @@ MAN3= libmng.3
MAN5= mng.5 jng.5
post-patch:
.if exists(${PREFIX}/include/lcms.h)
${PERL} -pi -e 's%lcms/lcms.h%lcms.h%' ${WRKSRC}/libmng_types.h
.endif
test ! -e ${PREFIX}/include/lcms.h || ${PERL} -pi -e \
's%lcms/lcms.h%lcms.h%' ${WRKSRC}/libmng_types.h
post-install:
cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 \