blob: c4930e5c6af8c138d6c529ee60d831ffdb86a589 (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Marco Cavallini <m.cavallini@koansoftware.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
#
ifdef PTXCONF_BLACKBOX
PACKAGES += blackbox
endif
#
# Paths and names
#
BLACKBOX_VERSION = 0.65.0
BLACKBOX = blackbox-$(BLACKBOX_VERSION)
BLACKBOX_SUFFIX = tar.gz
BLACKBOX_URL = http://heanet.dl.sourceforge.net/sourceforge/blackboxwm/$(BLACKBOX).$(BLACKBOX_SUFFIX)
BLACKBOX_SOURCE = $(SRCDIR)/$(BLACKBOX).$(BLACKBOX_SUFFIX)
BLACKBOX_DIR = $(BUILDDIR)/$(BLACKBOX)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
blackbox_get: $(STATEDIR)/blackbox.get
blackbox_get_deps = $(BLACKBOX_SOURCE)
$(STATEDIR)/blackbox.get: $(blackbox_get_deps)
@$(call targetinfo, $@)
touch $@
$(BLACKBOX_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(BLACKBOX_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
blackbox_extract: $(STATEDIR)/blackbox.extract
blackbox_extract_deps = $(STATEDIR)/blackbox.get
$(STATEDIR)/blackbox.extract: $(blackbox_extract_deps)
@$(call targetinfo, $@)
@$(call clean, $(BLACKBOX_DIR))
@$(call extract, $(BLACKBOX_SOURCE))
touch $@
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
blackbox_prepare: $(STATEDIR)/blackbox.prepare
#
# dependencies
#
blackbox_prepare_deps = \
$(STATEDIR)/blackbox.extract \
$(STATEDIR)/virtual-xchain.install
BLACKBOX_PATH = PATH=$(CROSS_PATH)
BLACKBOX_ENV = $(CROSS_ENV)
#BLACKBOX_ENV +=
#
# autoconf
#
BLACKBOX_AUTOCONF = \
--build=$(GNU_HOST) \
--host=$(PTXCONF_GNU_TARGET) \
--prefix=$(CROSS_LIB_DIR) \
-disable-nls
BLACKBOX_AUTOCONF += --x-includes=/home/koan/ptxdist/ptxdist-testing/root/usr/X11R6/include
BLACKBOX_AUTOCONF += --x-libraries=/home/koan/ptxdist/ptxdist-testing/root/usr/X11R6/lib
#BLACKBOX_AUTOCONF += --x-includes=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)/include/X11 \
#BLACKBOX_AUTOCONF += --x-libraries=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)/lib \
$(STATEDIR)/blackbox.prepare: $(blackbox_prepare_deps)
@$(call targetinfo, $@)
@$(call clean, $(BLACKBOX_DIR)/config.cache)
cd $(BLACKBOX_DIR) && \
$(BLACKBOX_PATH) $(BLACKBOX_ENV) \
./configure $(BLACKBOX_AUTOCONF)
touch $@
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
blackbox_compile: $(STATEDIR)/blackbox.compile
blackbox_compile_deps = $(STATEDIR)/blackbox.prepare
$(STATEDIR)/blackbox.compile: $(blackbox_compile_deps)
@$(call targetinfo, $@)
$(BLACKBOX_PATH) make -C $(BLACKBOX_DIR)
touch $@
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
blackbox_install: $(STATEDIR)/blackbox.install
$(STATEDIR)/blackbox.install: $(STATEDIR)/blackbox.compile
@$(call targetinfo, $@)
$(BLACKBOX_PATH) make -C $(BLACKBOX_DIR) install
touch $@
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
blackbox_targetinstall: $(STATEDIR)/blackbox.targetinstall
blackbox_targetinstall_deps = $(STATEDIR)/blackbox.compile
$(STATEDIR)/blackbox.targetinstall: $(blackbox_targetinstall_deps)
@$(call targetinfo, $@)
install -d $(ROOTDIR)/usr/X11R6/bin
install $(BLACKBOX_DIR)/src/blackbox $(ROOTDIR)/usr/X11R6/bin/
install $(BLACKBOX_DIR)/util/bsetroot $(ROOTDIR)/usr/X11R6/bin/
$(CROSS_STRIP) -R .note -R .comment $(ROOTDIR)/usr/X11R6/bin/blackbox
$(CROSS_STRIP) -R .note -R .comment $(ROOTDIR)/usr/X11R6/bin/bsetroot
touch $@
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
blackbox_clean:
rm -rf $(STATEDIR)/blackbox.*
rm -rf $(BLACKBOX_DIR)
# vim: syntax=make
|