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