openbsd-ports/lang/python/2.2/patches/patch-Makefile_pre_in
matt cf056f6c83 Python 2.1.2 and Python 2.2.
Major changes:

- no more threads flavor, threads is now the default.

- subpackage modules that depend on other packages instead of having
largely redundant flavors (unless platform has no shared libs, then
flavors count again)

- shared libpython stuff disabled until someone can figure out why
it makes Zope crash
2002-02-15 19:42:18 +00:00

33 lines
1.2 KiB
Plaintext

$OpenBSD: patch-Makefile_pre_in,v 1.1 2002/02/15 19:42:18 matt Exp $
--- Makefile.pre.in.orig Wed Dec 19 04:24:40 2001
+++ Makefile.pre.in Fri Feb 8 22:24:40 2002
@@ -294,7 +294,7 @@ all: $(BUILDPYTHON) oldsharedmods share
$(BUILDPYTHON): Modules/$(MAINOBJ) $(LDLIBRARY)
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
Modules/$(MAINOBJ) \
- $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
+ -lpython$(VERSION) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
platform: $(BUILDPYTHON)
./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
@@ -345,6 +345,10 @@ libpython$(VERSION).so: $(LIBRARY)
;; \
esac
+# This rule for OpenBSD...
+libpython$(VERSION).so.$(MAJOR).$(MINOR): $(LIBRARY)
+ $(LDSHARED) -o $@ $(LIBRARY_OBJS)
+
# This rule is here for OPENSTEP/Rhapsody/MacOSX
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): $(LIBRARY) $(PYTHONFRAMEWORKDIR)
libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
@@ -576,7 +580,7 @@ maninstall:
fi; \
done
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
- $(MANDIR)/man1/python.1
+ $(MANDIR)/man1/python2.2.1
# Install the library
PLATDIR= plat-$(MACHDEP)