summaryrefslogtreecommitdiff
path: root/lang/python25/patches/patch-au
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python25/patches/patch-au')
-rw-r--r--lang/python25/patches/patch-au29
1 files changed, 26 insertions, 3 deletions
diff --git a/lang/python25/patches/patch-au b/lang/python25/patches/patch-au
index aa9bcc504b7..895dbe2552f 100644
--- a/lang/python25/patches/patch-au
+++ b/lang/python25/patches/patch-au
@@ -1,8 +1,31 @@
-$NetBSD: patch-au,v 1.1.1.1 2008/04/24 01:50:58 tnn Exp $
+$NetBSD: patch-au,v 1.2 2008/06/27 19:57:49 tron Exp $
---- Makefile.pre.in.orig 2007-12-05 21:43:57.000000000 +0100
+--- Makefile.pre.in.orig 2007-12-05 14:43:57.000000000 -0600
+++ Makefile.pre.in
-@@ -806,7 +806,7 @@ $(srcdir)/Lib/$(PLATDIR):
+@@ -376,6 +376,12 @@ libpython$(VERSION).so: $(LIBRARY_OBJS)
+ libpython$(VERSION).sl: $(LIBRARY_OBJS)
+ $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
+
++libpython$(VERSION).dylib: $(LIBRARY_OBJS)
++ $(LINKCC) -dynamiclib -install_name $(LIBDIR)/$@ \
++ -current_version 2.5.2 -compatibility_version $(VERSION) \
++ -o $@ -flat_namespace -undefined suppress $(LDFLAGS) \
++ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
++
+ # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
+ # minimal framework (not including the Lib directory and such) in the current
+ # directory.
+@@ -683,7 +689,8 @@ altbininstall: $(BUILDPYTHON)
+ (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
+ fi \
+ fi; \
+- else true; \
++ elif test -f $(INSTSONAME); then \
++ $(INSTALL_SHARED) $(INSTSONAME) $(DESTDIR)$(LIBDIR); \
+ fi
+
+ # Install the manual page
+@@ -806,7 +813,7 @@ $(srcdir)/Lib/$(PLATDIR):
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
export EXE; EXE="$(BUILDEXE)"; \