blob: ee5af50e7c4239ecadac668f860902d5fd540dbb (
plain) (
blame)
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
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Motif(AutotoolsPackage):
""" "
Motif - Graphical user interface (GUI)
specification and the widget toolkit
"""
force_autoreconf = True
homepage = "https://motif.ics.com/"
url = "https://cfhcable.dl.sourceforge.net/project/motif/Motif%202.3.8%20Source%20Code/motif-2.3.8.tar.gz"
license("LGPL-2.1-or-later")
version("2.3.8", sha256="859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7")
depends_on("flex")
depends_on("libx11")
depends_on("libxt")
depends_on("libxext")
depends_on("libxft")
depends_on("libxcomposite")
depends_on("libxfixes")
depends_on("xbitmaps")
depends_on("jpeg")
# we need the following for autoreconf
depends_on("automake", type="build")
depends_on("autoconf", type="build")
depends_on("m4", type="build")
depends_on("libtool", type="build")
depends_on("pkgconfig", type="build")
patch("add_xbitmaps_dependency.patch")
def patch(self):
# fix linking the simple_app demo program
# https://bugs.launchpad.net/ubuntu/+source/openmotif/+bug/705294
filter_file(
"../../../lib/Exm/libExm.a",
"../../../lib/Exm/libExm.a -lX11",
"demos/programs/Exm/simple_app/Makefile.am",
)
def autoreconf(self, spec, prefix):
autoreconf = which("autoreconf")
with working_dir(self.configure_directory):
autoreconf("-ivf")
|