Benoit Chesneau [2007-07-29, 19:55:18]:
> Hi,
> 
> I needed for a project xapian, a search engine librayry on openbsd.
> So, find enclosed ports for xapian and its bindings for python, ruby
> and php. Ports were tested on i386, and python binding work fine.
> Please tell me if it's ok for you.
> 
> I have made one port for xapian binding, php, python and ruby could be
> installed after. Is this the way to do it or should I use
> multipackages ? Problem with multi packages and flavors is that there
> isn't a main package, so I have to choose default language for main.
> Another way would be having one xapian package with flavors to add
> bindings. Tell me what is the preferred way.

This looks like a good candidate for MULTI_PACKAGES. You can also add a
no_bindings pseudo flavor, like the subversion port has, for instance.
Note that there does not need to be a "main" package, you can name the
packages anything you prefer.

You also need to fix the port so it builds the shared library version
that is mentioned in SHARED_LIBS (i.e. changing SHARED_LIBS should lead
to a different library version number being built). This may require some
patching, but there are many examples in the tree.

Reply via email to