freebsd-ports/graphics/py-gphoto2/Makefile
Alexey Dokuchaev 262b774a5f graphics/py-gphoto2: the port had been updated (+)
- Update to the latest version 2.2.4
- Simplify commit 2e9a47e964 and respect CFLAGS
- Use EXAMPLESDIR_REL and DOCSDIR_REL variables
- Amend the port description text while here
2021-07-04 07:34:29 +00:00

28 lines
673 B
Makefile

PORTNAME= gphoto2
PORTVERSION= 2.2.4
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= python-gphoto2
MAINTAINER= danfe@FreeBSD.org
COMMENT= Python bindings for libgphoto2
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2
USES= pkgconfig python:3.6+ shebangfix
USE_PYTHON= autoplist concurrent distutils
SHEBANG_FILES= examples/*.py
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e '/-O3/d' \
-e 's|share/python-gphoto2/examples|${EXAMPLESDIR_REL}|' \
-e 's|share/python-gphoto2|${DOCSDIR_REL}|' \
${WRKSRC}/setup.py
.include <bsd.port.mk>