aboutsummaryrefslogblamecommitdiff
path: root/graphics/py-gphoto2/Makefile
blob: cc373802acae99c11d92f5e02a84a9c0dcc471cf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                       
                     




                                       
                                 

                                              
                      
                                     
 
                                                 
 
                                                
                                              
                             



                             


                                                                          

                                  
                      
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>