Advertisement
ecbrown

openmodelica-gcc.scm

Aug 20th, 2019
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 3.45 KB | None | 0 0
  1. (use-modules (gnu packages autotools)
  2.              (gnu packages avahi)
  3.              (gnu packages boost)
  4.              (gnu packages commencement)
  5.              (gnu packages cmake)
  6.              (gnu packages gettext)
  7.              (gnu packages gcc)
  8.              (gnu packages graphics)
  9.              (gnu packages java)
  10.              (gnu packages m4)
  11.              (gnu packages maths)
  12.              (gnu packages mpi)
  13.              (gnu packages perl)
  14.              (gnu packages pkg-config)
  15.              (gnu packages python)
  16.              (gnu packages qt)
  17.              (gnu packages readline)
  18.              (gnu packages xml)
  19.              (guix build-system gnu)
  20.              (guix git-download)
  21.              ((guix licenses) #:prefix license:)
  22.              (guix packages))
  23.  
  24. (define-public openmodelica
  25.   (package
  26.     (name "openmodelica")
  27.     (version "1.13.2")
  28.     (source
  29.      (origin
  30.        (method git-fetch)
  31.        (uri (git-reference
  32.              (url "https://github.com/OpenModelica/OpenModelica.git")
  33.              (commit (string-append "v" version))
  34.              (recursive? #t)))
  35.        (file-name (git-file-name name version))
  36.        (sha256
  37.         (base32 "12ax293w46b6l5kvb6yayahn8f6gkaiqbgaj83n9hxa1zjxrcpn1"))))
  38.     (build-system gnu-build-system)
  39.     (arguments
  40.      '(#:configure-flags
  41.        (list (string-append "CC=gcc -I"
  42.                             (assoc-ref %build-inputs "libxml2")
  43.                             "/include/libxml2")
  44.              (string-append "CXX=g++ -std=c++11 -I"
  45.                             (assoc-ref %build-inputs "libxml2")
  46.                             "/include/libxml2")
  47.              (string-append "CPPFLAGS=-I"
  48.                             (assoc-ref %build-inputs "libxml2")
  49.                             "/include/libxml2"))
  50.        #:make-flags (list "LIBXML2=OFF"
  51.                           (string-append "CC=gcc -I"
  52.                                          (assoc-ref %build-inputs "libxml2")
  53.                                          "/include/libxml2")
  54.                           (string-append "CXX=g++ -std=c++11 -I"
  55.                                          (assoc-ref %build-inputs "libxml2")
  56.                                          "/include/libxml2")
  57.                           (string-append "CPPFLAGS=-I"
  58.                                          (assoc-ref %build-inputs "libxml2")
  59.                                          "/include/libxml2"))
  60.        #:phases
  61.        (modify-phases %standard-phases
  62.          (add-after 'unpack 'autogen
  63.            (lambda _
  64.              (invoke "autoconf"))))))
  65.     (native-inputs
  66.      `(("autoconf" ,autoconf)
  67.        ("automake" ,automake)
  68.        ("cmake" ,cmake)
  69.        ("gcc" ,gcc-9)
  70.        ("gcc-toolchain" ,gcc-toolchain-9)
  71.        ("gettext" ,gettext-minimal)
  72.        ("libtool" ,libtool)
  73.        ("libxml2" ,libxml2)
  74.        ("m4" ,m4)
  75.        ("perl" ,perl)
  76.        ("pkg-config" ,pkg-config)
  77.        ("python-minimal-wrapper" ,python-minimal-wrapper)
  78.        ("qttools" ,qttools)))
  79.     (inputs
  80.      `(("avahi" ,avahi)
  81.        ("boost" ,boost)
  82.        ("expat" ,expat)
  83.        ("gcc" ,gcc-9)
  84.        ("gcc-toolchain" ,gcc-toolchain-9)
  85.        ("hdf5" ,hdf5)
  86.        ("hwloc" ,hwloc)
  87.        ("lapack" ,lapack)
  88.        ("lpsolve" ,lpsolve)
  89.        ("jdk" ,icedtea "jdk")
  90.        ("openscenegraph" ,openscenegraph)
  91.        ("qt4" ,qt-4)
  92.        ("readline" ,readline)
  93.        ("sundials" ,sundials)))
  94.     (synopsis "OpenModelica")
  95.     (description
  96.      "OpenModelica")
  97.     (home-page "https://openmodelica.org/")
  98.     (license license:gpl3+)))
  99.  
  100. openmodelica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement