# -*-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_OPENNI) += openni # # Paths and names # OPENNI_VERSION := 1.5.2.23 OPENNI_MD5 := 12389c56bf3685a741f6bcfa068585ff OPENNI := openni-$(OPENNI_VERSION) OPENNI_SUFFIX := tar.gz OPENNI_URL := https://github.com/OpenNI/OpenNI/tarball/Stable-$(OPENNI_VERSION) OPENNI_SOURCE := $(SRCDIR)/$(OPENNI).$(OPENNI_SUFFIX) OPENNI_DIR := $(BUILDDIR)/$(OPENNI) OPENNI_LICENSE := unknown # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- #$(OPENNI_SOURCE): # @$(call targetinfo) # @$(call get, OPENNI) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- #OPENNI_CONF_ENV := $(CROSS_ENV) # # autoconf # OPENNI_CONF_TOOL := NO #OPENNI_CONF_OPT := $(CROSS_AUTOCONF_USR) #$(STATEDIR)/openni.prepare: # @$(call targetinfo) # @$(call clean, $(OPENNI_DIR)/config.cache) # cd $(OPENNI_DIR) && \ # $(OPENNI_PATH) $(OPENNI_ENV) \ # ./configure $(OPENNI_CONF_OPT) # @$(call touch) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- OPENNI_MAKE_ENV := $(CROSS_ENV) OPENNI_MAKE_ENV += ARM_CXX=$(CROSS_CXX) OPENNI_MAKE_ENV += ARM_STAGING=$(PTXDIST_SYSROOT_TARGET) OPENNI_MAKE_OPT += PLATFORM=Arm $(STATEDIR)/openni.compile: @$(call targetinfo) cd $(OPENNI_DIR)/Platform/Linux/Build && $(OPENNI_MAKE_ENV) $(MAKE) $(OPENNI_MAKE_OPT) core @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- #$(STATEDIR)/openni.install: # @$(call targetinfo) # @$(call world/install, OPENNI) # @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/openni.targetinstall: @$(call targetinfo) @$(call install_init, openni) @$(call install_fixup, openni,PRIORITY,optional) @$(call install_fixup, openni,SECTION,base) @$(call install_fixup, openni,AUTHOR,"Alexander Dahl ") @$(call install_fixup, openni,DESCRIPTION,missing) @$(call install_copy, openni, 0, 0, 0755, $(OPENNI_DIR)/foobar, /dev/null) @$(call install_finish, openni) @$(call touch) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- #$(STATEDIR)/openni.clean: # @$(call targetinfo) # @$(call clean_pkg, OPENNI) # vim: ft=make noet