Subject: Alternative suggestion: devel/gettext in current
To: None <tech-pkg@netbsd.org>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: tech-pkg
Date: 02/11/2001 15:14:09
Here is another better solution that requires less changes:
- Add the following lines in pkgsrc/devel/gettext/Makefile
CURRENT_GETTEXT= /usr/bin/gettext
pre-fetch:
@if [ -f ${CURRENT_GETTEXT} ]; then \
${ECHO_MSG} "==========================================="; \
${ECHO_MSG} "gettext already available, no need to build"; \
${ECHO_MSG} "==========================================="; \
exit 1; \
fi
Ruibiao
On Sun, 11 Feb 2001, Ruibiao Qiu wrote:
>Since gettext is included in the current distribution, I wonder if
>we need to distinguish if a package depends on "devel/gettext"?
>Something like in bsd.pkg.mk may be of use:
>
>.if defined(USA_CURRENT_GETTEXT)
>BUILD_DEPENDS+= msgfmt:../../devel/gettext
>.endif
>
>and remove all such "BUILD_DEPENDS+= .../devel/gettext" lines in
>Makefiles.
>
>This can at least save some build time. It can also avoid the
>build errors when you have an old a.out gettext package on the
>way. (This problem caused me a lot of time. :( )