Subject: Re: should .buildlink-x11 (or .x11-buildlink) ever be different from
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/06/2004 00:20:33
> Here is one patch that appears to work for me for buildlink2 for when my
> X11BASE is same as LOCALBASE (X11BASE is /usr/pkg). (I need buildlink3
> done too, but it is quite different.)
And here is a patch for buildlink3 that has been working for me. (Probably
my buildlink2 patch patches more than needed.)
--- mk/buildlink3/bsd.buildlink3.mk 2004/02/05 07:17:14 1.75
+++ mk/buildlink3/bsd.buildlink3.mk 2004/02/06 08:19:14
@@ -501,10 +501,12 @@
${_BLNK_COOKIE.${_pkg_}}:
${_PKG_SILENT}${_PKG_DEBUG} \
+ buildlink_dir="${BUILDLINK_DIR}"; \
+ if [ "${X11BASE}" != "${LOCALBASE}" ] ; then \
case ${BUILDLINK_PREFIX.${_pkg_}} in \
${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \
- *) buildlink_dir="${BUILDLINK_DIR}" ;; \
esac; \
+ fi; \
cd ${BUILDLINK_PREFIX.${_pkg_}}; \
${_BLNK_FILES_CMD.${_pkg_}} | \
while read file; do \
Jeremy C. Reed
http://www.isp-faq.com/