Date: Tue, 27 Jan 2004 09:24:32 -0800 (PST) From: Trevor Johnson <trevor@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/61992: USE_GETTEXT Message-ID: <200401271724.i0RHOWoi098693@freefall.freebsd.org> Resent-Message-ID: <200401271730.i0RHUHoe098883@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 61992 >Category: ports >Synopsis: USE_GETTEXT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 27 09:30:17 PST 2004 >Closed-Date: >Last-Modified: >Originator: Trevor Johnson >Release: FreeBSD 5.2-RELEASE i386 >Organization: N/A >Environment: bsd.port.mk 1.483 >Description: This is a variable to add dependencies for ports which need gettext, so that when the libintl version changes, the ports which link to it do not need to be changed to use it (although their PORTREVISIONs should be incremented), but instead only one or two lines in bsd.port.mk would need to be changed. The 314 ports listed in <URL:http://people.freebsd.org/~trevor/ports/gettext-dependencies.diff> could use this. >How-To-Repeat: >Fix: This patch is also available from <URL:http://people.freebsd.org/~trevor/ports/use-gettext.diff>. It would add 8 lines to bsd.port.mk. N.B. this patch assumes the use of gettext 0.13.x. For 0.12.1, it should instead read +BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext-old +LIB_DEPENDS+= intl.5:${PORTSDIR}/devel/gettext-old Index: /usr/ports/Mk/bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.483 diff -u -r1.483 bsd.port.mk --- /usr/ports/Mk/bsd.port.mk 24 Jan 2004 01:26:30 -0000 1.483 +++ /usr/ports/Mk/bsd.port.mk 27 Jan 2004 17:00:49 -0000 @@ -307,6 +307,9 @@ # CPPFLAGS and LDFLAGS in CONFIGURE_ENV. # Default: not set. ## +# USE_GETTEXT - Says that the port uses GNU gettext (libintl) for building and +# running. +## # USE_PERL5 - Says that the port uses perl5 for building and running. # USE_PERL5_BUILD - Says that the port uses perl5 for building. # USE_PERL5_RUN - Says that the port uses perl5 for running. @@ -1617,6 +1620,11 @@ .if defined(USE_RC_SUBR) RUN_DEPENDS+= ${LOCALBASE}/etc/rc.subr:${PORTSDIR}/sysutils/rc_subr RC_SUBR= ${LOCALBASE}/etc/rc.subr +.endif + +.if defined(USE_GETTEXT) +BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext +LIB_DEPENDS+= intl.6:${PORTSDIR}/devel/gettext .endif .if defined(USE_LINUX) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401271724.i0RHOWoi098693>