262b774a5f
- 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
28 lines
673 B
Makefile
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>
|