Page MenuHomeFreeBSD

x11/colormeter: Add new port
ClosedPublic

Authored by dteske on Jul 24 2026, 3:35 AM.
Tags
None
Referenced Files
F171169073: D58429.id182580.diff
Wed, Sep 9, 5:01 AM
F171117315: D58429.id182664.diff
Tue, Sep 8, 7:38 PM
Unknown Object (File)
Tue, Sep 8, 11:27 AM
Unknown Object (File)
Tue, Sep 8, 2:24 AM
Unknown Object (File)
Mon, Sep 7, 12:43 PM
Unknown Object (File)
Mon, Sep 7, 9:45 AM
Unknown Object (File)
Mon, Sep 7, 7:37 AM
Unknown Object (File)
Sun, Sep 6, 10:36 PM
Subscribers
None

Details

Summary

X11 pixel magnifier with live RGB readout from FrauBSD. Ctrl+L locks
the sample; Button1 drag moves the window. Installs colormeter(1).

Test Plan
$ make package
$ pkg install -y work/pkg/colormeter-1.0.pkg
$ pkg list colormeter

Should produce:

/usr/local/bin/colormeter
/usr/local/share/licenses/colormeter-1.0/BSD2CLAUSE
/usr/local/share/licenses/colormeter-1.0/LICENSE
/usr/local/share/licenses/colormeter-1.0/catalog.mk
/usr/local/share/man/man1/colormeter.1.gz

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75075
Build 71958: arc lint + arc unit

Event Timeline

dteske created this revision.

Add Differential Revision trailer.

dteske edited the summary of this revision. (Show Details)

Add colormeter(1) man-page

This looks like an interesting and useful utility.

Port changes:

  • You need an entry in x11/Makefile
  • You need LIB_DEPENDS=libfontconfig.so:x11-fonts/fontconfig
% readelf -a /usr/local/bin/colormeter | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libXft.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]
In D58429#1360241, @jrm wrote:

This looks like an interesting and useful utility.

Port changes:

  • You need an entry in x11/Makefile
  • You need LIB_DEPENDS=libfontconfig.so:x11-fonts/fontconfig

Thanks!

% readelf -a /usr/local/bin/colormeter | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libXft.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]

I like that! Great way to check the needs of just the one tool without using ldd

Add x11/Makefile and missing LIB_DEPENDS for fontconfig

This revision is now accepted and ready to land.Mon, Aug 31, 9:38 PM
This revision was automatically updated to reflect the committed changes.