2016-07-27 19:34:26 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libtool
|
|
|
|
, xlibsWrapper, xbitmaps, libXrender, libXmu, libXt
|
|
|
|
, expat, libjpeg, libpng, libiconv
|
|
|
|
, flex
|
|
|
|
, libXp, libXau
|
|
|
|
, demoSupport ? false, autoconf, automake
|
|
|
|
}:
|
|
|
|
# refer to the gentoo package
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "motif-${version}";
|
|
|
|
version = "2.3.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/motif/${name}.tar.gz";
|
|
|
|
sha256 = "1ksqbp0bzdw6wcrx8s4hj4ivvxmw54hz85l2xfigb87cxmmhx0gs";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-07-30 12:42:36 +02:00
|
|
|
libtool
|
2016-07-27 19:34:26 +02:00
|
|
|
xlibsWrapper xbitmaps libXrender libXmu libXt
|
|
|
|
expat libjpeg libpng libiconv
|
2016-07-30 12:42:36 +02:00
|
|
|
];
|
2016-07-27 19:34:26 +02:00
|
|
|
|
2016-07-30 12:42:36 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig flex ] ++ stdenv.lib.optionals (!demoSupport) [ autoconf automake ];
|
2016-07-27 19:34:26 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ libXp libXau ];
|
|
|
|
|
2016-08-02 17:04:52 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2016-07-27 19:34:26 +02:00
|
|
|
makeFlags = [ "CFLAGS=-fno-strict-aliasing" ];
|
|
|
|
|
2016-07-30 12:42:36 +02:00
|
|
|
prePatch = ''rm lib/Xm/Xm.h'';
|
|
|
|
|
|
|
|
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;
|
2016-07-27 19:34:26 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://motif.ics.com;
|
|
|
|
description = "Unix standard widget-toolkit and window-manager";
|
2016-07-30 12:42:36 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-07-27 19:34:26 +02:00
|
|
|
license = with licenses; [ lgpl21 ];
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|