]>
Commit | Line | Data |
---|---|---|
a9b8f2e4 BS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = dev86 | |
7 | version = 0.16.18 | |
29f6ef6c | 8 | release = 5 |
208ef342 | 9 | sup_arches = i686 x86_64 |
a9b8f2e4 BS |
10 | |
11 | maintainer = Ben Schweikert <ben.schweikert@ipfire.org> | |
12 | groups = Development/Languages | |
13 | url = http://www.debath.co.uk/dev86/ | |
14 | license = GPL+ | |
15 | summary = Cross development C compiler. | |
16 | ||
17 | description | |
18 | This is a cross development C compiler, assembler and linker | |
19 | environment for the production of 8086 executables | |
20 | (Optionally MSDOS COM) | |
21 | end | |
22 | ||
23 | source_dl = http://www.debath.co.uk/dev86/ | |
24 | sources = Dev86src-%{version}.tar.gz | |
25 | ||
26 | build | |
27 | requires | |
28 | ncurses-devel | |
29 | end | |
30 | ||
2c4fd909 MT |
31 | prepare_cmds |
32 | if [ "$(uname -m)" = "x86_64" ]; then | |
33 | patch -Np1 -i %{DIR_SOURCE}/dev86-64bit.patch | |
34 | fi | |
35 | end | |
36 | ||
a9b8f2e4 BS |
37 | build |
38 | make bcc86 unproto copt as86 ld86 CFLAGS="%{CFLAGS}" | |
39 | make -C cpp CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS} | |
40 | make -C ar CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS} | |
41 | make -C ld CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS} | |
42 | ||
43 | # ncc doesn't support gcc optflags and no parallel build | |
44 | make | |
45 | end | |
46 | ||
47 | make_install_targets = \ | |
48 | DIST=%{BUILDROOT} \ | |
49 | MANDIR=/usr/share/man \ | |
2c4fd909 | 50 | LIBDIR=%{libdir}/bcc \ |
a9b8f2e4 BS |
51 | INCLDIR=/usr/include/bcc \ |
52 | LOCLAPREFIX=/usr \ | |
53 | install install-man | |
54 | ||
55 | install_cmds | |
56 | # Remove useless files. | |
57 | rm -rf %{BUILDROOT}/usr/share/{applications,pixmaps} | |
58 | end | |
59 | end | |
60 | ||
61 | packages | |
62 | package %{name} | |
63 | ||
64 | package %{name}-devel | |
65 | template DEVEL | |
66 | end | |
63153e2e MT |
67 | |
68 | package %{name}-debuginfo | |
69 | template DEBUGINFO | |
70 | end | |
a9b8f2e4 | 71 | end |