lol
at 18.09-beta 51 lines 1.3 kB view raw
1{ stdenv, fetchurl, pkgconfig, libtool 2, xlibsWrapper, xbitmaps, libXrender, libXmu, libXt 3, expat, libjpeg, libpng, libiconv 4, flex 5, libXp, libXau 6, demoSupport ? false 7}: 8# refer to the gentoo package 9 10stdenv.mkDerivation rec { 11 name = "motif-${version}"; 12 version = "2.3.6"; 13 14 src = fetchurl { 15 url = "mirror://sourceforge/motif/${name}.tar.gz"; 16 sha256 = "1ksqbp0bzdw6wcrx8s4hj4ivvxmw54hz85l2xfigb87cxmmhx0gs"; 17 }; 18 19 buildInputs = [ 20 libtool 21 xlibsWrapper xbitmaps libXrender libXmu libXt 22 expat libjpeg libpng libiconv 23 ]; 24 25 nativeBuildInputs = [ pkgconfig flex ]; 26 27 propagatedBuildInputs = [ libXp libXau ]; 28 29 hardeningDisable = [ "format" ]; 30 31 makeFlags = [ "CFLAGS=-fno-strict-aliasing" ]; 32 33 prePatch = '' 34 rm lib/Xm/Xm.h 35 '' + stdenv.lib.optionalString (!demoSupport) '' 36 sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in} 37 ''; 38 39 patches = [ ./Remove-unsupported-weak-refs-on-darwin.patch 40 ./Use-correct-header-for-malloc.patch 41 ./Add-X.Org-to-bindings-file.patch 42 ]; 43 44 meta = with stdenv.lib; { 45 homepage = http://motif.ics.com; 46 description = "Unix standard widget-toolkit and window-manager"; 47 platforms = with platforms; linux ++ darwin; 48 license = with licenses; [ lgpl21 ]; 49 maintainers = with maintainers; [ ]; 50 }; 51}