diff --git a/graphics/lensfun/patches/patch-build_tibs_compiler_gcc_mak b/graphics/lensfun/patches/patch-build_tibs_compiler_gcc_mak new file mode 100644 index 00000000000..e9932dadbfb --- /dev/null +++ b/graphics/lensfun/patches/patch-build_tibs_compiler_gcc_mak @@ -0,0 +1,30 @@ +$OpenBSD: patch-build_tibs_compiler_gcc_mak,v 1.1 2010/09/16 10:05:20 sthen Exp $ +--- build/tibs/compiler/gcc.mak.orig Wed Mar 24 22:40:12 2010 ++++ build/tibs/compiler/gcc.mak Wed Apr 7 03:58:13 2010 +@@ -3,7 +3,7 @@ + .SUFFIXES: .c .cpp .o .lo .a .pc .pc.in + + GCC.CC ?= gcc -c +-GCC.CFLAGS = -pipe -Wall \ ++GCC.CFLAGS = -Wall \ + $(GCC.CFLAGS.$(MODE)) $(GCC.CFLAGS.DEF) $(GCC.CFLAGS.INC) $(CFLAGS) + GCC.CFLAGS.DEF = $(CFLAGS.DEF) + GCC.CFLAGS.INC = $(if $(DIR.INCLUDE.C),-I$(subst :, -I,$(DIR.INCLUDE.C))) +@@ -11,7 +11,7 @@ ifneq ($(TARGET),windows) + GCC.CFLAGS.SHARED ?= -fPIC + endif + +-GCC.CFLAGS.release = -s -O3 -fomit-frame-pointer -funroll-loops ++GCC.CFLAGS.release = + GCC.CFLAGS.debug = -D__DEBUG__ -g + + ifeq ($(ARCH),arm) +@@ -77,7 +77,7 @@ endef + LINK.GCC.AR = $(GCC.AR) $(GCC.ARFLAGS) $@ $^ + LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2 + define LINK.GCC.SO.VER +- $(GCC.LD) -o $@.$(SHARED.$3) $(call GCC.LDFLAGS.SHARED,$(notdir $@).$(basename $(basename $(SHARED.$3))),$(dir $@)) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2 ++ $(GCC.LD) -o $@.$(SHARED.$3) $(call GCC.LDFLAGS.SHARED,$(notdir $@).$(SHARED.$3),$(dir $@)) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2 + ln -fs $(notdir $@.$(SHARED.$3)) $@.$(basename $(basename $(SHARED.$3))) + ln -fs $(notdir $@.$(basename $(basename $(SHARED.$3)))) $@ + endef diff --git a/graphics/lensfun/patches/patch-build_tibs_host_posix_mak b/graphics/lensfun/patches/patch-build_tibs_host_posix_mak new file mode 100644 index 00000000000..2d9a3d78918 --- /dev/null +++ b/graphics/lensfun/patches/patch-build_tibs_host_posix_mak @@ -0,0 +1,18 @@ +$OpenBSD: patch-build_tibs_host_posix_mak,v 1.1 2010/09/16 10:05:20 sthen Exp $ +--- build/tibs/host/posix.mak.orig Mon Mar 22 20:32:47 2010 ++++ build/tibs/host/posix.mak Wed Apr 7 03:59:08 2010 +@@ -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 $(patsubst %/,%,$2)/$(notdir $1); else install -m $3 $1 $(patsubst %/,%,$2)/$(notdir $1); fi ++ if [ -L $1 ]; then cp -RP $1 $(patsubst %/,%,$2)/$(notdir $1); else install -m $3 $1 $(patsubst %/,%,$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 -RP $1* $2 + find $2 -type f -print0 | xargs -0 chmod $3 + endef diff --git a/graphics/lensfun/patches/patch-tibs_py b/graphics/lensfun/patches/patch-tibs_py new file mode 100644 index 00000000000..c622bfecf80 --- /dev/null +++ b/graphics/lensfun/patches/patch-tibs_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-tibs_py,v 1.1 2010/09/16 10:05:20 sthen Exp $ +--- tibs.py.orig Wed Mar 24 00:51:29 2010 ++++ tibs.py Wed Apr 7 03:55:25 2010 +@@ -38,7 +38,7 @@ PROJ = "Unknown" + # Version number (major.minor.release) + VERSION = "0.0.0" + +-PREFIX = "/usr/local" ++PREFIX = "${TRUEPREFIX}" + BINDIR = None + DATADIR = None + SYSCONFDIR = None