1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, libtool
2 , xlibsWrapper, xbitmaps, libXrender, libXmu, libXt
3 , expat, libjpeg, libpng, libiconv
8 # refer to the gentoo package
10 stdenv.mkDerivation rec {
15 url = "mirror://sourceforge/motif/${pname}-${version}.tar.gz";
16 sha256 = "1rxwkrhmj8sfg7dwmkhq885valwqbh26d79033q7vb7fcqv756w5";
21 xlibsWrapper xbitmaps libXrender libXmu libXt
22 expat libjpeg libpng libiconv
25 nativeBuildInputs = [ pkg-config flex ];
27 propagatedBuildInputs = [ libXp libXau ];
29 prePatch = lib.optionalString (!demoSupport) ''
30 sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in}
34 ./Remove-unsupported-weak-refs-on-darwin.patch
35 ./Add-X.Org-to-bindings-file.patch
37 name = "fix-format-security.patch";
38 url = "https://raw.githubusercontent.com/void-linux/void-packages/b9a1110dabb01c052dadc1abae1413bd4afe3652/srcpkgs/motif/patches/02-${name}";
39 sha256 = "13vzpf8yxvhf4gl7q0yzlr6ak1yzx382fsqsrv5lc8jbbg4nwrrq";
43 enableParallelBuilding = true;
46 homepage = "https://motif.ics.com";
47 description = "Unix standard widget-toolkit and window-manager";
48 platforms = platforms.unix;
49 license = with licenses; [ lgpl21Plus ];
50 maintainers = with maintainers; [ qyliss ];