summaryrefslogtreecommitdiffstats
path: root/main/xdelta3/xdelta3-makefile.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-20 20:17:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-20 20:18:10 +0000
commita93e7f4a43e7814cf3274e307c759b2989308457 (patch)
treefeca09447fab3e62a8d7ac4576c4a6b88812137d /main/xdelta3/xdelta3-makefile.patch
parent7eeea56234790a09ba6678eb1fcafd43a3660c3a (diff)
downloadaports-a93e7f4a43e7814cf3274e307c759b2989308457.tar.bz2
aports-a93e7f4a43e7814cf3274e307c759b2989308457.tar.xz
main/xdelta3: new aport
A diff utility which works with binary files http://xdelta.org/
Diffstat (limited to 'main/xdelta3/xdelta3-makefile.patch')
-rw-r--r--main/xdelta3/xdelta3-makefile.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/xdelta3/xdelta3-makefile.patch b/main/xdelta3/xdelta3-makefile.patch
new file mode 100644
index 000000000..f7fc6a657
--- /dev/null
+++ b/main/xdelta3/xdelta3-makefile.patch
@@ -0,0 +1,33 @@
+diff -Naur xdelta3.0v-old/Makefile xdelta3.0v/Makefile
+--- xdelta3.0v-old/Makefile 2009-03-12 01:44:51.000000000 +0000
++++ xdelta3.0v/Makefile 2009-03-14 17:02:33.000000000 +0000
+@@ -4,7 +4,7 @@
+ UNAME = $(shell uname)
+ CYGWIN = $(findstring CYGWIN, $(UNAME))
+ DARWIN = $(findstring Darwin, $(UNAME))
+-PYVER = 2.5
++PYVER = 2.6
+
+ ifeq ("$(CYGWIN)", "")
+ SWIGTGT = xdelta3module.so
+@@ -200,6 +200,9 @@
+ xdelta3.o: $(SOURCES)
+ $(CC) -O3 $(CFLAGS) -c xdelta3.c $(SWIG_FLAGS) -o xdelta3.o
+
++xdelta3_PIC.o: $(SOURCES)
++ $(CC) -O3 $(CFLAGS) -fPIC -c xdelta3.c $(SWIG_FLAGS) -o xdelta3_PIC.o
++
+ xdelta3_wrap.o: xdelta3_wrap.c
+ $(CC) -O3 $(CFLAGS) $(SWIG_FLAGS) \
+ -DHAVE_CONFIG_H \
+@@ -218,8 +221,8 @@
+ cp $(SWIGTGT) /usr/lib/python$(PYVER)/site-packages
+
+ ifeq ("$(DARWIN)", "")
+-xdelta3module.so: xdelta3_wrap.o xdelta3.o
+- ld -shared xdelta3.o xdelta3_wrap.o \
++xdelta3module.so: xdelta3_wrap.o xdelta3_PIC.o
++ cc -shared xdelta3_PIC.o xdelta3_wrap.o \
+ -o xdelta3module.so \
+ /usr/lib/libpython$(PYVER).so \
+ -lc