blob: 1c9b7be4752f3747a2392328ace1a45e24f2b73c (
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
|
$NetBSD: patch-ad,v 1.2 2009/08/30 03:08:40 obache Exp $
--- Makefile.in.orig 2000-12-06 03:05:37.000000000 +0000
+++ Makefile.in
@@ -82,7 +82,7 @@ install_dso: dso
@echo
@echo "Performing DSO installation."
@echo
- $(INSTALL) src/mod_python.so $(LIBEXECDIR)
+ $(INSTALL) src/mod_python.so $(DESTDIR)$(LIBEXECDIR)
@$(MAKE) install_py_lib
@echo
@echo "Now don't forget to edit your main config and add"
@@ -114,12 +114,13 @@ install_static: static
@echo
install_py_lib:
- $(INSTALL) -d $(PY_STD_LIB)/site-packages/mod_python
+ $(INSTALL) -d $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
@for f in `ls lib/python/mod_python/*.py`; \
do \
- $(INSTALL) $$f $(PY_STD_LIB)/site-packages/mod_python; \
+ $(BSD_INSTALL_DATA) $$f $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python; \
done
- python $(PY_STD_LIB)/compileall.py $(PY_STD_LIB)/site-packages/mod_python
+ @PYTHON_BIN@ $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
+ @PYTHON_BIN@ -O $(PY_STD_LIB)/compileall.py $(DESTDIR)$(PY_STD_LIB)/site-packages/mod_python
clean:
cd src && $(MAKE) clean
|