summaryrefslogtreecommitdiffstats
path: root/rules/mc.make
blob: 6db156862e74fbc7b3dab3a8fb2d40ea1aaa4e35 (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
# -*-makefile-*-
#
# Copyright (C) 2006 by Sascha Hauer
#               2009 by Marc Kleine-Budde <mkl@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_MC) += mc

#
# Paths and names
#
MC_VERSION	:= 4.6.1
MC_MD5		:= 18b20db6e40480a53bac2870c56fc3c4
MC		:= mc-$(MC_VERSION)
MC_SUFFIX	:= tar.gz
MC_URL		:= http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/$(MC).$(MC_SUFFIX)
MC_SOURCE	:= $(SRCDIR)/$(MC).$(MC_SUFFIX)
MC_DIR		:= $(BUILDDIR)/$(MC)
MC_LICENSE	:= GPL-2.0


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

MC_PATH	:= PATH=$(CROSS_PATH)
MC_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
MC_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	--with-x=no \
	--without-gpm-mouse \
	--without-ext2undel \
	--disable-rpath

ifdef PTXCONF_MC_USES_NCURSES
MC_AUTOCONF += --with-screen=ncurses
endif

ifdef PTXCONF_MC_USES_SLANG
MC_AUTOCONF += --with-screen=slang
endif

MC_INSTALL_OPT := -C src install

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

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

	@$(call install_init, mc)
	@$(call install_fixup, mc,PRIORITY,optional)
	@$(call install_fixup, mc,SECTION,base)
	@$(call install_fixup, mc,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, mc,DESCRIPTION,missing)

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

	@$(call install_finish, mc)

	@$(call touch)

# vim: syntax=make