tech-pkg archive

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

pkgconf instead of pkg-config



Hi!

pkg-config is not the most portable piece of software, since it relies
on glib2 but assumes to be used during the build of glib2, so it
includes its own copy of glib2.

For this and other reasons, FreeBSD ports uses pkgconf. I've switched
to pkgconf in my bulk builds, and after fixing a few minor issues,
this now builds ~2200 packages without issues.

Please try the attached patch if you're interested in this.
A bulk build with this is still outstanding. (hint hint, Jonathan ;) ).

Cheers,
 Thomas
Index: mk/tools/replace.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/tools/replace.mk,v
retrieving revision 1.277
diff -u -r1.277 replace.mk
--- mk/tools/replace.mk	25 Nov 2015 13:05:47 -0000	1.277
+++ mk/tools/replace.mk	23 Feb 2016 11:31:18 -0000
@@ -672,7 +672,7 @@
 .  if !empty(PKGPATH:Mdevel/pkg-config)
 MAKEFLAGS+=			TOOLS_IGNORE.pkg-config=
 .  elif !empty(_TOOLS_USE_PKGSRC.pkg-config:M[yY][eE][sS])
-TOOLS_DEPENDS.pkg-config?=	pkg-config>=0.25:../../devel/pkg-config
+TOOLS_DEPENDS.pkg-config?=	pkgconf-[0-9]*:../../devel/pkgconf
 TOOLS_CREATE+=			pkg-config
 TOOLS_PATH.pkg-config=		${LOCALBASE}/bin/pkg-config
 .  else


Home | Main Index | Thread Index | Old Index