# -*-makefile-*- # $Id: template 6576 2006-12-24 13:06:25Z mkl $ # # Copyright (C) @YEAR@ by @AUTHOR@ # # 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 # PACKAGES-$(PTXCONF_@PACKET@) += @packet@ # # Paths and names # @PACKET@_VERSION := @VERSION@ @PACKET@ := @packet_filename@-$(@PACKET@_VERSION) @PACKET@_SUFFIX := @SUFFIX@ @PACKET@_URL := @URL@/$(@PACKET@).$(@PACKET@_SUFFIX) @PACKET@_SOURCE := $(SRCDIR)/$(@PACKET@).$(@PACKET@_SUFFIX) @PACKET@_DIR := $(BUILDDIR)/$(@PACKET@) ifdef PTXCONF_@PACKET@ $(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/@packet@.targetinstall endif # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.get: @$(call targetinfo, $@) @$(call touch, $@) $(@PACKET@_SOURCE): @$(call targetinfo, $@) @$(call get, @PACKET@) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.extract: @$(call targetinfo, $@) @$(call clean, $(@PACKET@_DIR)) @$(call extract, @PACKET@) @$(call patchin, @PACKET@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- @PACKET@_PATH := PATH=$(CROSS_PATH) @PACKET@_ENV := $(CROSS_ENV) # # autoconf # @PACKET@_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --with-fontdir=$(XORG_FONTDIR)/truetype $(STATEDIR)/@packet@.prepare: @$(call targetinfo, $@) @$(call clean, $(@PACKET@_DIR)/config.cache) cd $(@PACKET@_DIR) && \ $(@PACKET@_PATH) $(@PACKET@_ENV) \ ./configure $(@PACKET@_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.compile: @$(call targetinfo, $@) cd $(@PACKET@_DIR) && $(@PACKET@_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.install: @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.targetinstall: @$(call targetinfo, $@) @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype @find $(@PACKET@_DIR) \ -name "*.ttf" \ | \ while read file; do \ install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \ done @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- @packet@_clean: rm -rf $(STATEDIR)/@packet@.* rm -rf $(IMAGEDIR)/@packet@_* rm -rf $(@PACKET@_DIR) # vim: syntax=make