# -*-makefile-*- # $Id$ # # Copyright (C) 2007 by Robert Schwebel # # 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_GTK) += host-gtk # # Paths and names # HOST_GTK_DIR = $(HOST_BUILDDIR)/$(GTK) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- host-gtk_get: $(STATEDIR)/host-gtk.get $(STATEDIR)/host-gtk.get: $(STATEDIR)/gtk.get @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- host-gtk_extract: $(STATEDIR)/host-gtk.extract $(STATEDIR)/host-gtk.extract: $(host-gtk_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(HOST_GTK_DIR)) @$(call extract, GTK, $(HOST_BUILDDIR)) @$(call patchin, GTK, $(HOST_GTK_DIR)) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- host-gtk_prepare: $(STATEDIR)/host-gtk.prepare HOST_GTK_PATH := PATH=$(HOST_PATH) HOST_GTK_ENV := \ $(HOST_ENV) \ ac_cv_path_CUPS_CONFIG=no # # autoconf # ifdef PTXCONF_HOST_GTK_LOADER_PNG HOST_GTK_LOADERS += png endif ifdef PTXCONF_HOST_GTK_LOADER_BMP HOST_GTK_LOADERS += bmp endif ifdef PTXCONF_HOST_GTK_LOADER_WBMP HOST_GTK_LOADERS += wbmp endif ifdef PTXCONF_HOST_GTK_LOADER_GIF HOST_GTK_LOADERS += gif endif ifdef PTXCONF_HOST_GTK_LOADER_ICO HOST_GTK_LOADERS += ico endif ifdef PTXCONF_HOST_GTK_LOADER_ANI HOST_GTK_LOADERS += ani endif ifdef PTXCONF_HOST_GTK_LOADER_JPEG HOST_GTK_LOADERS += jpeg endif ifdef PTXCONF_HOST_GTK_LOADER_PNM HOST_GTK_LOADERS += pnm endif ifdef PTXCONF_HOST_GTK_LOADER_RAS HOST_GTK_LOADERS += ras endif ifdef PTXCONF_HOST_GTK_LOADER_TIFF HOST_GTK_LOADERS += tiff endif ifdef PTXCONF_HOST_GTK_LOADER_XPM HOST_GTK_LOADERS += xpm endif ifdef PTXCONF_HOST_GTK_LOADER_TGA HOST_GTK_LOADERS += tga endif ifdef PTXCONF_HOST_GTK_LOADER_PCX HOST_GTK_LOADERS += pcx endif HOST_GTK_AUTOCONF := \ $(HOST_AUTOCONF) --enable-explicit-deps=yes \ --disable-glibtest \ --disable-modules \ --with-included-loaders=$(subst $(space),$(comma),$(GTK_LOADERS)) ifndef PTXCONF_HOST_GTK_LOADER_PNG HOST_GTK_AUTOCONF += --without-libpng endif ifndef PTXCONF_HOST_GTK_LOADER_TIFF HOST_GTK_AUTOCONF += --without-libtiff endif ifndef PTXCONF_HOST_GTK_LOADER_JPEG HOST_GTK_AUTOCONF += --without-libjpeg endif ifdef PTXCONF_HOST_GTK_TARGET_X11 HOST_GTK_AUTOCONF += --with-gdktarget=x11 endif ifdef PTXCONF_HOST_GTK_TARGET_DIRECTFB HOST_GTK_AUTOCONF += --with-gdktarget=directfb endif ifdef PTXCONF_HOST_GTK_TARGET_WIN32 HOST_GTK_AUTOCONF += --with-gdktarget=win32 endif $(STATEDIR)/host-gtk.prepare: $(host-gtk_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(HOST_GTK_DIR)/config.cache) cd $(HOST_GTK_DIR) && \ $(HOST_GTK_PATH) $(HOST_GTK_ENV) \ ./configure $(HOST_GTK_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- host-gtk_compile: $(STATEDIR)/host-gtk.compile $(STATEDIR)/host-gtk.compile: $(host-gtk_compile_deps_default) @$(call targetinfo, $@) cd $(HOST_GTK_DIR) && $(HOST_GTK_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- host-gtk_install: $(STATEDIR)/host-gtk.install $(STATEDIR)/host-gtk.install: $(host-gtk_install_deps_default) @$(call targetinfo, $@) @$(call install, HOST_GTK,,h) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- host-gtk_clean: rm -rf $(STATEDIR)/host-gtk.* rm -rf $(HOST_GTK_DIR) # vim: syntax=make