summaryrefslogtreecommitdiff
path: root/databases/py-ldap/patches/patch-aa
blob: b782367d76c66d826b642bbd40ebd8d3f1eb3e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$NetBSD: patch-aa,v 1.1 2003/01/04 18:16:22 cjep Exp $

--- Misc/Makefile.python-1.4.orig	Mon Aug 14 23:37:41 2000
+++ Misc/Makefile.python-1.4
@@ -141,6 +141,7 @@ BINLIBDEST=	$(LIBDIR)/python$(VERSION)
 LIBDEST=	$(SCRIPTDIR)/python$(VERSION)
 INCLUDEPY=	$(INCLUDEDIR)/python$(VERSION)
 LIBP=		$(exec_installdir)/lib/python$(VERSION)
+DESTSHARED=	$(BINLIBDEST)/site-packages
 
 LIBPL=		$(LIBP)/config
 
@@ -159,6 +160,9 @@ SYSLIBS=	$(LIBM) $(LIBC)
 
 ADDOBJS=	$(LIBPL)/main.o getpath.o config.o
 
+INSTALL=	$(LIBPL)/install-sh -c
+INSTALL_SHARED=	${INSTALL} -m 555
+
 # === Fixed rules ===
 
 # Default target.  This builds shared libraries only
@@ -249,9 +253,9 @@ sedscript:	$(MAKEFILE)
 
 # Bootstrap target
 boot:	clobber
-	VERSION=`python -c "import sys; print sys.version[:3]"`; \
-	installdir=`python -c "import sys; print sys.prefix"`; \
-	exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
+	VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
+	installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
+	exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
 	$(MAKE) -f $(srcdir)/Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
 		VERSION=$$VERSION \
 		installdir=$$installdir \
@@ -271,3 +275,12 @@ clobber:	clean
 # Handy target to remove everything you don't want to distribute
 distclean:	clobber
 		-rm -f Makefile Setup
+
+install:	sharedmods
+		if test ! -d $(DESTSHARED) ; then \
+			mkdir $(DESTSHARED) ; else true ; fi
+		-for i in X $(SHAREDMODS); do \
+			if test $$i != X; \
+			then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
+			fi; \
+		done