[Bug 260873] print/libotf: add X11 option and fix otfview build

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 02 Jan 2022 09:57:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260873

            Bug ID: 260873
           Summary: print/libotf: add X11 option and fix otfview build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: nikola.lecic@anthesphoria.net
                CC: nikola.lecic@anthesphoria.net
             Flags: maintainer-feedback?(nikola.lecic@anthesphoria.net)

Created attachment 230620
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230620&action=edit
v1 (apply via "git am")

I'd like to build editors/emacs-devel with PGTK option for Wayland-only
environment without disabling OTF option. Currently, print/libotf checks for
X11 dependencies but doesn't use.

$ poudriere testport -j 122amd64 print/libotf
[...]
checking X11/Xaw/Command.h usability... no
checking X11/Xaw/Command.h presence... no
checking for X11/Xaw/Command.h... no
[...]
configure:12848: checking X11/Xaw/Command.h usability
configure:12848: cc -c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing
  conftest.c >&5
conftest.c:61:10: fatal error: 'X11/Xaw/Command.h' file not found
#include <X11/Xaw/Command.h>
         ^~~~~~~~~~~~~~~~~~~
[...]
=>> Checking shared library dependencies
 0x0000000000000001 NEEDED               Shared library: [libc.so.7]
 0x0000000000000001 NEEDED               Shared library: [libfreetype.so.6]
 0x0000000000000001 NEEDED               Shared library: [libotf.so.1]

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