aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-12-19 07:56:52 +0800
committerpav <pav@FreeBSD.org>2004-12-19 07:56:52 +0800
commite2cc8d822da83594e0076a5a16dfa116c36cc6d8 (patch)
tree94d88c706b71ef481cf33f5bec020f61740aaa9b /databases
parent818cbc8f479ae0fbe6698fa7e976be3d9c056f24 (diff)
downloadfreebsd-ports-gnome-e2cc8d822da83594e0076a5a16dfa116c36cc6d8.tar.gz
freebsd-ports-gnome-e2cc8d822da83594e0076a5a16dfa116c36cc6d8.tar.zst
freebsd-ports-gnome-e2cc8d822da83594e0076a5a16dfa116c36cc6d8.zip
- Convert hard py- into PKGNAMEPREFIX
- Convert OPTIONS to plain knobs - Add conflict with devel version PR: ports/75220 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> (maintainer)
Diffstat (limited to 'databases')
-rw-r--r--databases/py-MySQLdb/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile
index f814f8e6a2fe..9d11b949a6b9 100644
--- a/databases/py-MySQLdb/Makefile
+++ b/databases/py-MySQLdb/Makefile
@@ -5,12 +5,13 @@
# $FreeBSD$
#
-PORTNAME= py-MySQLdb
+PORTNAME= MySQLdb
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= MySQL-python-${PORTVERSION}
MAINTAINER= marcus@corp.grupos.com.br
@@ -20,13 +21,16 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_MYSQL= yes
-OPTIONS= MYSQLCLIENT_R "Use mysqlclient_r lib" off \
- MYSQLSSL "Use SSL support" off \
- MYSQLCRYPTO "Use CRYPTO support" off
+CONFLICTS= py*-MySQLdb-devel-*
-PORTDOCS= MANIFEST README
-
-.include <bsd.port.pre.mk>
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " WITH_MYSQLCLIENT_R=yes Use mysqlclient_r lib"
+ @${ECHO} " WITH_MYSQLSSL=yes Use SSL support"
+ @${ECHO} " WITH_MYSQLCRYPTO=yes Use CRYPTO support"
+ @${ECHO} ""
.if defined(WITH_MYSQLCLIENT_R)
MAKE_ENV+= mysqlclient="mysqlclient_r"
@@ -48,6 +52,8 @@ MAKE_ENV+= mysqloptlibs=""
.endif
.endif
+PORTDOCS= MANIFEST README
+
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
@@ -56,4 +62,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>