aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-PyGreSQL
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>1998-07-23 06:33:19 +0800
committernectar <nectar@FreeBSD.org>1998-07-23 06:33:19 +0800
commit0aac8144785d9e14d473f2805a53bda0b738ebae (patch)
treecd9762246c7a7e2b4c0909184c674e3e3be0c92c /databases/py-PyGreSQL
parentadcddab29bce677bd14b1c7abe14e96f002ce706 (diff)
downloadfreebsd-ports-graphics-0aac8144785d9e14d473f2805a53bda0b738ebae.tar.gz
freebsd-ports-graphics-0aac8144785d9e14d473f2805a53bda0b738ebae.tar.zst
freebsd-ports-graphics-0aac8144785d9e14d473f2805a53bda0b738ebae.zip
Tighten the search for the python library.
Diffstat (limited to 'databases/py-PyGreSQL')
-rw-r--r--databases/py-PyGreSQL/Makefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/databases/py-PyGreSQL/Makefile b/databases/py-PyGreSQL/Makefile
index fc0903a3b80..54a8b3a6895 100644
--- a/databases/py-PyGreSQL/Makefile
+++ b/databases/py-PyGreSQL/Makefile
@@ -3,7 +3,7 @@
# Date created: 6/25/1998
# Whom: n@nectar.com
#
-# $Id: Makefile,v 1.3 1998/07/20 11:19:08 asami Exp $
+# $Id: Makefile,v 1.4 1998/07/20 11:41:31 asami Exp $
#
DISTNAME= PyGreSQL-2.1
@@ -18,8 +18,6 @@ BUILD_DEPENDS= python:${PORTSDIR}/lang/python
RUN_DEPENDS= python:${PORTSDIR}/lang/python
LIB_DEPENDS= pq\\.1\\.:${PORTSDIR}/databases/postgresql
-BROKEN= build
-
WRKSRC= ${WRKDIR}
HAS_CONFIGURE= YES
GNU_CONFIGURE= YES
@@ -28,21 +26,18 @@ PY_PREFIX= python -c "import sys; print sys.prefix"
PY_EXEC_PREFIX= python -c "import sys; print sys.exec_prefix"
PY_SITE_PYTHON= python -c "import sys; import string; print (filter(lambda a: string.find(a, 'site-python') >= 0, sys.path) or [''])[0]"
-CONFIGURE_ENV= LDFLAGS="-L${PREFIX}/lib/python1.5/config -L${PREFIX}/pgsql/lib" \
- CPPFLAGS="-I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include"
-
CHOWN?= chown
CHMOD?= chmod
do-configure:
.if defined(BATCH)
- @(if test `${PY_SITE_PYTHON}` == ""; then \
+ @(if [ "`${PY_SITE_PYTHON}`" = "" ]; then \
${MKDIR} ${PREFIX}/lib/site-python; \
${CHOWN} ${BINOWN}.${BINGRP} ${PREFIX}/lib/site-python; \
${CHMOD} ${BINMODE} ${PREFIX}/lib/site-python; \
fi)
.else
- @(if test `${PY_SITE_PYTHON}` == ""; then \
+ @(if [ "`${PY_SITE_PYTHON}`" = "" ]; then \
${ECHO} "You must create a site-python directory in order to"; \
${ECHO} "build and install this port. On most systems, creating"; \
${ECHO} "a directory called ${PREFIX}/lib/site-python will do."; \
@@ -55,14 +50,16 @@ do-configure:
${INSTALL} -c -m 0555 ${SCRIPTDIR}/install-sh ${WRKSRC}
${INSTALL} -c -m 0555 ${SCRIPTDIR}/configure.local ${WRKSRC}/configure
@(cd ${WRKSRC} && CC="${CC}" CXX="${CXX}" ac_cv_path_CC="${CC}" \
- CFLAGS="${CFLAGS}" \
- INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
- INSTALL_DATA="${INSTALL_DATA}" \
- INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
- PY_EXEC_PREFIX=`${PY_EXEC_PREFIX}` \
- PY_SITE_PYTHON=`${PY_SITE_PYTHON}` \
- ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+ CFLAGS="${CFLAGS}" \
+ INSTALL="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ PY_EXEC_PREFIX=`${PY_EXEC_PREFIX}` \
+ PY_SITE_PYTHON=`${PY_SITE_PYTHON}` \
+ LDFLAGS="-L`${PY_PREFIX}`/lib/python1.5/config -L${PREFIX}/pgsql/lib" \
+ CPPFLAGS="-I`${PY_PREFIX}`/include/python1.5 -I${PREFIX}/pgsql/include" \
+ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.PyGreSQL