# -*-makefile-*-
#
# 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_@CLASS@@PACKAGE@) += @class@@package@

#
# Paths and names
#
@CLASS@@PACKAGE@	= @class@$(@PACKAGE@)
@CLASS@@PACKAGE@_SOURCE	= $(@PACKAGE@_SOURCE)
@CLASS@@PACKAGE@_DIR	= $(@CLASS@BUILDDIR)/$(@PACKAGE@)

ifdef PTXCONF_@CLASS@@PACKAGE@
$(STATEDIR)/klibc.targetinstall.post: $(STATEDIR)/@class@@package@.targetinstall
endif

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

#$(STATEDIR)/@class@@package@.extract:
#	@$(call targetinfo)
#	@$(call clean, $(@CLASS@@PACKAGE@_DIR))
#	@$(call extract, @PACKAGE@, $(@CLASS@BUILDDIR))
#	@$(call patchin, @CLASS@@PACKAGE@, $(@CLASS@@PACKAGE@_DIR))
#	@$(call touch)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#@CLASS@@PACKAGE@_CONF_ENV	:= $(@CLASS@ENV)

#
# autoconf
#
@CLASS@@PACKAGE@_CONF_TOOL	:= autoconf
#@CLASS@@PACKAGE@_CONF_OPT	:= $(@AUTOCONF_CLASS@AUTOCONF)

#$(STATEDIR)/@class@@package@.prepare:
#	@$(call targetinfo)
#	@$(call clean, $(@CLASS@@PACKAGE@_DIR)/config.cache)
#	cd $(@CLASS@@PACKAGE@_DIR) && \
#		$(@CLASS@@PACKAGE@_PATH) $(@CLASS@@PACKAGE@_ENV) \
#		./configure $(@CLASS@@PACKAGE@_CONF_OPT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/@class@@package@.compile:
#	@$(call targetinfo)
#	@$(call world/compile, @CLASS@@PACKAGE@)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/@class@@package@.install:
#	@$(call targetinfo)
#	@$(call world/install, @CLASS@@PACKAGE@)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/@class@@package@.targetinstall:
	@$(call targetinfo)
	@$(call install_initramfs, @class@@package@, 0, 0, 0755, $(@CLASS@@PACKAGE@_DIR)/foobar, /foobar);
	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/@class@@package@.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, @CLASS@@PACKAGE@)

# vim: syntax=make
