Unverified Commit 68c003b2 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

motif: fixup build after automake update #28232

It seemed easiest to avoid the need to autoreconf.
parent a1bef771
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,7 +27,6 @@ SUBDIRS   = bindings bitmaps \
              include \
              tools \
              clients \
-             doc \
-             demos
+             doc
 AUTOMAKE_OPTIONS = 1.4
 ACLOCAL_AMFLAGS = -I .
+8 −5
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, expat, libjpeg, libpng, libiconv
, flex
, libXp, libXau
, demoSupport ? false, autoconf, automake
, demoSupport ? false
}:
# refer to the gentoo package

@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
    expat libjpeg libpng libiconv
  ];

  nativeBuildInputs = [ pkgconfig flex ] ++ stdenv.lib.optionals (!demoSupport) [ autoconf automake ];
  nativeBuildInputs = [ pkgconfig flex ];

  propagatedBuildInputs = [ libXp libXau ];

@@ -30,13 +30,16 @@ stdenv.mkDerivation rec {

  makeFlags = [ "CFLAGS=-fno-strict-aliasing" ];

  prePatch = ''rm lib/Xm/Xm.h'';
  prePatch = ''
    rm lib/Xm/Xm.h
  '' + stdenv.lib.optionalString (!demoSupport) ''
    sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in}
  '';

  patches = [ ./Remove-unsupported-weak-refs-on-darwin.patch
              ./Use-correct-header-for-malloc.patch
              ./Add-X.Org-to-bindings-file.patch
            ]
            ++ stdenv.lib.optional (!demoSupport) ./Do-not-compile-demos.patch;
            ];

  meta = with stdenv.lib; {
    homepage = http://motif.ics.com;