freebsd-ports/databases/py-mysqlclient/Makefile
Piotr Kubaj ff46feca69 databases/py-mysqlclient: fix build with GCC-based architectures
Since the switch to MySQL 5.7, C11-aware compiler is required:
/usr/bin/ld: cannot find -latomic

Approved by:	mentors (implicit approval)
2019-07-08 12:17:04 +00:00

33 lines
768 B
Makefile

# $FreeBSD$
PORTNAME= mysqlclient
DISTVERSION= 1.4.2.post1
CATEGORIES= databases python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTVERSIONPREFIX= v
MAINTAINER= neel@neelc.org
COMMENT= MySQL database connector for Python
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 iconv mysql python ssl
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= pymysql
GH_PROJECT= ${PORTNAME}-python
CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb5[0-9]-[0-9]* py*-MySQLdb
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>