* Added XFree86 (client-side libraries only).

svn path=/nixpkgs/trunk/; revision=373
This commit is contained in:
Eelco Dolstra 2003-08-29 12:23:00 +00:00
parent d7d58daff4
commit 01f6b1026c
3 changed files with 72 additions and 0 deletions

30
pkgs/xfree86/host.def Normal file
View File

@ -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

15
pkgs/xfree86/xfree86-build.sh Executable file
View File

@ -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

27
pkgs/xfree86/xfree86.fix Normal file
View File

@ -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"))
]
)