aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/sdcc.scm
blob: 6d054701012ca53016b8b774ad19f20648c50958 (about) (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages sdcc)
  #:use-module (gnu packages bison)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages flex)
  #:use-module (gnu packages python)
  #:use-module (gnu packages texinfo)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:))

(define-public sdcc
  (package
    (name "sdcc")
    (version "3.7.0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "mirror://sourceforge/sdcc/sdcc"
                    "/" version "/sdcc-src-" version ".tar.bz2"))
              (sha256
               (base32
                "13llvx0j3v5qa7qd4fh7nix4j3alpd3ccprxvx163c4q8q4lfkc5"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("bison" ,bison)
       ("boost" ,boost)
       ("flex" ,flex)
       ("python-2" ,python-2)
       ("texinfo" ,texinfo)))
    (arguments
     `(;; gputils is required for PIC ports
       #:configure-flags
       '("--disable-pic14-port" "--disable-pic16-port" "--enable-ucsim")
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'patch-makefile
           (lambda _
             (substitute* (find-files "." "(\\.mk$|\\.in$)")
               (("/bin/sh") (which "sh")))
             #t)))))
    (home-page "http://sdcc.sourceforge.net")
    (synopsis "Small devices C compiler")
    (description "SDCC is a retargetable, optimizing Standard C compiler suite
that targets the Intel MCS51-based microprocessors (8031, 8032, 8051, 8052, ...),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08-based (hc08, s08), Zilog Z80-based MCUs (z80, z180, gbz80, Rabbit
2000/3000, Rabbit 3000A, TLCS-90) and STMicroelectronics STM8.
Work is in progress on supporting the Microchip PIC16 and PIC18 targets.
It can be retargeted for other microprocessors.")
    (license license:gpl2+)))
12:15:10 +0200'>2020-06-16gnu: bsnes: Remove unnecessary inputs....Pierre Neidhardt 2020-06-16gnu: Add bsnes....Pierre Neidhardt 2020-06-11gnu: sameboy: Update to 0.13.2....Jakub Kądziołka 2020-06-03gnu: sameboy: Update to 0.13.1 [security fix]....Jakub Kądziołka 2020-06-01gnu: sameboy: Update to 0.13....Jakub Kądziołka 2020-05-20gnu: mame: Update to 0.221....Tobias Geerinckx-Rice 2020-05-01gnu: scummvm: Update to 2.1.2....Tobias Geerinckx-Rice 2020-04-08gnu: higan: Update description....Nicolas Goaziou 2020-04-08gnu: higan: Update to 110....Nicolas Goaziou 2020-04-07gnu: mame: Update to 0.220....Nicolas Goaziou 2020-04-04gnu: Replace uses of 'gettext' with 'gettext-minimal'....Marius Bakke 2020-03-29gnu: sameboy: Add missing #t in phase....Jakub Kądziołka 2020-03-12gnu: mame: Use HTTPS home page....Tobias Geerinckx-Rice 2020-03-12gnu: dosbox: Use HTTPS home page....Tobias Geerinckx-Rice 2020-03-11gnu: emulation-station: Use HTTPS home page....Tobias Geerinckx-Rice 2020-03-01gnu: mame: Update to 0.219....Nicolas Goaziou 2020-02-29gnu: higan: Update home page....Tobias Geerinckx-Rice 2020-02-23gnu: desmume: fix build on new GCC versions...raingloom 2020-02-23gnu: mgba: Update to 0.8.1....Jakub Kądziołka 2020-02-18gnu: Add gnome-arcade....Pierre Neidhardt 2020-02-16gnu: emulation-station: Fix build....Jakub Kądziołka 2020-02-16gnu: higan: Explain why v106, and not v107, is being packaged...Jakub Kądziołka 2020-02-16gnu: higan: Don't use auto-generated tarball....Jakub Kądziołka 2020-02-16gnu: higan: End phases with #t...Jakub Kądziołka 2020-02-02gnu: scummvm: Pacify linter....Nicolas Goaziou 2020-02-02gnu: mame: Update to 0.218....Nicolas Goaziou 2020-01-26gnu: pcsxr: Wrap with GSETTINGS_SCHEMA_DIR path variable....Kei Kebreau 2020-01-25gnu: mgba: Update to 0.8.0....Nicolas Goaziou 2020-01-20gnu: mame: Build with libjpeg-turbo....Marius Bakke 2020-01-19gnu: scummvm: Update to 2.1.1....Tobias Geerinckx-Rice