ports/70082: Update py-MySQLdb port to suport mysqlclient_r/ssl/cypto OPTIONS
Marcus Grando
marcus at corp.grupos.com.br
Fri Aug 6 15:50:19 UTC 2004
>Number: 70082
>Category: ports
>Synopsis: Update py-MySQLdb port to suport mysqlclient_r/ssl/cypto OPTIONS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 06 15:50:18 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Marcus Grando
>Release: FreeBSD 4.10-STABLE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD corp.grupos.com.br 4.10-STABLE FreeBSD 4.10-STABLE #21: Sat Jul 24 19:44:43 BRT 2004 root at corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386
>Description:
Update py-MySQLdb port to suport mysqlclient_r/ssl/cypto OPTIONS
This options described in:
http://sourceforge.net/project/shownotes.php?group_id=22307&release_id=243731
>How-To-Repeat:
>Fix:
diff -ruN py-MySQLdb.old/Makefile py-MySQLdb/Makefile
--- py-MySQLdb.old/Makefile Sat Jul 10 01:00:36 2004
+++ py-MySQLdb/Makefile Fri Aug 6 12:33:22 2004
@@ -7,6 +7,7 @@
PORTNAME= py-MySQLdb
PORTVERSION= 1.0.0
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python
@@ -19,6 +20,32 @@
USE_PYDISTUTILS= yes
USE_MYSQL= yes
+OPTIONS= MYSQLCLIENT_R "Use mysqlclient_r lib" off \
+ MYSQLSSL "Use SSL support" off \
+ MYSQLCRYPTO "Use CRYPTO support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQLCLIENT_R)
+MAKE_ENV+= mysqlclient="mysqlclient_r"
+.else
+MAKE_ENV+= mysqlclient="mysqlclient"
+.endif
+
+.if defined(WITH_MYSQLSSL)
+.if defined(WITH_MYSQLCRYPTO)
+MAKE_ENV+= mysqloptlibs="ssl crypto"
+.else
+MAKE_ENV+= mysqloptlibs="ssl"
+.endif
+.else
+.if defined(WITH_MYSQLCRYPTO)
+MAKE_ENV+= mysqloptlibs="crypto"
+.else
+MAKE_ENV+= mysqloptlibs=""
+.endif
+.endif
+
PORTDOCS= MANIFEST README
.if !defined(NOPORTDOCS)
@@ -29,4 +56,4 @@
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list