Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2020 09:08:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246861] graphics/openimageio: Add PTEX option, Use external ptex port by default
Message-ID:  <bug-246861-7788-JwMvWW4yNc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246861-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246861-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246861

--- Comment #2 from Shane <FreeBSD@ShaneWare.Biz> ---
I do think it should be possible, but I couldn't get it to work, patching t=
he
search paths was the only way I could get it to find the include.

The problem falls into it not checking for existing variables, the
PTEX_INCLUDE_DIR is always set using find_path(), overriding any passed val=
ues.

https://github.com/OpenImageIO/oiio/blob/master/src/cmake/modules/FindPTex.=
cmake

Also I install ptex headers into include/ptex while using include/wdas seem=
s a
more popular choice, that is what causes the existing search paths to fail,=
 as
even passing PTEX_LOCATION gets appended to, which ends up as
/usr/local/include/wdas

While I could adjust ptex to use a wdas folder, the better option is to make
the oiio search more flexible.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246861-7788-JwMvWW4yNc>