summaryrefslogtreecommitdiffstats
path: root/rules/joe.make
blob: 59ec318ec4f5dc7b096c989abe1ea785de387d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Copyright (C) 2005 by Oscar Peredo
# Copyright (C) 2007 by Carsten Schlote
#           (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# 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_MD5		:= 9bdffecce7ef910feaa06452d48843de
JOE		:= joe-$(JOE_VERSION)
JOE_SUFFIX	:= tar.gz
JOE_URL		:= $(call ptx/mirror, SF, joe-editor/$(JOE).$(JOE_SUFFIX))
JOE_SOURCE	:= $(SRCDIR)/$(JOE).$(JOE_SUFFIX)
JOE_DIR		:= $(BUILDDIR)/$(JOE)


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

JOE_PATH	:= PATH=$(CROSS_PATH)
JOE_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
JOE_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	--enable-curses

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

$(STATEDIR)/joe.targetinstall:
	@$(call targetinfo)

	@$(call install_init, joe)
	@$(call install_fixup, joe,PRIORITY,optional)
	@$(call install_fixup, joe,SECTION,base)
	@$(call install_fixup, joe,AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>")
	@$(call install_fixup, joe,DESCRIPTION,missing)

	@$(call install_copy, joe, 0, 0, 0755, -, /usr/bin/joe)
	@$(call install_copy, joe, 0, 0, 0755, -, /usr/bin/termidx)

	@$(call install_copy, joe, 0, 0, 0755, /etc/joe)
	@for file in $(JOE_PKGDIR)/etc/joe/*rc; do \
		destination=`basename $$file`; \
		$(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_PKGDIR)/etc/joe/syntax/*.jsf; do \
		destination=`basename $$file`; \
		$(call install_copy, joe, 0, 0, 0644, $$file, /etc/joe/syntax/$$destination, n); \
	done
  endif

	@$(call install_finish, joe)
	@$(call touch)

# vim: syntax=make