aboutsummaryrefslogtreecommitdiff
path: root/graphics/libmng
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-06-18 22:55:40 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-06-18 22:55:40 +0000
commit53ac9ea355529306a03bdda7460fa7ff7b9bb324 (patch)
treec4870dc32c5632991cef98206da893db877d57b1 /graphics/libmng
parent7f344d00b70d76052e2f02a16f2c0906229d33ea (diff)
downloadports-53ac9ea355529306a03bdda7460fa7ff7b9bb324.tar.gz
ports-53ac9ea355529306a03bdda7460fa7ff7b9bb324.zip
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>
Notes
Notes: svn path=/head/; revision=44191
Diffstat (limited to 'graphics/libmng')
-rw-r--r--graphics/libmng/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/libmng/Makefile b/graphics/libmng/Makefile
index 1ea9d10e8a93..4eac92cd947f 100644
--- a/graphics/libmng/Makefile
+++ b/graphics/libmng/Makefile
@@ -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 \