mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
freetype: add host version
This commit is contained in:
parent
0296059112
commit
33552590d5
@ -23,3 +23,42 @@ $(FREETYPE_HOOK_POST_INSTALL):
|
||||
$(STAGING_DIR)/usr/bin/freetype-config
|
||||
touch $@
|
||||
|
||||
# freetype for the host
|
||||
FREETYPE_HOST_DIR:=$(BUILD_DIR)/freetype-$(FREETYPE_VERSION)-host
|
||||
FREETYPE_HOST_BINARY:=$(HOST_DIR)/usr/bin/freetype-config
|
||||
|
||||
$(FREETYPE_HOST_DIR)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
|
||||
mkdir -p $(@D)
|
||||
$(INFLATE$(suffix $(FREETYPE_SOURCE))) $< | \
|
||||
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
|
||||
touch $@
|
||||
|
||||
$(FREETYPE_HOST_DIR)/.configured: $(FREETYPE_HOST_DIR)/.unpacked $(PKGCONFIG_HOST_BINARY)
|
||||
(cd $(@D); rm -rf config.cache; \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS)" \
|
||||
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
$(@D)/configure \
|
||||
--prefix=$(HOST_DIR)/usr \
|
||||
--sysconfdir=$(HOST_DIR)/etc \
|
||||
)
|
||||
touch $@
|
||||
|
||||
$(FREETYPE_HOST_DIR)/.compiled: $(FREETYPE_HOST_DIR)/.configured
|
||||
$(MAKE) -C $(@D)
|
||||
touch $@
|
||||
|
||||
$(FREETYPE_HOST_BINARY): $(FREETYPE_HOST_DIR)/.compiled
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(<D) install
|
||||
|
||||
host-freetype: $(FREETYPE_HOST_BINARY)
|
||||
|
||||
host-freetype-source: freetype-source
|
||||
|
||||
host-freetype-clean:
|
||||
rm -f $(addprefix $(FREETYPE_HOST_DIR)/,.unpacked .configured .compiled)
|
||||
-$(MAKE) -C $(FREETYPE_HOST_DIR) uninstall
|
||||
-$(MAKE) -C $(FREETYPE_HOST_DIR) clean
|
||||
|
||||
host-freetype-dirclean:
|
||||
rm -rf $(FREETYPE_HOST_DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user