buildlink3.mk for devel/gettext-tools

View: New views
3 Messages — Rating Filter:   Alert me  

buildlink3.mk for devel/gettext-tools

by Eric Schnoebelen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm attempting to package a piece of software that uses the
libgettextpo.so library that is part of devel/gettext-tools.

Unfortunately, devel/gettext-tools does not have a buildlink3.mk
file to include.  I've created the following using createbuildlink:

        # $NetBSD$

        BUILDLINK_TREE+= gettext-tools

        .if !defined(GETTEXT_TOOLS_BUILDLINK3_MK)
        GETTEXT_TOOLS_BUILDLINK3_MK:=

        BUILDLINK_API_DEPENDS.gettext-tools+= gettext-tools>=0.14.6nb1
        BUILDLINK_PKGSRCDIR.gettext-tools?= ../../devel/gettext-tools

        .include "../../devel/gettext-lib/buildlink3.mk"

        .endif # GETTEXT_TOOLS_BUILDLINK3_MK

        BUILDLINK_TREE+= -gettext-tools

Any objections to my commiting this?

--
Eric Schnoebelen eric@... http://www.cirr.com
        "Pleasure in the job puts perfection in the work" -- Aristotle

Re: buildlink3.mk for devel/gettext-tools

by Joerg Sonnenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 06, 2009 at 04:00:17PM -0600, Eric Schnoebelen wrote:
> I'm attempting to package a piece of software that uses the
> libgettextpo.so library that is part of devel/gettext-tools.

What does it use it for?

Joerg

Re: buildlink3.mk for devel/gettext-tools

by Eric Schnoebelen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Joerg Sonnenberger writes:
- On Fri, Nov 06, 2009 at 04:00:17PM -0600, Eric Schnoebelen wrote:
- > I'm attempting to package a piece of software that uses the
- > libgettextpo.so library that is part of devel/gettext-tools.
-
- What does it use it for?

Why does it matter?  

The application is coded to use it, and trying to rip it out looks
like a lot of work (expecially given the application is written in
C++.)

In digging through the source, they seem to want to do per
session localization, basically on the fly..

The application is a XMPP transport, so there may be many
clients, all wanting to use a different localization.


--
Eric Schnoebelen eric@... http://www.cirr.com
   In God we Trust -- all others must submit an X.509 certificate.
                        -- Charles Forsythe