summaryrefslogtreecommitdiffstats
path: root/graphics/py-gphoto2/Makefile
blob: 771b187f5ea2f966bc7cd51c2bfd0cb3a6a16d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $FreeBSD$

PORTNAME=	gphoto2
PORTVERSION=	1.2.0
CATEGORIES=	graphics python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR=	python-gphoto2

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Python bindings for libgphoto2

LICENSE=	GPLv3

LIB_DEPENDS=	libgphoto2.so:graphics/libgphoto2

USES=		pkgconfig python
USE_PYTHON=	autoplist concurrent distutils

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	${REINPLACE_CMD} \
		-e 's|share/python-gphoto2/examples|${EXAMPLESDIR:S,${PREFIX}/,,}|' \
		-e 's|share/python-gphoto2|${DOCSDIR:S,${PREFIX}/,,}|' \
		${WRKSRC}/setup.py

.include <bsd.port.mk>
OpenPOWER on IntegriCloud