pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/devel/zlib
Please try the attached patch.
diff --git a/devel/zlib/builtin.mk b/devel/zlib/builtin.mk
index d696319..c6114fe 100644
--- a/devel/zlib/builtin.mk
+++ b/devel/zlib/builtin.mk
@@ -76,3 +76,33 @@ MAKEVARS+= USE_BUILTIN.zlib
USE_BUILTIN.zlib= no
. endif
.endif
+
+###
+### The section below only applies if we are not including this file
+### solely to determine whether a built-in implementation exists.
+###
+CHECK_BUILTIN.zlib?= no
+.if !empty(CHECK_BUILTIN.zlib:M[nN][oO])
+. if !empty(USE_BUILTIN.zlib:M[yY][eE][sS])
+
+BUILDLINK_TARGETS+= fake-zlib-pc
+
+_FAKE_ZLIB_PC=${BUILDLINK_DIR}/lib/pkgconfig/zlib.pc
+
+fake-zlib-pc:
+ ${RUN} \
+ sedsrc=../../devel/zlib/files/zlib.pc.in; \
+ src=${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX}/pkgconfig/zlib.pc;\
+ dst=${_FAKE_ZLIB_PC}; \
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig;\
+ if [ ! -f $${dst} && ! -f $${src} ]; then \
+ ${ECHO_BUILDLINK_MSG} "Creating $${dst}"; \
+ ${SED} -e s,@prefix@,${BUILDLINK_PREFIX.zlib},\
+ -e
s,@libdir@,${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX},\
+ -e s,@VERSION@,${BUILTIN_VERSION.zlib},\
+ $${sedsrc} > $${dst}; \
+ else
\
+ ${LN} -sf $${src} $${dst}; \
+ fi
+. endif
+.endif # CHECK_BUILTIN.zlib
Home |
Main Index |
Thread Index |
Old Index