NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to get pkgsrc to use builtin/native libraries?



On Fri, 24 Apr 2026, Monica Vaida wrote:

Did you install all the X11 sets during install?

Yes.


Well, I built CDE on both 10.1_STABLE/amd64 and 11.0_RC3/i386 and it built
fine using only the system freetype/fontconfig (and, no cmake/python deps.).
Testing on 11.0_RC3/i386, CDE ran just fine too--but with the std. X11 bitmap
fonts (I don't know anything about CDE, so I don't know how to customize it
to use TTF fonts...) in the UI.

Don't know why it's not working on the VAX (never even *seen* a VAX IRL!).
Might fire up SIMH to investigate--if I have the time.

Ask on pkgsrc-users@ for fine tuning all this...

I will go do that now, hopefully it is ok to post on both lists.


I'm not on any of the pkgsrc MLs so that would be useful.

If you have any more ideas pleasw reply!


You can try the patch below. Since the system freetype *is* built with brotli
(for compressed WOFF2 files), this less disruptive patch should work. I haven't
built CDE again with this, but `make show-var VARNAME=USE_BUILTIN.freetype'
says `yes'.

```
diff -urN pkgsrc.orig/graphics/freetype2/buildlink3.mk pkgsrc/graphics/freetype2/buildlink3.mk
--- pkgsrc.orig/graphics/freetype2/buildlink3.mk	2024-08-18 19:54:53.000000000 +0000
+++ pkgsrc/graphics/freetype2/buildlink3.mk	2026-04-24 22:52:21.983264419 +0000
@@ -5,8 +5,8 @@
 .if !defined(FREETYPE2_BUILDLINK3_MK)
 FREETYPE2_BUILDLINK3_MK:=

-BUILDLINK_API_DEPENDS.freetype2+=	freetype2>=2.13.0
-BUILDLINK_ABI_DEPENDS.freetype2+=	freetype2>=2.13.2nb1
+BUILDLINK_API_DEPENDS.freetype2+=	freetype2>=2.10.0
+BUILDLINK_ABI_DEPENDS.freetype2+=	freetype2>=2.10.2nb1
 BUILDLINK_PKGSRCDIR.freetype2?=		../../graphics/freetype2
 BUILDLINK_INCDIRS.freetype2?=		include/freetype2

@@ -21,10 +21,6 @@
 pkgbase := freetype2
 .include "../../mk/pkg-build-options.mk"

-.if ${PKG_BUILD_OPTIONS.freetype2:Mbrotli}
-.include "../../archivers/brotli/buildlink3.mk"
-.endif
-
 .if ${PKG_BUILD_OPTIONS.freetype2:Mpng}
 CHECK_BUILTIN.freetype2:=	yes
 .include "../../graphics/freetype2/builtin.mk"
@@ -35,6 +31,12 @@
 .  endif
 .endif

+.if ${PKG_BUILD_OPTIONS.freetype2:Mbrotli}
+.  if ${USE_BUILTIN.freetype2:tl} != yes
+.    include "../../archivers/brotli/buildlink3.mk"
+.  endif
+.endif
+
 .endif # FREETYPE2_BUILDLINK3_MK

 BUILDLINK_TREE+=	-freetype2
```

-RVP


Home | Main Index | Thread Index | Old Index