- 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)
This commit is contained in:
Pav Lucistnik 2004-12-18 23:56:52 +00:00
parent 91fd40bf86
commit 6d488977a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124435

View file

@ -5,12 +5,13 @@
# $FreeBSD$ # $FreeBSD$
# #
PORTNAME= py-MySQLdb PORTNAME= MySQLdb
PORTVERSION= 1.0.0 PORTVERSION= 1.0.0
PORTREVISION= 1 PORTREVISION= 1
CATEGORIES= databases python CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python MASTER_SITE_SUBDIR= mysql-python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= MySQL-python-${PORTVERSION} DISTNAME= MySQL-python-${PORTVERSION}
MAINTAINER= marcus@corp.grupos.com.br MAINTAINER= marcus@corp.grupos.com.br
@ -20,13 +21,16 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes USE_PYDISTUTILS= yes
USE_MYSQL= yes USE_MYSQL= yes
OPTIONS= MYSQLCLIENT_R "Use mysqlclient_r lib" off \ CONFLICTS= py*-MySQLdb-devel-*
MYSQLSSL "Use SSL support" off \
MYSQLCRYPTO "Use CRYPTO support" off
PORTDOCS= MANIFEST README pre-fetch:
@${ECHO} ""
.include <bsd.port.pre.mk> @${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) .if defined(WITH_MYSQLCLIENT_R)
MAKE_ENV+= mysqlclient="mysqlclient_r" MAKE_ENV+= mysqlclient="mysqlclient_r"
@ -48,6 +52,8 @@ MAKE_ENV+= mysqloptlibs=""
.endif .endif
.endif .endif
PORTDOCS= MANIFEST README
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
post-install: post-install:
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
@ -56,4 +62,4 @@ post-install:
.endfor .endfor
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>