Re: New port: math/polymake -- some questions and help needed

From: Thierry Thomas <>
Date: Mon, 14 Jun 2021 21:12:47 UTC
Le lun. 14 juin 21 à 21:41:02 +0200, Philipp Ost <>
 écrivait :

> Hi ports@


> I've been working on a port of polymake ( Most of the work 
> is done, but there are some questions. Please advise:

Remark: this is a resurrection

$ grep polymake /usr/ports/MOVED
math/polymake||2014-06-22|Has expired: Does not build with any supported version of Perl

> - How to deal with machine/installation dependent path names?
> polymake installs a helper library into 
> ${PREFIX}/libexec/polymake/perlx/%%PERL_VERSION%%/amd64-freebsd-thread-multi/auto/Polymake/Ext/
> amd64-freebsd-thread-multi is the output of
> 	perl -E 'use Config; print "$Config::Config{archname}\n";'
> How do I correctly handle this entry in pkg-plist?

You can define a variable to be passed in plist:

and then %%ARCH%% will be available.

> - From reading the Porters Handbook, I get the impression that setting 
> DESTDIR is frowned upon. However, if I don't set DESTDIR=${STAGEDIR} in 
> the do-install target, "make stage" dumps everything to ${PREFIX}. Any 
> comments on this?

I guess that you’ll have to patch the Makefile…

> - polymake installs a shared library I set USE_LDCONFIG, 
> but "portlint -A" complains that no libraries are installed. Why?
> If I do install the port in its current form, everything looks fine:
> $ pkg info polymake
> ...
> Shared Libs provided:
> ...
> $
> Should I worry about this?

What is the output of `ldconfig -r | grep polymake'?

On FreeBSD, if your library is, you should also
install a symlink for and
Without that, it won’t be registered in the libraries hints file.

> You can find the current state of affairs at
> I appreciate any hints and comments you may have. It's my first port and 
> I hope I didn't miss anything important. ;-)
> Thanks in advance!

Thanks for this revival!
Th. Thomas.