summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndras Wacha <awacha@users.noreply.github.com>2019-12-14 17:54:27 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2019-12-14 10:54:27 -0600
commitf757b6f4e5e74843c48cc655e8cb5d1efe58826f (patch)
tree28faca2db10329f8753a11754b8fd4c32cfce2e5 /var
parent7e668b115378dbb9f68d6ac6d88dd6d8b53d12bb (diff)
downloadspack-f757b6f4e5e74843c48cc655e8cb5d1efe58826f.tar.gz
spack-f757b6f4e5e74843c48cc655e8cb5d1efe58826f.tar.bz2
spack-f757b6f4e5e74843c48cc655e8cb5d1efe58826f.tar.xz
spack-f757b6f4e5e74843c48cc655e8cb5d1efe58826f.zip
Patch: explicitly use xbitmaps include dir in the automake package (#14128)
* Patch: explicitly use xbitmaps include dir in the automake package * Added dependencies required for autoreconf: libtool, autoconf, automake, m4
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/motif/add_xbitmaps_dependency.patch36
-rw-r--r--var/spack/repos/builtin/packages/motif/package.py15
2 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/motif/add_xbitmaps_dependency.patch b/var/spack/repos/builtin/packages/motif/add_xbitmaps_dependency.patch
new file mode 100644
index 0000000000..993b5108f3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/motif/add_xbitmaps_dependency.patch
@@ -0,0 +1,36 @@
+diff -Naur motif-2.3.8/ac_find_xbitmaps.m4 motif-2.3.8_patched/ac_find_xbitmaps.m4
+--- motif-2.3.8/ac_find_xbitmaps.m4 1970-01-01 01:00:00.000000000 +0100
++++ motif-2.3.8_patched/ac_find_xbitmaps.m4 2019-12-11 16:01:58.463883900 +0100
+@@ -0,0 +1,10 @@
++AC_DEFUN([AC_FIND_XBITMAPS],
++[
++
++AC_CHECK_HEADERS(X11/bitmaps/gray)
++
++CFLAGS="$CFLAGS `pkg-config xbitmaps --cflags`"
++AC_SUBST(CFLAGS)
++LIBS="$LIBS `pkg-config xbitmaps --libs`"
++AC_SUBST(LIBS)
++])
+diff -Naur motif-2.3.8/AUTHORS motif-2.3.8_patched/AUTHORS
+--- motif-2.3.8/AUTHORS 1970-01-01 01:00:00.000000000 +0100
++++ motif-2.3.8_patched/AUTHORS 2019-12-12 08:40:39.947561253 +0100
+@@ -0,0 +1 @@
++Dummy AUTHORS file: upstream Motif did not supply this and autoreconf needs it.
+\ No newline at end of file
+diff -Naur motif-2.3.8/configure.ac motif-2.3.8_patched/configure.ac
+--- motif-2.3.8/configure.ac 2017-12-05 13:43:54.000000000 +0100
++++ motif-2.3.8_patched/configure.ac 2019-12-11 16:01:58.467217264 +0100
+@@ -274,6 +274,7 @@
+ AC_SUBST(LIB_XP)
+
+ AC_FIND_XFT
++AC_FIND_XBITMAPS
+ AC_IMAGE_SUPPORT
+
+
+diff -Naur motif-2.3.8/NEWS motif-2.3.8_patched/NEWS
+--- motif-2.3.8/NEWS 1970-01-01 01:00:00.000000000 +0100
++++ motif-2.3.8_patched/NEWS 2019-12-12 08:40:59.010963846 +0100
+@@ -0,0 +1 @@
++Dummy NEWS file: upstream motif did not supply this but autoreconf needs it.
diff --git a/var/spack/repos/builtin/packages/motif/package.py b/var/spack/repos/builtin/packages/motif/package.py
index b15302c64c..0ea97e0dff 100644
--- a/var/spack/repos/builtin/packages/motif/package.py
+++ b/var/spack/repos/builtin/packages/motif/package.py
@@ -11,6 +11,8 @@ class Motif(AutotoolsPackage):
Motif - Graphical user interface (GUI)
specification and the widget toolkit
"""
+ force_autoreconf = True
+
homepage = "http://motif.ics.com/"
url = "http://cfhcable.dl.sourceforge.net/project/motif/Motif%202.3.8%20Source%20Code/motif-2.3.8.tar.gz"
@@ -25,3 +27,16 @@ class Motif(AutotoolsPackage):
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")
+
+ patch('add_xbitmaps_dependency.patch')
+
+ def autoreconf(self, spec, prefix):
+ autoreconf = which('autoreconf')
+ with working_dir(self.configure_directory):
+ autoreconf('-ivf')