Open jasonsturges opened 9 years ago
pkgconfig can be upgraded to v0.27, then configured with --with-internal-glib
pkgconfig:
rm -rf $(BUILD)/pkgconfig
mkdir -p $(BUILD)/pkgconfig
cd $(BUILD)/pkgconfig && CFLAGS="-I$(SRCROOT)/avm2_env/misc" $(SRCROOT)/$(DEPENDENCY_PKG_CFG)/configure \
--prefix=$(SDK)/usr --build=$(BUILD_TRIPLE) --host=$(HOST_TRIPLE) --target=$(TRIPLE) --disable-shared \
--disable-dependency-tracking \
--disable-option-checking \
--with-internal-glib
cd $(BUILD)/pkgconfig && $(MAKE) && $(MAKE) install
This introduces a dependency on gettext.
How has this been handled? Are pkg-config and glib expected as dependencies?
Maybe this is moot given the new build tool in development.
I can install gettext and glib:
$ brew install gettext
$ brew install glib
Then, execute the equivalent output of:
export GLIB_CFLAGS="$(pkg-config --cflags glib-2.0)"
export GLIB_LIBS="$(pkg-config --libs glib-2.0)"
Which for me is:
export GLIB_CFLAGS="-I/usr/local/Cellar/glib/2.44.0/include/glib-2.0 -I/usr/local/Cellar/glib/2.44.0/lib/glib-2.0/include -I/usr/local/opt/gettext/include "
export GLIB_LIBS="-L/usr/local/Cellar/glib/2.44.0/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl "
Actually, I'm going to reopen this to reference issues while I rework the makefile and build.
Mac OS X build is failing at target pkgconfig:
pkgconfig v0.26 dropped embedded glib, now expecting glib as an external dependency.