summaryrefslogtreecommitdiff
path: root/graphics/lensfun/patches/patch-ab
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-07-09 19:44:50 +0000
committerdrochner <drochner@pkgsrc.org>2009-07-09 19:44:50 +0000
commitd1c734432d346561eb2960df0b78272c809f8b0f (patch)
treec8f127acc678f067932a489ddd0ba908d4366dce /graphics/lensfun/patches/patch-ab
parente51bc6a7255456f5f7673fd2723f2dcd42361a36 (diff)
downloadpkgsrc-d1c734432d346561eb2960df0b78272c809f8b0f.tar.gz
add lensfun-0.2.3, a library to correct photographic lens distortions,
from wiz per pkgsrc-wip
Diffstat (limited to 'graphics/lensfun/patches/patch-ab')
-rw-r--r--graphics/lensfun/patches/patch-ab19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/lensfun/patches/patch-ab b/graphics/lensfun/patches/patch-ab
new file mode 100644
index 00000000000..7604a194841
--- /dev/null
+++ b/graphics/lensfun/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/07/09 19:44:50 drochner Exp $
+
+--- build/mak/host/posix.mak.orig 2008-07-14 21:23:30.000000000 +0200
++++ build/mak/host/posix.mak
+@@ -5,12 +5,12 @@ SHELL := /bin/sh
+ # $1 - file, $2 - target dir, $3 - mode
+ define SINGLE.INSTALL
+ if [ ! -d $2 ]; then install -m 0755 -d $2; fi
+- if [ -L $1 ]; then cp -d $1 $2$(notdir $1); else install -m $3 $1 $2$(notdir $1); fi
++ if [ -L $1 ]; then cp $1 $2$(notdir $1); else install -m $3 $1 $2$(notdir $1); fi
+ endef
+
+ # $1 - directory, $2 - target dir, $3 - mode for files
+ define SINGLE.INSTALLDIR
+ if [ ! -d $2 ]; then install -m 0755 -d $2; fi
+- cp -drP $1* $2
++ cp -r $1* $2
+ find $2 -type f -print0 | xargs -0 chmod $3
+ endef