On 2021/06/18 01:15, Hannu Vuolasaho wrote:
> Hello everyone!
>
> I'm trying to make a port of Ringdove pcb tools (pcb-rnd, camv-rnd)
> and I'm working with the needed common part librnd.
>
> Currently I'm stuck in SHARED_LIBS. How should I manage the versions?
> Ringdove programs don't use libtool and currently I have in my PLIST
> for example
>
> @so lib/librnd-poly.so
> lib/librnd-poly.so.3
> @bin lib/librnd-poly.so.3.0.0-dev
Only one of these files should be created, it should be named
(initially) librnd-poly.so.0.0 and appear in the PLIST as
@so lib/librnd-poly.so.${LIBrnd-poly_VERSION} - the version number
needs to be under control of the SHARED_LIBS line in the port.
Marc Espie wrote:
> Stuff that doesn't use libtool or cmake or similar framework will tend
> to do things by hand, sorry.
>
> In general, patching the Makefile (or equivalent) to use the correctly
> named variables is the way to go.
>
> see bsd.port.mk(5) for the variable name
>
..
> In the case at hand, grepping for soname will put you on the right track
> for finding the Makefile that needs patching.
>
> (I had a look at the INSTALL... I wish you good luck. Most software that is
> so GNU-centric that they say "you need make" when they obviously mean
> "gnu-make" is probably going to be heaps of fun to port)
grepping for "LIB.*_VERSION" in the ports tree might show up something
borrowable too.
No comments:
Post a Comment