aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libmng
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2001-06-19 06:55:40 +0800
committermi <mi@FreeBSD.org>2001-06-19 06:55:40 +0800
commit38cbf1a1df19742b00eeb3370cd642f9e4d7a169 (patch)
tree8e9fc07cddf64678dafa2c4eb340951d823f9ba9 /graphics/libmng
parent6210bb6c9123e6fdb4bdde43d6791a8598881c28 (diff)
downloadfreebsd-ports-graphics-38cbf1a1df19742b00eeb3370cd642f9e4d7a169.tar.gz
freebsd-ports-graphics-38cbf1a1df19742b00eeb3370cd642f9e4d7a169.tar.zst
freebsd-ports-graphics-38cbf1a1df19742b00eeb3370cd642f9e4d7a169.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>
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 1ea9d10e8a9..4eac92cd947 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 \