mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
directfb: convert to autotools infrastructure for host package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
368519f649
commit
d6e53ad0a9
@ -150,56 +150,23 @@ DIRECTFB_CONF_OPT = \
|
|||||||
|
|
||||||
DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)
|
DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,directfb))
|
HOST_DIRECTFB_DEPENDENCIES = host-pkg-config
|
||||||
|
HOST_DIRECTFB_CONF_OPT = \
|
||||||
|
|
||||||
# directfb-csource for the host
|
|
||||||
|
|
||||||
DIRECTFB_HOST_DIR:=$(BUILD_DIR)/directfb-$(DIRECTFB_VERSION)-host
|
|
||||||
DIRECTFB_HOST_BINARY:=$(HOST_DIR)/usr/bin/directfb-csource
|
|
||||||
|
|
||||||
$(DL_DIR)/$(DIRECTFB_SOURCE):
|
|
||||||
$(call DOWNLOAD,$(DIRECTFB_SITE),$(DIRECTFB_SOURCE))
|
|
||||||
|
|
||||||
$(STAMP_DIR)/host_directfb_unpacked: $(DL_DIR)/$(DIRECTFB_SOURCE)
|
|
||||||
mkdir -p $(DIRECTFB_HOST_DIR)
|
|
||||||
$(INFLATE$(suffix $(DIRECTFB_SOURCE))) $< | \
|
|
||||||
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(DIRECTFB_HOST_DIR) $(TAR_OPTIONS) -
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(STAMP_DIR)/host_directfb_configured: $(STAMP_DIR)/host_directfb_unpacked $(STAMP_DIR)/host_pkgconfig_installed
|
|
||||||
(cd $(DIRECTFB_HOST_DIR); rm -rf config.cache; \
|
|
||||||
$(HOST_CONFIGURE_OPTS) \
|
|
||||||
CFLAGS="$(HOST_CFLAGS)" \
|
|
||||||
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
||||||
./configure \
|
|
||||||
--prefix="$(HOST_DIR)/usr" \
|
|
||||||
--sysconfdir="$(HOST_DIR)/etc" \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
--disable-multi \
|
--disable-multi \
|
||||||
--with-gfxdrivers=none \
|
--with-gfxdrivers=none \
|
||||||
--with-inputdrivers=none \
|
--with-inputdrivers=none
|
||||||
)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(STAMP_DIR)/host_directfb_compiled: $(STAMP_DIR)/host_directfb_configured
|
HOST_DIRECTFB_BUILD_CMDS = \
|
||||||
$(MAKE) -C $(DIRECTFB_HOST_DIR)/tools directfb-csource
|
$(MAKE) -C $(@D)/tools directfb-csource
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(STAMP_DIR)/host_directfb_installed: $(STAMP_DIR)/host_directfb_compiled
|
HOST_DIRECTFB_INSTALL_CMDS = \
|
||||||
$(INSTALL) -m 0755 $(DIRECTFB_HOST_DIR)/tools/directfb-csource $(HOST_DIR)/usr/bin
|
$(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
|
||||||
touch $@
|
|
||||||
|
|
||||||
host-directfb: $(STAMP_DIR)/host_directfb_installed
|
$(eval $(call AUTOTARGETS,package,directfb))
|
||||||
|
$(eval $(call AUTOTARGETS,package,directfb,host))
|
||||||
|
|
||||||
host-directfb-source: directfb-source
|
# directfb-csource for the host
|
||||||
|
DIRECTFB_HOST_BINARY:=$(HOST_DIR)/usr/bin/directfb-csource
|
||||||
host-directfb-clean:
|
|
||||||
rm -f $(addprefix $(STAMP_DIR)/host_directfb_,unpacked configured compiled installed)
|
|
||||||
rm -f $(HOST_DIR)/usr/bin/directfb-csource
|
|
||||||
-$(MAKE) -C $(DIRECTFB_HOST_DIR)/tools clean
|
|
||||||
|
|
||||||
host-directfb-dirclean:
|
|
||||||
rm -rf $(DIRECTFB_HOST_DIR)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user