# -*-makefile-*- # $Id$ # # Copyright (C) 2007 by Marc Kleine-Budde # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # HOST_PACKAGES-$(PTXCONF_HOST_DIRECTFB) += host-directfb # # Paths and names # HOST_DIRECTFB_DIR = $(HOST_BUILDDIR)/$(DIRECTFB) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- host-directfb_get: $(STATEDIR)/host-directfb.get $(STATEDIR)/host-directfb.get: $(STATEDIR)/directfb.get @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- host-directfb_extract: $(STATEDIR)/host-directfb.extract $(STATEDIR)/host-directfb.extract: @$(call targetinfo, $@) @$(call clean, $(HOST_DIRECTFB_DIR)) @$(call extract, DIRECTFB, $(HOST_BUILDDIR)) @$(call patchin, DIRECTFB, $(HOST_DIRECTFB_DIR)) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- host-directfb_prepare: $(STATEDIR)/host-directfb.prepare HOST_DIRECTFB_PATH := PATH=$(HOST_PATH) HOST_DIRECTFB_ENV := $(HOST_ENV) # # autoconf # HOST_DIRECTFB_AUTOCONF := \ $(HOST_AUTOCONF) \ --disable-osx \ --disable-x11 \ --disable-network \ --disable-multi \ --disable-voodoo \ --disable-unique \ --disable-fbdev \ --disable-sdl \ --disable-vnc \ --disable-sysfs \ --disable-jpeg \ --disable-zlib \ --disable-gif \ --disable-freetype \ --disable-video4linux \ --disable-video4linux2 \ \ --with-gfxdrivers=none \ --with-inputdrivers=none \ \ --enable-png # we want png support, to let it build the tools $(STATEDIR)/host-directfb.prepare: @$(call targetinfo, $@) @$(call clean, $(HOST_DIRECTFB_DIR)/config.cache) cd $(HOST_DIRECTFB_DIR) && \ $(HOST_DIRECTFB_PATH) $(HOST_DIRECTFB_ENV) \ ./configure $(HOST_DIRECTFB_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- host-directfb_compile: $(STATEDIR)/host-directfb.compile $(STATEDIR)/host-directfb.compile: @$(call targetinfo, $@) cd $(HOST_DIRECTFB_DIR)/tools && $(HOST_DIRECTFB_PATH) $(MAKE) $(PARALLELMFLAGS) directfb-csource @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- host-directfb_install: $(STATEDIR)/host-directfb.install $(STATEDIR)/host-directfb.install: @$(call targetinfo, $@) # @$(call install, HOST_DIRECTFB,,h) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- host-directfb_clean: rm -rf $(STATEDIR)/host-directfb.* rm -rf $(HOST_DIRECTFB_DIR) # vim: syntax=make