- build on 3.x

- respect LOCALBASE
This commit is contained in:
naddy 2001-10-07 01:19:40 +00:00
parent 33c4a92e87
commit 9a538feefa
2 changed files with 20 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2001/09/12 06:05:14 shell Exp $
# $OpenBSD: Makefile,v 1.8 2001/10/07 01:19:40 naddy Exp $
COMMENT= "python interface to MySQL"
@ -33,6 +33,9 @@ PY_CMD= @cd ${WRKSRC}; python${PYTHON_VER} ./setup.py
DOC_DIR= ${PREFIX}/share/doc/MySQL-python
do-configure:
@perl -i -pe 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
do-build:
${PY_CMD} build --build-base="${WRKSRC}"

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-setup_py,v 1.3 2001/10/07 01:19:40 naddy Exp $
--- setup.py.orig Sun Oct 7 03:06:43 2001
+++ setup.py Sun Oct 7 03:07:19 2001
@@ -24,9 +24,9 @@ if sys.platform == "linux-i386": # Red H
libraries = [mysqlclient, "z"]
runtime_library_dirs = []
extra_objects = []
-elif sys.platform in ("freebsd4", "openbsd2"):
- include_dirs = ['/usr/local/include/mysql']
- library_dirs = ['/usr/local/lib/mysql']
+elif sys.platform in ("freebsd4", "openbsd3"):
+ include_dirs = ['%%LOCALBASE%%/include/mysql']
+ library_dirs = ['%%LOCALBASE%%/lib/mysql']
libraries = [mysqlclient, "z"]
runtime_library_dirs = []
extra_objects = []