mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
68c003b256
It seemed easiest to avoid the need to autoreconf.
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, libtool
|
|
, xlibsWrapper, xbitmaps, libXrender, libXmu, libXt
|
|
, expat, libjpeg, libpng, libiconv
|
|
, flex
|
|
, libXp, libXau
|
|
, demoSupport ? false
|
|
}:
|
|
# 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 = [
|
|
libtool
|
|
xlibsWrapper xbitmaps libXrender libXmu libXt
|
|
expat libjpeg libpng libiconv
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig flex ];
|
|
|
|
propagatedBuildInputs = [ libXp libXau ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
makeFlags = [ "CFLAGS=-fno-strict-aliasing" ];
|
|
|
|
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
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://motif.ics.com;
|
|
description = "Unix standard widget-toolkit and window-manager";
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = with licenses; [ lgpl21 ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|