mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 12:27:44 +00:00
* Xaw3d: export Xaw header directory and propagate libXmu.
* Emacs: don't depend on libXaw when we're using Xaw3d. * Enable X11R7.0 over the old XLibs. Cross fingers :-) svn path=/nixpkgs/trunk/; revision=4531
This commit is contained in:
parent
2346c0061b
commit
05f665116a
@ -6,9 +6,9 @@
|
||||
, pkgconfig ? null, gtk ? null
|
||||
}:
|
||||
|
||||
assert xawSupport -> libXaw != null;
|
||||
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
||||
assert xawSupport && xaw3dSupport -> Xaw3d != null;
|
||||
assert xpmSupport -> libXpm != null;
|
||||
assert xaw3dSupport -> Xaw3d != null;
|
||||
assert gtkGUI -> pkgconfig != null && gtk != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@ -21,9 +21,8 @@ stdenv.mkDerivation {
|
||||
patches = [./crt.patch];
|
||||
buildInputs = [
|
||||
x11
|
||||
(if xawSupport then libXaw else null)
|
||||
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
||||
(if xpmSupport then libXpm else null)
|
||||
(if xaw3dSupport then Xaw3d else null)
|
||||
] ++ (if gtkGUI then [pkgconfig gtk] else []);
|
||||
configureFlags =
|
||||
if gtkGUI then ["--with-x-toolkit=gtk"] else [];
|
||||
|
@ -4,9 +4,9 @@
|
||||
, stdenv, fetchurl, x11, libXaw ? null, libXpm ? null, Xaw3d ? null
|
||||
}:
|
||||
|
||||
assert xawSupport -> libXaw != null;
|
||||
assert xawSupport && !xaw3dSupport -> libXaw != null;
|
||||
assert xawSupport && xaw3dSupport -> Xaw3d != null;
|
||||
assert xpmSupport -> libXpm != null;
|
||||
assert xaw3dSupport -> Xaw3d != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "emacs-21.4a";
|
||||
@ -18,8 +18,7 @@ stdenv.mkDerivation {
|
||||
patches = [./crt.patch];
|
||||
buildInputs = [
|
||||
x11
|
||||
(if xawSupport then libXaw else null)
|
||||
(if xawSupport then if xaw3dSupport then Xaw3d else libXaw else null)
|
||||
(if xpmSupport then libXpm else null)
|
||||
(if xaw3dSupport then Xaw3d else null)
|
||||
];
|
||||
}
|
||||
|
@ -15,6 +15,10 @@ buildPhase() {
|
||||
|
||||
installPhase() {
|
||||
make install SHLIBDIR=$out/lib USRLIBDIR=$out/lib INCDIR=$out/include
|
||||
cd $out/include/X11 && ln -s Xaw3d Xaw
|
||||
|
||||
ensureDir "$out/nix-support"
|
||||
echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
|
||||
}
|
||||
|
||||
makeFlags="CDEBUGFLAGS=" # !!! awful hack
|
||||
|
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, x11, xmkmf, makedepend, libXmu, libXpm, libXp, bison, flex}:
|
||||
{stdenv, fetchurl, x11, imake, makedepend, libXmu, libXpm, libXp, bison, flex}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "Xaw3d-1.5E";
|
||||
@ -8,5 +8,6 @@ stdenv.mkDerivation {
|
||||
md5 = "29ecfdcd6bcf47f62ecfd672d31269a1";
|
||||
};
|
||||
patches = [./config.patch];
|
||||
buildInputs = [x11 xmkmf makedepend libXmu libXpm libXp bison flex];
|
||||
buildInputs = [x11 imake makedepend libXmu libXpm libXp bison flex];
|
||||
propagatedBuildInputs = [x11 libXmu];
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ rec {
|
||||
|
||||
### Symbolic names.
|
||||
|
||||
useOldXLibs = true;
|
||||
useOldXLibs = false;
|
||||
|
||||
# `xlibs' is the set of X library components. This used to be the
|
||||
# old modular X libraries project (called `xlibs') but now it's just
|
||||
@ -1138,7 +1138,7 @@ rec {
|
||||
inherit fetchurl stdenv x11 bison;
|
||||
flex = flexnew;
|
||||
# !!! makedepend is impure
|
||||
inherit (xlibs) xmkmf makedepend libXmu libXpm libXp;
|
||||
inherit (xlibs) imake makedepend libXmu libXpm libXp;
|
||||
};
|
||||
|
||||
libdrm = import ../development/libraries/libdrm {
|
||||
@ -1993,7 +1993,7 @@ rec {
|
||||
emacs = (import ../applications/editors/emacs) {
|
||||
inherit fetchurl stdenv x11 Xaw3d;
|
||||
inherit (xlibs) libXaw libXpm;
|
||||
xaw3dSupport = false;
|
||||
xaw3dSupport = true;
|
||||
};
|
||||
|
||||
emacs22 = (import ../applications/editors/emacs-22) {
|
||||
|
Loading…
Reference in New Issue
Block a user