summaryrefslogtreecommitdiff
path: root/graphics/py-exiv2/Makefile
blob: 73a70651eba455c8f297653413acbed00446697c (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# New ports collection makefile for:	py-exiv2
# Date created:		2008-06-01
# Whom:			Denis Barov <dindin@dindin.ru>
#
# $FreeBSD$
#

PORTNAME=	exiv2
PORTVERSION=	0.2.2
CATEGORIES=	graphics python
MASTER_SITES=	http://launchpadlibrarian.net/49194059/ \
		http://www.dindin.ru/download/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}

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

LIB_DEPENDS=	exiv2.9:${PORTSDIR}/graphics/exiv2\
		boost_python.4:${PORTSDIR}/devel/boost-python-libs

USE_PYTHON=	yes
USE_GMAKE=	yes
USE_BZIP2=	yes
USE_SCONS=	yes
USE_LDCONFIG=	yes
SCONS_ENV+=	PREFIX=${PREFIX} CPPPATH=${PREFIX}/include LIBPATH=${PREFIX}/lib
SCONS_BUILDENV=	${SCONS_ENV} CXXFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
SCONS_ARGS+=	 prefix=${PREFIX} use_env=1

post-patch:
	${REINPLACE_CMD} -e 's|python_inc_path\]|python_inc_path,\
	"${PREFIX}/include"\]|' -e 's|LIBS=libs|LIBS=libs,\
	LIBPATH=\"${PREFIX}/lib\"|'\
	${WRKSRC}/src/SConscript

post-install:
	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
		${PYTHON_SITELIBDIR}/pyexiv2

.include <bsd.port.mk>