# -*-makefile-*- # # Copyright (C) 2012 by Alexander Dahl # # 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_FOO) += foo # # Paths and names # FOO_VERSION := git #FOO_MD5 := FOO := foo-$(FOO_VERSION) #FOO_SUFFIX := #FOO_URL := /$(FOO).$(FOO_SUFFIX) #FOO_SOURCE := $(SRCDIR)/$(FOO).$(FOO_SUFFIX) #FOO_DIR := $(BUILDDIR)/$(FOO) FOO_LICENSE := proprietary FOO_SOURCE_LOCAL := $(PTXDIST_WORKSPACE)/local_src/$(FOO) FOO_GIT_URL := $(PTXCONF_FOO_CLONE_URL) FOO_CHECKOUT_ENTITY := $(PTXCONF_FOO_CHECKOUT_ENTITY) FOO_DIR := $(FOO_SOURCE_LOCAL) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(STATEDIR)/foo.get: @$(call targetinfo) @$(PTXDIST_WORKSPACE)/scripts/get-git.sh "$(FOO_GIT_URL)" "$(FOO_SOURCE_LOCAL)" @$(call touch) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/foo.extract: @$(call targetinfo) @cd $(FOO_SOURCE_LOCAL) && \ $(PTXDIST_WORKSPACE)/scripts/extract-git.sh "$(FOO_CHECKOUT_ENTITY)" @$(call touch) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- FOO_CONF_TOOL := cmake # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/foo.targetinstall: @$(call targetinfo) @$(call install_init, foo) @$(call install_fixup, foo,PRIORITY,optional) @$(call install_fixup, foo,SECTION,base) @$(call install_fixup, foo,AUTHOR,"Alexander Dahl ") @$(call install_fixup, foo,DESCRIPTION,missing) @$(call install_copy, foo, 0, 0, 0755, -, /usr/bin/foo) @$(call install_finish, foo) @$(call touch) # vim: ft=make noet