freebsd-ports/games/py-sgflib/Makefile
2021-04-06 16:31:07 +02:00

34 lines
822 B
Makefile

# Created by: Leland Wang <llwang@infor.org>
PORTNAME= sgflib
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= games python
MASTER_SITES= http://gotools.sourceforge.net/sgflib/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Smart Game Format parser library for Python
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/lgpl.txt
USES= python:3.6+ shebangfix
USE_PYTHON= flavors
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \
${WRKSRC}/*.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
(cd ${WRKSRC} && ${INSTALL_SCRIPT} sgflib.py typelib.py \
${STAGEDIR}${PYTHON_SITELIBDIR})
.include <bsd.port.mk>