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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# -*-makefile-*-
#
# Copyright (C) @YEAR@ by @AUTHOR@
#
# 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_@PACKAGE@) += @package@
#
# Paths and names
#
@PACKAGE@_VERSION := @VERSION@
@PACKAGE@ := @package@-$(@PACKAGE@_VERSION)
@PACKAGE@_URL := file://$(PTXDIST_WORKSPACE)/local_src/@package@
@PACKAGE@_DIR := $(BUILDDIR)/$(@PACKAGE@)
@PACKAGE@_BUILD_OOT := YES
@PACKAGE@_LICENSE := unknown
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/@package@.extract: $(STATEDIR)/autogen-tools
$(STATEDIR)/@package@.extract:
@$(call targetinfo)
@$(call clean, $(@PACKAGE@_DIR))
@$(call extract, @PACKAGE@)
cd $(@PACKAGE@_DIR) && [ -f configure ] || sh autogen.sh
@$(call patchin, @PACKAGE@)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#@PACKAGE@_CONF_ENV := $(CROSS_ENV)
#
# autoconf
#
@PACKAGE@_CONF_TOOL := autoconf
#@PACKAGE@_CONF_OPT := $(CROSS_AUTOCONF_USR)
#$(STATEDIR)/@package@.prepare:
# @$(call targetinfo)
# @$(call world/prepare, @PACKAGE@)
# @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
#$(STATEDIR)/@package@.compile:
# @$(call targetinfo)
# @$(call world/compile, @PACKAGE@)
# @$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
#$(STATEDIR)/@package@.install:
# @$(call targetinfo)
# @$(call world/install, @PACKAGE@)
# @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/@package@.targetinstall:
@$(call targetinfo)
@$(call install_init, @package@)
@$(call install_fixup, @package@, PRIORITY, optional)
@$(call install_fixup, @package@, SECTION, base)
@$(call install_fixup, @package@, AUTHOR, "@AUTHOR@")
@$(call install_fixup, @package@, DESCRIPTION, missing)
# #
# # example code:; copy all libraries, links and binaries
# #
@for i in $(shell cd $(@PACKAGE@_PKGDIR) && find bin sbin usr/bin usr/sbin -type f); do \
$(call install_copy, @package@, 0, 0, 0755, -, /$$i); \
done
@for i in $(shell cd $(@PACKAGE@_PKGDIR) && find lib usr/lib -name "*.so*"); do \
$(call install_copy, @package@, 0, 0, 0644, -, /$$i); \
done
@links="$(shell cd $(@PACKAGE@_PKGDIR) && find lib usr/lib -type l)"; \
if [ -n "$$links" ]; then \
for i in $$links; do \
from="`readlink $(@PACKAGE@_PKGDIR)/$$i`"; \
to="/$$i"; \
$(call install_link, @package@, $$from, $$to); \
done; \
fi
# #
# # FIXME: add all necessary things here
# #
@$(call install_finish, @package@)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
#$(STATEDIR)/@package@.clean:
# @$(call targetinfo)
# @$(call clean_pkg, @PACKAGE@)
# vim: syntax=make
|