# $Id: template 2516 2005-04-25 10:29:55Z rsc $ # # Copyright (C) 2005 by Oscar Peredo # Copyright (C) 2007 by Carsten Schlote # # 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_JOE) += joe # # Paths and names # JOE_VERSION = 3.5 JOE = joe-$(JOE_VERSION) JOE_SUFFIX = tar.gz JOE_URL = $(PTXCONF_SETUP_SFMIRROR)/joe-editor/$(JOE).$(JOE_SUFFIX) JOE_SOURCE = $(SRCDIR)/$(JOE).$(JOE_SUFFIX) JOE_DIR = $(BUILDDIR)/$(JOE) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- joe_get: $(STATEDIR)/joe.get $(STATEDIR)/joe.get: $(joe_get_deps_default) @$(call targetinfo, $@) @$(call touch, $@) $(JOE_SOURCE): @$(call targetinfo, $@) @$(call get, JOE) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- joe_extract: $(STATEDIR)/joe.extract $(STATEDIR)/joe.extract: $(joe_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(JOE_DIR)) @$(call extract, JOE) @$(call patchin, JOE) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- joe_prepare: $(STATEDIR)/joe.prepare JOE_PATH = PATH=$(CROSS_PATH) JOE_ENV = $(CROSS_ENV) # # autoconf # JOE_AUTOCONF = $(CROSS_AUTOCONF_USR) $(STATEDIR)/joe.prepare: $(joe_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(JOE_DIR)/config.cache) cd $(JOE_DIR) && \ $(JOE_PATH) $(JOE_ENV) \ ./configure $(JOE_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- joe_compile: $(STATEDIR)/joe.compile $(STATEDIR)/joe.compile: $(joe_compile_deps_default) @$(call targetinfo, $@) cd $(JOE_DIR) && $(JOE_ENV) $(JOE_PATH) make @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- joe_install: $(STATEDIR)/joe.install $(STATEDIR)/joe.install: $(joe_install_deps_default) @$(call targetinfo, $@) #@$(call install, JOE) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- joe_targetinstall: $(STATEDIR)/joe.targetinstall $(STATEDIR)/joe.targetinstall: $(joe_targetinstall_deps_default) @$(call targetinfo, $@) @$(call install_init, joe) @$(call install_fixup, joe,PACKAGE,joe) @$(call install_fixup, joe,PRIORITY,optional) @$(call install_fixup, joe,VERSION,$(JOE_VERSION)) @$(call install_fixup, joe,SECTION,base) @$(call install_fixup, joe,AUTHOR,"Carsten Schlote ") @$(call install_fixup, joe,DEPENDS,) @$(call install_fixup, joe,DESCRIPTION,missing) @$(call install_copy, joe, 0, 0, 0755, $(JOE_DIR)/joe, /bin/joe) @$(call install_copy, joe, 0, 0, 0755, $(JOE_DIR)/termidx, /bin/termidx) @$(call install_copy, joe, 0, 0, 0755, /etc/joe) @for file in $(JOE_DIR)/rc/*rc; do \ destination=`basename $$file`; \ echo "dst=$$destination"; \ $(call install_copy, joe, 0, 0, 0644, $$file, /etc/joe/$$destination, n); \ done ifdef PTXCONF_JOE_SYNTAX_HIGHLIGHT @$(call install_copy, joe, 0, 0, 0755, /etc/joe/syntax) @for file in $(JOE_DIR)/syntax/*.jsf; do \ destination=`basename $$file`; \ echo "dst=$$destination"; \ $(call install_copy, joe, 0, 0, 0644, $$file, /etc/joe/syntax/$$destination, n); \ done endif @$(call install_finish, joe) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- joe_clean: rm -rf $(STATEDIR)/joe.* rm -rf $(IMAGEDIR)/joe_* rm -rf $(JOE_DIR) # vim: syntax=make