1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

This port depends on lcms, which recently started to install its lcms.h

into ${PREFIX}/include/ instead of ${PREFIX}/include/lcms/ .

Provide a post-patch workaround, which looks for lcms.h and patches the
libmng_types.h if necessary. This fix was sitting in my own ports tree
for a while and I thought I committed it, until the pr 28202 got transfered
to me this morning:

PR:	28202
Submitted by:	Dan Pelleg <dpelleg+bsd@cs.cmu.edu>
This commit is contained in:
Mikhail Teterin 2001-06-18 22:55:40 +00:00
parent 7f344d00b7
commit 53ac9ea355
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44191

View File

@ -28,8 +28,8 @@ MAN3= libmng.3
MAN5= mng.5 jng.5
post-patch:
${PERL} -pi -e 's%lcms/lcms.h%lcms.h%' ${WRKSRC}/configure \
${WRKSRC}/libmng_types.h
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 \