Hello,
this patch adds support for a new variable - "LIBDIR" within .pc
template files.
This patch is an prerequisite to allow further patches to have variable
lib target dir
during build of netsurf libs (libparserutils, hubbub, etc.).
This is "mandatory" at least for freemint compiler. But I guess also
x64 builds can
make use of that.
The freemint toolchain uses:
/lib
/lib/m68020
/lib/m68020-60
/lib/m5475
Currently, the build can only be cleanly done for /lib.
Greets,
m
Here is the patch ( also attached ):
===================================================================
Index: buildsystem/makefiles/Makefile.top
===================================================================
--- buildsystem/makefiles/Makefile.top (Revision 13503)
+++ buildsystem/makefiles/Makefile.top (Arbeitskopie)
@@ -275,6 +275,7 @@
-e 's#PATCH#$(patch-version)#' \
-e 's#VERSION#$(COMPONENT_VERSION)#' \
-e 's#REQUIRED#$(__required)#' \
+ -e 's#LIBDIR#$(LIBDIR)#' \
$1 >$(BUILDDIR)/$(1:.in=)
$(INSTALL) $(INSTALLFLAGS) -m 644 $(BUILDDIR)/$(1:.in=) \
$2/$(1:.in=)Index: buildsystem/makefiles/Makefile.top
===================================================================
--- buildsystem/makefiles/Makefile.top (Revision 13503)
+++ buildsystem/makefiles/Makefile.top (Arbeitskopie)
@@ -275,6 +275,7 @@
-e 's#PATCH#$(patch-version)#' \
-e 's#VERSION#$(COMPONENT_VERSION)#' \
-e 's#REQUIRED#$(__required)#' \
+ -e 's#LIBDIR#$(LIBDIR)#' \
$1 >$(BUILDDIR)/$(1:.in=)
$(INSTALL) $(INSTALLFLAGS) -m 644 $(BUILDDIR)/$(1:.in=) \
$2/$(1:.in=)