diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-05 13:14:32 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-07-05 13:14:32 +0000 |
commit | 9c4d3513391b75918cadc8707effedc6760b464a (patch) | |
tree | 375e4c0938cb36fcdfd67c636bce322e8f46e3f5 /rules/jvisu.make | |
parent | 005010c3ecaaae692ab4514df61381a3124e3252 (diff) | |
download | ptxdist-9c4d3513391b75918cadc8707effedc6760b464a.tar.gz ptxdist-9c4d3513391b75918cadc8707effedc6760b464a.tar.xz |
added JVisu
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2893 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/jvisu.make')
-rw-r--r-- | rules/jvisu.make | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/rules/jvisu.make b/rules/jvisu.make new file mode 100644 index 000000000..74b40b45c --- /dev/null +++ b/rules/jvisu.make @@ -0,0 +1,151 @@ +# $Id$ +# +# Copyright (C) 2005 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 +# +ifdef PTXCONF_JVISU +PACKAGES += jvisu +endif + +# +# Paths and names +# +JVISU_VERSION = 1.0.0 +JVISU = JVisu-$(JVISU_VERSION) +JVISU_SUFFIX = tar.gz +JVISU_URL = http://www.jvisu.com/download/archive/$(JVISU).$(JVISU_SUFFIX) +JVISU_SOURCE = $(SRCDIR)/$(JVISU).$(JVISU_SUFFIX) +JVISU_DIR = $(BUILDDIR)/$(JVISU) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +jvisu_get: $(STATEDIR)/jvisu.get + +jvisu_get_deps = $(JVISU_SOURCE) + +$(STATEDIR)/jvisu.get: $(jvisu_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(JVISU)) + touch $@ + +$(JVISU_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(JVISU_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +jvisu_extract: $(STATEDIR)/jvisu.extract + +jvisu_extract_deps = $(STATEDIR)/jvisu.get + +$(STATEDIR)/jvisu.extract: $(jvisu_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(JVISU_DIR)) + @$(call extract, $(JVISU_SOURCE)) + @$(call patchin, $(JVISU)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +jvisu_prepare: $(STATEDIR)/jvisu.prepare + +# +# dependencies +# +jvisu_prepare_deps = \ + $(STATEDIR)/jvisu.extract \ + $(STATEDIR)/virtual-xchain.install + +JVISU_PATH = PATH=$(CROSS_PATH) +JVISU_ENV = $(CROSS_ENV) +#JVISU_ENV += PKG_CONFIG_PATH=$(CROSS_LIB_DIR)/lib/pkgconfig +#JVISU_ENV += + +# +# autoconf +# +JVISU_AUTOCONF = $(CROSS_AUTOCONF) +JVISU_AUTOCONF += --prefix=$(CROSS_LIB_DIR) + +$(STATEDIR)/jvisu.prepare: $(jvisu_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(JVISU_DIR)/config.cache) + cd $(JVISU_DIR) && \ + $(JVISU_PATH) $(JVISU_ENV) \ + ./configure $(JVISU_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +jvisu_compile: $(STATEDIR)/jvisu.compile + +jvisu_compile_deps = $(STATEDIR)/jvisu.prepare + +$(STATEDIR)/jvisu.compile: $(jvisu_compile_deps) + @$(call targetinfo, $@) + cd $(JVISU_DIR) && $(JVISU_ENV) $(JVISU_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +jvisu_install: $(STATEDIR)/jvisu.install + +$(STATEDIR)/jvisu.install: $(STATEDIR)/jvisu.compile + @$(call targetinfo, $@) + cd $(JVISU_DIR) && $(JVISU_ENV) $(JVISU_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +jvisu_targetinstall: $(STATEDIR)/jvisu.targetinstall + +jvisu_targetinstall_deps = $(STATEDIR)/jvisu.compile + +$(STATEDIR)/jvisu.targetinstall: $(jvisu_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,jvisu) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(JVISU_VERSION)) + @$(call install_fixup,SECTION,base) + @$(call install_fixup,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup,DEPENDS,) + @$(call install_fixup,DESCRIPTION,missing) + + @$(call install_copy, 0, 0, 0755, $(COREUTILS_DIR)/foobar, /dev/null) + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +jvisu_clean: + rm -rf $(STATEDIR)/jvisu.* + rm -rf $(IMAGEDIR)/jvisu_* + rm -rf $(JVISU_DIR) + +# vim: syntax=make |