summaryrefslogtreecommitdiffstats
path: root/rules/file.make
blob: 0d96a7f2e42532c538609010677ba3d7e7512d28 (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
# -*-makefile-*-
#
# Copyright (C) 2011 by Alexander Dahl <post@lespocky.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_FILE) += file

#
# Paths and names
#
FILE_VERSION	:= 5.35
FILE_MD5	:= 5f10fb45bdaffd729a572e563783b78e
FILE		:= file-$(FILE_VERSION)
FILE_SUFFIX	:= tar.gz
FILE_URL	:= ftp://ftp.astron.com/pub/file/$(FILE).$(FILE_SUFFIX)
FILE_SOURCE	:= $(SRCDIR)/$(FILE).$(FILE_SUFFIX)
FILE_DIR	:= $(BUILDDIR)/$(FILE)
FILE_LICENSE	:= BSD AND 2-term BSD

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

FILE_PATH	:= PATH=$(PTXDIST_SYSROOT_HOST)/bin/file:$(CROSS_PATH)

FILE_CONF_TOOL	:= autoconf
FILE_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-elf \
	--enable-elf-core \
	--enable-zlib \
	--$(call ptx/endis, PTXCONF_FILE_SECCOMP)-libseccomp \
	--disable-fsect-man5 \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-warnings

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

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

	@$(call install_init, file)
	@$(call install_fixup, file,PRIORITY,optional)
	@$(call install_fixup, file,SECTION,base)
	@$(call install_fixup, file,AUTHOR,"Alexander Dahl <post@lespocky.de>")
	@$(call install_fixup, file,DESCRIPTION,missing)

	@$(call install_lib, file, 0, 0, 0644, libmagic)
	@$(call install_copy, file, 0, 0, 0755, -, /usr/bin/file)
	@$(call install_copy, file, 0, 0, 0644, -, /usr/share/misc/magic.mgc)

	@$(call install_finish, file)

	@$(call touch)

# vim: syntax=make