about summary refs log tree commit diff
path: root/pkgs/libtiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-27 15:17:15 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2003-08-27 15:17:15 +0000
commit9f91684adb0065fbb1ee7e92aac6da27d78bdcf7 (patch)
treed811d5a734d38b786ad1a9778c2c32443e9b7127 /pkgs/libtiff
parenta291f2a94e2ae5b620aabb76ec84bc0c67a0c0fe (diff)
* A bunch of image file format libraries required by gtk.
svn path=/nixpkgs/trunk/; revision=366
Diffstat (limited to 'pkgs/libtiff')
-rwxr-xr-xpkgs/libtiff/libtiff-build.sh16
-rw-r--r--pkgs/libtiff/libtiff.fix15
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/libtiff/libtiff-build.sh b/pkgs/libtiff/libtiff-build.sh
new file mode 100755
index 0000000000000..6f7b3b168dca5
--- /dev/null
+++ b/pkgs/libtiff/libtiff-build.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+envpkgs="$zlib $jpeg"
+. $stdenv/setup || exit 1
+
+tar xvfz $src || exit 1
+cd tiff-* || exit 1
+./configure --prefix=$out --with-DIR_MAN=$out/man \
+ --with-ZIP --with-JPEG \
+ --with-DIRS_LIBINC="$zlib/include $jpeg/include" || exit 1
+make || exit 1
+mkdir $out || exit 1
+make install || exit 1
+strip -S $out/lib/*.a || exit 1
+
+echo $envpkgs > $out/envpkgs || exit 1
diff --git a/pkgs/libtiff/libtiff.fix b/pkgs/libtiff/libtiff.fix
new file mode 100644
index 0000000000000..6e2fcd62e4931
--- /dev/null
+++ b/pkgs/libtiff/libtiff.fix
@@ -0,0 +1,15 @@
+Package(
+  [ ("name", "libtiff-3.5.7")
+
+  , ("build", Relative("libtiff/libtiff-build.sh"))
+
+  , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
+      [ ("url", "ftp://ftp.remotesensing.org/pub/libtiff/tiff-v3.5.7.tar.gz")
+      , ("md5", "82243b5ae9b7c9e492aeebc501680990")
+      ]))
+
+  , ("stdenv", IncludeFix("stdenv/stdenv.fix"))
+  , ("zlib", IncludeFix("zlib/zlib.fix"))
+  , ("jpeg", IncludeFix("libjpeg/libjpeg.fix"))
+  ]
+)