blob: 09f36dd54c8a2af6ac93fa8808a9003b63404fba (
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
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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2006 by Robert Schwebel
#
# 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_W32API) += w32api
#
# Paths and names
#
W32API_VERSION := $(call remove_quotes,$(PTXCONF_W32API_VERSION))
W32API := w32api-$(W32API_VERSION)-mingw32
W32API_SUFFIX := tar.gz
W32API_URL := $(PTXCONF_SETUP_SFMIRROR)/mingw/$(W32API)-src.$(W32API_SUFFIX)
W32API_SOURCE := $(SRCDIR)/$(W32API)-src.$(W32API_SUFFIX)
W32API_DIR := $(BUILDDIR)/$(W32API)
W32API_BUILDDIR := $(BUILDDIR)/$(W32API)-build
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(W32API_SOURCE):
@$(call targetinfo)
@$(call get, W32API)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/w32api.extract:
@$(call targetinfo)
@$(call clean, $(W32API_DIR))
@$(call extract, W32API)
@$(call patchin, W32API)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
W32API_PATH := PATH=$(CROSS_PATH)
W32API_ENV := $(CROSS_ENV)
W32API_AUTOCONF := \
--prefix=$(SYSROOT)/mingw \
--host=$(PTXCONF_GNU_TARGET) \
--target=$(PTXCONF_GNU_TARGET)
$(STATEDIR)/w32api.prepare:
@$(call targetinfo)
@$(call clean, $(W32API_BUILDDIR))
mkdir -p $(W32API_BUILDDIR)
cd $(W32API_BUILDDIR) && $(W32API_ENV) $(W32API_PATH) \
$(W32API_DIR)/configure $(W32API_AUTOCONF)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/w32api.compile:
@$(call targetinfo)
cd $(W32API_BUILDDIR) && $(W32API_PATH) \
$(MAKE) $(PARALLELMFLAGS)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/w32api.install:
@$(call targetinfo)
cd $(W32API_BUILDDIR) && \
$(W32API_PATH) $(MAKE) \
install_root=$(SYSROOT) install
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/w32api.targetinstall:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
w32api_clean:
rm -rf $(STATEDIR)/w32api.*
rm -rf $(W32API_DIR)
# vim: syntax=make
|