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
124
125
126
127
128
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2002, 2003 by Pengutronix e.K., Hildesheim, Germany
# 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 packet
#
PACKAGES-$(PTXCONF_GMP3) += gmp3
#
# Paths and names
#
GMP3_VERSION = 3.1.1
GMP3 = gmp-$(GMP3_VERSION)
GMP3_SUFFIX = tar.gz
GMP3_URL = $(PTXCONF_SETUP_GNUMIRROR)/gmp/$(GMP3).$(GMP3_SUFFIX)
GMP3_SOURCE = $(SRCDIR)/$(GMP3).$(GMP3_SUFFIX)
GMP3_DIR = $(BUILDDIR)/$(GMP3)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
gmp3_get: $(STATEDIR)/gmp3.get
$(STATEDIR)/gmp3.get: $(gmp3_get_deps_default))
@$(call targetinfo, $@)
@$(call touch, $@)
$(GMP3_SOURCE):
@$(call targetinfo, $@)
@$(call get, GMP3)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
gmp3_extract: $(STATEDIR)/gmp3.extract
$(STATEDIR)/gmp3.extract: $(gmp3_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(GMP3_DIR))
@$(call extract, GMP3)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
gmp3_prepare: $(STATEDIR)/gmp3.prepare
GMP3_PATH = PATH=$(CROSS_PATH)
GMP3_ENV = $(CROSS_ENV)
GMP3_AUTOCONF = $(CROSS_AUTOCONF_USR)
GMP3_AUTOCONF += --enable-shared
GMP3_AUTOCONF += --enable-static
$(STATEDIR)/gmp3.prepare: $(gmp3_prepare_deps_default)
@$(call targetinfo, $@)
cd $(GMP3_DIR) && \
$(GMP3_PATH) $(GMP3_ENV) \
./configure $(GMP3_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
gmp3_compile: $(STATEDIR)/gmp3.compile
$(STATEDIR)/gmp3.compile: $(gmp3_compile_deps_default)
@$(call targetinfo, $@)
$(GMP3_PATH) make -C $(GMP3_DIR)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
gmp3_install: $(STATEDIR)/gmp3.install
$(STATEDIR)/gmp3.install: $(gmp3_install_deps_default)
@$(call targetinfo, $@)
@$(call install, GMP3)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
gmp3_targetinstall: $(STATEDIR)/gmp3.targetinstall
$(STATEDIR)/gmp3.targetinstall: $(gmp3_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call install_init, gmp3)
@$(call install_fixup, gmp3,PACKAGE,gmp3)
@$(call install_fixup, gmp3,PRIORITY,optional)
@$(call install_fixup, gmp3,VERSION,$(GMP3_VERSION))
@$(call install_fixup, gmp3,SECTION,base)
@$(call install_fixup, gmp3,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, gmp3,DEPENDS,)
@$(call install_fixup, gmp3,DESCRIPTION,missing)
# FIXME: RSC: check if wildcard copy works
@$(call install_copy, gmp3, 0, 0, 0644, $(SYSROOT)/lib/libgmp.so*, /usr/lib/)
@$(call install_finish, gmp3)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
gmp3_clean:
rm -rf $(STATEDIR)/gmp3.*
rm -rf $(IMAGEDIR)/gmp3_*
rm -rf $(GMP3_DIR)
# vim: syntax=make
|