summaryrefslogtreecommitdiffstats
path: root/rules/libnih.make
blob: 8391c37cefae95490ec18a85cdc8c523216d306f (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
# -*-makefile-*-
#
# Copyright (C) 2010 by Tim Sander <tim.sander@hbm.com>
#
# 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_LIBNIH) += libnih

#
# Paths and names
#
LIBNIH_VERSION	:= 1.0.2
LIBNIH_MD5	:= 89bf20db4ff3f005cc37482a4f050650
LIBNIH		:= libnih-$(LIBNIH_VERSION)
LIBNIH_SUFFIX	:= tar.gz
LIBNIH_URL	:= http://launchpad.net/libnih/1.0/$(LIBNIH_VERSION)/+download/$(LIBNIH).$(LIBNIH_SUFFIX)
LIBNIH_DIR	:= $(BUILDDIR)/$(LIBNIH)
LIBNIH_SOURCE	:= $(SRCDIR)/$(LIBNIH).$(LIBNIH_SUFFIX)
LIBNIH_LICENSE	:= GPL-2.0+

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

LIBNIH_ENV := \
	$(CROSS_ENV) \
	NIH_DBUS_TOOL=${PTXDIST_SYSROOT_HOST}/bin/nih-dbus-tool

#
# autoconf
#
LIBNIH_AUTOCONF := \
	$(CROSS_AUTOCONF_USR)

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

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

	@$(call install_init, libnih)
	@$(call install_fixup, libnih, PRIORITY, optional)
	@$(call install_fixup, libnih, SECTION, base)
	@$(call install_fixup, libnih, AUTHOR, "Tim Sandet <tim.sander@hbm.com>")
	@$(call install_fixup, libnih, DESCRIPTION, missing)

	@$(call install_lib, libnih, 0, 0, 0644, libnih-dbus);
	@$(call install_lib, libnih, 0, 0, 0644, libnih);

	@$(call install_finish, libnih)

	@$(call touch)

# vim: syntax=make