-
Notifications
You must be signed in to change notification settings - Fork 0
/
metabuild.yaml
208 lines (186 loc) · 5.77 KB
/
metabuild.yaml
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# TODO
#
# * move it under /usr/games
# * executable xlincity & lincity (symlink)
# * fixme: data-locales --> symlink
package: lincity
version: 1.13.1
maintainer: Enrico Weigelt, metux IT consult <info@metux.net>
homepage: http://lincity.sourceforge.net
shortname: Lincity
name: City simulation game
license: GPLv2
description: |
Clone of the classic SimCity
# srcdir: ../lincity
configure:
generate:
- config.h: config.h
template: config.h.template
marker: /*@@CONFIG_INSERTED_HERE@@*/
checks:
# using list instead of struct, so we can define the order
- type: target-distro
- type: c/compiler
mandatory: true
- c/header: dirent.h
yes/c/defines: HAVE_DIRENT_H
- c/header: stdlib.h
mandatory: true
- c/header: sys/stat.h
mandatory: true
- c/function: gettimeofday
mandatory: true
- c/function: popen
yes/c/defines: HAVE_POPEN
- c/header: stdint.h
yes/c/defines: HAVE_STDINT_H
- c/header: strings.h
yes/c/defines: HAVE_STRINGS_H
- c/header: string.h
yes/c/defines: HAVE_STRING_H
- c/header: sys/dir.h
yes/c/defines: HAVE_SYS_DIR_H
- c/header: sys/ndir.h
yes/c/defines: HAVE_SYS_NDIR_H
- c/header: sys/time.h
yes/c/defines: HAVE_SYS_TIME_H
- c/header: unistd.h
yes/c/defines: HAVE_UNISTD_H
- pkgconf:
x11: x11
xext: xext
zlib: zlib
libpng: libpng
mandatory: true
- type: i18n/linguas
misc:
c/defines:
- HAVE_CONFIG_H
- DEFAULT_LIBDIR="${buildconf::@targetdist::install-dirs::datadir}/${package}"
- LC_X11=1
- VERSION="${version}"
- ${buildconf::host::flags::c/defines}
c/cflags:
- -Wall
targets:
lincitymodules{c/library}:
install: false
skip/shared: true
skip/pkgconf: true
include/dir: [ ., ./modules ]
c/defines: ${misc::c/defines}
c/cflags: ${misc::c/cflags}
source/dir: modules
source: "*.c"
lincityengine{c/library}:
c/defines: ${misc::c/defines}
c/cflags: ${misc::c/cflags}
skip/shared: true
skip/pkgconf: true
link/static: lincitymodules
install: false
source:
- lclib.c
- power.c
- ldsvguts.c
- engine.c
- transport.c
- market.c
- simulate.c
- shrtypes.c
- lintypes.c
- readpng.c
- timer.c
- fileutil.c
- shrglobs.c
- stats.c
lincitygui{c/library}:
pkgconf/import: [x11, xext, zlib, libpng, libc/math]
link/static: [lincityengine, lincitymodules]
skip/shared: true
skip/pkgconf: true
c/defines: ${misc::c/defines}
c/ldflags: ${misc::c/ldflags}
c/cflags: ${misc::c/cflags}
install: false
source:
- lcx11.c
- ldsvgui.c
- splash.c
- lchelp.c
- main.c
- mouse.c
- mps.c
- screen.c
- pixmap.c
- cliglobs.c
- geometry.c
- pbar.c
- module_buttons.c
- dialbox.c
lincity{c/executable}:
pkgconf/import: [x11, xext, zlib, libpng, libc/math]
c/ldflags: ${misc::c/ldflags}
c/cflags: ${misc::c/cflags}
## FIXME: order really matters here. need lincitymodules twice since circular dependency
link/static: [lincitygui, lincitymodules, lincityengine, lincitymodules]
lincity.desktop{data/desktop}:
desktop/categories: Application;Game;StrategyGame
desktop/exec: lincity
desktop/tryexec: ${buildconf::install-dirs::bindir}/lincity
colour.pal{data/misc}:
install/subdir: ${package}
source: colour.pal
opening{data/misc}:
install/subdir: ${package}/${@@^::@id}
source: "*"
source/dir: ${@@^::@id}
messages{data/misc}:
install/subdir: ${package}/${@@^::@id}
source: "*.mes"
source/dir: ${@@^::@id}
icons{data/misc}:
install/subdir: ${package}/${@@^::@id}
source: "*.csi"
source/dir: ${@@^::@id}
lincity.xpm{data/pixmap}:
help{data/misc}:
install/subdir: ${package}/${@@^::@id}
source: "*.hlp"
source/dir: ${@@^::@id}
po{i18n/po}:
docs{doc/misc}:
source:
- Acknowledgements
- README
- TODO
- CHANGES
- COPYING
- COPYRIGHT
lincity.6{doc/man}:
man/alias: xlincity
features:
gzip:
type: bool
default: y
set@y:
c/defines: HAVE_GZIP=1
nls:
type: bool
default: y
set@y:
c/defines: [ENABLE_NLS, PACKAGE="lincity"]
# currently really broken
# svgalib:
# type: bool
# default: n
# set@y:
# c/defines: SVGALIB=1
distro:
_default_:
packages:
dev:
skip: true
lib:
skip: true