You are not logged in.

#1 2018-06-12 17:30:38

ss
Member
Registered: 2018-06-04
Posts: 39

[SOLVED] What is freetype-config called in Arch?

UPDATE:
Thank you all for the suggestion and solution. So pkg-config is still there even if pkgconf is installed. And I will report upstream to replace the obsolete freetype-config.
This worked for me.

cat $HOME/src/netsurf-all-3.7/netsurf/frontends/framebuffer/Makefile
...
CFLAGS += -DFB_USE_FREETYPE $(shell pkg-config --cflags freetype2)
LDFLAGS += $(shell pkg-config --libs freetype2)
...

---------------------------------

OP:
I'm trying the manually compile the netsurf web browser with framebuffer and truetype2 support. It requires a program called freetype-config, which I was not able to find. Neither with pacman -Ss, pkgfile --search, nor in internet. 

# Makefile
ifeq ($(NETSURF_FB_FONTLIB),freetype)
  CFLAGS += -DFB_USE_FREETYPE $(shell freetype-config --cflags)
  LDFLAGS += $(shell freetype-config --libs)
endif

What is the equivalent program in Arch? Or at least how should I manually edited the CFLAGS and LDFLAGS?

Moreover, to compile netsurf, it requires pkg-config, which was replaced in my system by pkgconf in a recent update. What is the right way to solve the conflict, supposed I just need it for compiling netsurf, and want to keep pkgconf for the rest of my Arch installation?

Thank you.

Last edited by ss (2018-06-13 22:01:14)

Offline

#2 2018-06-12 17:38:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 19,340
Website

Re: [SOLVED] What is freetype-config called in Arch?

Use pkgconf:

CFLAGS += -DFB_USE_FREETYPE $(shell pkgconf --cflags freetype2)
LDFLAGS += $(shell pkgconf --libs freetype2)

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-06-13 03:47:54

Eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 1,963

Re: [SOLVED] What is freetype-config called in Arch?

pkgconf is a drop-in replacement for pkg-config (and parallel implementation), hence why pkg-config is now a wrapper script that calls pkgconf (and does double duty as x86_64-pc-linux-gnu-pkg-config, with matching i686-pc-linux-gnu-pkg-config).

Use pkg-config, it is more portable. Report an upstream bug too, there's no reason to continue using freetype-config when freetype2 has supported pkg-config since 2003. See https://savannah.nongnu.org/bugs/?53093

Last edited by Eschwartz (2018-06-13 03:48:38)

Offline

#4 2018-06-13 05:55:45

seth
Member
Registered: 2012-09-03
Posts: 7,243

Re: [SOLVED] What is freetype-config called in Arch?

freetype-config used to be part of freetype2; not sure whether the latter drop is mistake or intentional.

Offline

#5 2018-06-13 11:19:17

Eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 1,963

Re: [SOLVED] What is freetype-config called in Arch?

The latter drop what? freetype2 did not go anywhere...

Offline

#6 2018-06-13 11:26:59

seth
Member
Registered: 2012-09-03
Posts: 7,243

Re: [SOLVED] What is freetype-config called in Arch?

usr/bin/freetype-config inside the package - s/latter/recent/g

Offline

#7 2018-06-13 11:34:15

Eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 1,963

Re: [SOLVED] What is freetype-config called in Arch?

Did you read my link? The FreeType2 upstream developer configured the latest versions of the FreeType2 project to no longer install this script due to it being over 15 years obsolete. This is one of the least accidental things that have ever happened in these forums.

Offline

#8 2018-06-13 11:45:34

seth
Member
Registered: 2012-09-03
Posts: 7,243

Re: [SOLVED] What is freetype-config called in Arch?

Nope, sorry - I just saw "pkgconf is a drop-in replacement for pkg-config" and thought this was just addressed at Trilby and stopped short ;-)

Offline

#9 2018-06-13 11:50:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 19,340
Website

Re: [SOLVED] What is freetype-config called in Arch?

I agree pkg-config is more portable (among linuxen).  My initial suggestion was due to my history of always confusing the two tools, and a quick check on my system showed pkgconf was there and did what it was supposed to.

That said, if this is for a arch linux specific patch, pkgconf would still be reasonable as that did just replace pkg-config (even though the former still provides the latter).

Any suggestions sent to upstream, though, should definitely be for pkg-config.

Last edited by Trilby (2018-06-13 11:50:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB