diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-08-29 12:23:00 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2003-08-29 12:23:00 +0000 |
commit | 01f6b1026c069b97b5c9115eaf343bfc7d1a7386 (patch) | |
tree | e1025a5fff5f5b623ebc6d58ff1bc4844f7dfb1a /pkgs/xfree86 | |
parent | d7d58daff4b40405017b3a29147301c9bbff0769 (diff) |
* Added XFree86 (client-side libraries only).
svn path=/nixpkgs/trunk/; revision=373
Diffstat (limited to 'pkgs/xfree86')
-rw-r--r-- | pkgs/xfree86/host.def | 30 | ||||
-rwxr-xr-x | pkgs/xfree86/xfree86-build.sh | 15 | ||||
-rw-r--r-- | pkgs/xfree86/xfree86.fix | 27 |
3 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/xfree86/host.def b/pkgs/xfree86/host.def new file mode 100644 index 0000000000000..0085f9dab2598 --- /dev/null +++ b/pkgs/xfree86/host.def @@ -0,0 +1,30 @@ +#define BuildServer NO +#define BuildFontServer NO +#define BuildSpeedo NO +#define BuildType1 NO +#define BuildCID NO +#define BuildFreeType NO +#define BuildXTrueType NO +#define BuildFonts NO +#define BuildXftLibrary NO +#define BuildXft1Library NO +#define BuildClients NO +#define BuildDocs NO +#define BuildLibraries YES +#define BuildGLXLibrary NO +#define BuildOSMesaLib NO +#define BuildOSMesaLib NO +#define BuildXvMCExt NO +#define BuildXvMCLibrary NO + +#define XF86Server NO +#define XnestServer NO +#define XVirtualFramebufferServer NO +#define XprtServer NO +#define XF86CardDrivers +#define XInputDrivers + +#define ProjectRoot @OUT@ +#define NothingOutsideProjectRoot YES +#define EtcX11Directory ProjectRoot/etc +#define UseSeparateConfDir NO diff --git a/pkgs/xfree86/xfree86-build.sh b/pkgs/xfree86/xfree86-build.sh new file mode 100755 index 0000000000000..01c74bf4f7b10 --- /dev/null +++ b/pkgs/xfree86/xfree86-build.sh @@ -0,0 +1,15 @@ +#! /bin/sh + +. $stdenv/setup || exit 1 +export PATH=$bison/bin:$flex/bin:$PATH + +# For libfl.a (flex); assuming it's a static library. +export NIX_CFLAGS_LINK="-L$flex/lib $NIX_CFLAGS_LINK" + +tar xvfz $src1 || exit 1 +tar xvfz $src2 || exit 1 +tar xvfz $src3 || exit 1 +cd xc || exit 1 +sed "s^@OUT@^$out^" < $hostdef > config/cf/host.def +make World || exit 1 +make install || exit 1 diff --git a/pkgs/xfree86/xfree86.fix b/pkgs/xfree86/xfree86.fix new file mode 100644 index 0000000000000..499e38d47a97e --- /dev/null +++ b/pkgs/xfree86/xfree86.fix @@ -0,0 +1,27 @@ +Package( + [ ("name", "xfree86-4.3") + + , ("build", Relative("xfree86/xfree86-build.sh")) + + , ("src1", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-1.tgz") + , ("md5", "4f241a4f867363f40efa2b00dca292af") + ])) + + , ("src2", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-2.tgz") + , ("md5", "844c2ee908d21dbf8911fd13115bf8b4") + ])) + + , ("src3", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://gnu.kookel.org/pub/XFree86/4.3.0/source/X430src-3.tgz") + , ("md5", "b82a0443e1b7bf860e4343e6b6766cb6") + ])) + + , ("hostdef", Relative("xfree86/host.def")) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + , ("bison", IncludeFix("bison/bison.fix")) + , ("flex", IncludeFix("flex/flex.fix")) + ] +) |