# Created by: Denis Barov # $FreeBSD$ PORTNAME= exiv2 PORTVERSION= 0.3.2 PORTREVISION= 14 CATEGORIES= graphics python MASTER_SITES= https://launchpadlibrarian.net/83595798/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-${PORTVERSION} MAINTAINER= multimedia@FreeBSD.org COMMENT= Python bindings for exiv2 LIB_DEPENDS= libexiv2.so:graphics/exiv2\ ${PY_BOOST} USES= python:2.7 scons tar:bzip2 USE_PYTHON= flavors USE_LDCONFIG= yes CXXFLAGS+= -I${LOCALBASE}/include MAKE_ARGS+= prefix=${PREFIX} use_env=1 BOOSTLIB="${PY_BOOST_LIB}" 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: cd ${STAGEDIR}/${PYTHON_SITELIBDIR}/pyexiv2; ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py . regression-test: build @cd ${WRKSRC} && ${MAKE_CMD} test .include