[Bug 267784] devel/evdev-proto: provide pkg-config support

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267784

            Bug ID: 267784
           Summary: devel/evdev-proto: provide pkg-config support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
          Assignee: [email protected]
             Flags: maintainer-feedback?([email protected])

Projects outside of ports/ would like to support FreeBSD evdev (mainly via
Wayland) without hardcoding -I/usr/local/include in build glue or CI config.
pkg-config would cover Meson + autotools and maybe CMake. Currently, this is
worked around via USES=localbase in ports/.

Example:

$ cat foo.c
#include <linux/input-event-codes.h>
#include <stdio.h>

int main()
{
  printf("<F1> evdev code: %d\n", KEY_F1);
  return 0;
}

$ cat meson.build
project('foo', 'c')

evdev_proto = dependency('evdev-proto', required: false) # DragonFly, FreeBSD

executable('foo', files('foo.c'), dependencies: evdev_proto)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.