about summary refs log tree commit diff
path: root/pkgs/development/libraries/libtiff/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libtiff/builder.sh')
-rwxr-xr-xpkgs/development/libraries/libtiff/builder.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtiff/builder.sh b/pkgs/development/libraries/libtiff/builder.sh
new file mode 100755
index 0000000000000..c237077c8b440
--- /dev/null
+++ b/pkgs/development/libraries/libtiff/builder.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+buildinputs="$zlib $libjpeg"
+. $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 $libjpeg/include" || exit 1
+make || exit 1
+mkdir $out || exit 1
+make install || exit 1
+strip -S $out/lib/*.a || exit 1
+
+echo "$zlib $libjpeg" > $out/propagated-build-inputs || exit 1