aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSven Neumann <s.neumann@raumfeld.com>2009-10-02 14:20:04 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-10-02 15:41:19 +0200
commit0eca108b738acf9d33eeb40a26912d1e30659512 (patch)
tree22bbb13871aa42772921ea1d5d313214d295cd48 /package
parenta6fc3387268574b2ba106f932398d1f38b34849a (diff)
downloadbuildroot-novena-0eca108b738acf9d33eeb40a26912d1e30659512.tar.gz
buildroot-novena-0eca108b738acf9d33eeb40a26912d1e30659512.zip
directfb: add host-directfb target for directfb-csource
directfb-csource is a code generation tool that may be needed to build other packages. Add host-directfb target that installs directfb-csource in the host_dir. Signed-off-by: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/directfb/directfb.mk52
1 files changed, 52 insertions, 0 deletions
diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk
index 409f79119..41757532d 100644
--- a/package/directfb/directfb.mk
+++ b/package/directfb/directfb.mk
@@ -150,3 +150,55 @@ DIRECTFB_CONF_OPT = \
DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)
$(eval $(call AUTOTARGETS,package,directfb))
+
+
+# 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 \
+ --disable-static \
+ --disable-debug \
+ --disable-multi \
+ --with-gfxdrivers=none \
+ --with-inputdrivers=none \
+ )
+ touch $@
+
+$(STAMP_DIR)/host_directfb_compiled: $(STAMP_DIR)/host_directfb_configured
+ $(MAKE) -C $(DIRECTFB_HOST_DIR)/tools directfb-csource
+ touch $@
+
+$(STAMP_DIR)/host_directfb_installed: $(STAMP_DIR)/host_directfb_compiled
+ $(INSTALL) -m 0755 $(DIRECTFB_HOST_DIR)/tools/directfb-csource $(HOST_DIR)/usr/bin
+ touch $@
+
+host-directfb: $(STAMP_DIR)/host_directfb_installed
+
+host-directfb-source: directfb-source
+
+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)