A section on gettext for the Porter's Handbook
Yar Tikhiy
yar at comp.chem.msu.su
Fri Sep 22 02:42:54 PDT 2006
On Fri, Sep 22, 2006 at 06:52:45AM +0200, Dirk Meyer wrote:
>
> > +.if defined(WITHOUT_NLS)
> > +CONFIGURE_ARGS+= --disable-nls
> > +PLIST_SUB+= NLS="@comment "
> > +.else
> > +USE_GETTEXT= yes
> > +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
> > +PLIST_SUB+= NLS=""
> > +.endif</programlisting>
>
> Please .. this will break ports which have LDFLAGS= set,
> eg. openssl or database ports.
> To preserve LDFLAGS, the example should be:
>
> -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
> +LDFLAGS+= -L${LOCALBASE}/lib
> +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
This is a very good point! Thanks! I've modified the current
version of the paragraph accordingly.
--
Yar
More information about the freebsd-ports
mailing list