From 3f6b9a05b0e6b2aa56a1081c3fd32d243efbf9e2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Aug 2003 17:29:18 +0000 Subject: [PATCH] * Added libIDL (which is used by Mozilla). svn path=/nixpkgs/trunk/; revision=279 --- pkgs/libIDL/libIDL-build.sh | 18 ++++++++++++++++++ pkgs/libIDL/libIDL.fix | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 pkgs/libIDL/libIDL-build.sh create mode 100644 pkgs/libIDL/libIDL.fix diff --git a/pkgs/libIDL/libIDL-build.sh b/pkgs/libIDL/libIDL-build.sh new file mode 100755 index 00000000000..c59c5ae8e48 --- /dev/null +++ b/pkgs/libIDL/libIDL-build.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +export NIX_LDFLAGS=-Wl,-s + +. $stdenv/setup || exit 1 + +export PATH=$pkgconfig/bin:$PATH +envpkgs="$glib" +. $setenv || exit 1 + +tar xvfj $src || exit 1 +cd libIDL-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo $envpkgs > $out/envpkgs || exit 1 diff --git a/pkgs/libIDL/libIDL.fix b/pkgs/libIDL/libIDL.fix new file mode 100644 index 00000000000..78e4e0707de --- /dev/null +++ b/pkgs/libIDL/libIDL.fix @@ -0,0 +1,16 @@ +Package( + [ ("name", "libIDL-0.8.2") + + , ("build", Relative("libIDL/libIDL-build.sh")) + , ("setenv", Relative("helpers/set-env.sh")) + + , ("src", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-0.8.2.tar.bz2") + , ("md5", "a75d2dbf3a3c66b567047c94245f8b82") + ])) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + , ("pkgconfig", IncludeFix("pkgconfig/pkgconfig.fix")) + , ("glib", IncludeFix("glib/glib.fix")) + ] +)