1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/graphics/py-exiv2/Makefile
Tobias C. Berner c1ff5bbef3 Update graphics/exiv2 to 0.25.
As there is an shlib version bump, bump them portrevision of dependent ports.

While doing so, also switch to the cmake build system, as it requires less
patching and is easier to handle.

PR:             211329
Reviewed by:    mat, rakuco, kwm
Approved by:    rakuco (mentor)
Differential Revision:  https://reviews.freebsd.org/D7283
2016-07-27 10:22:26 +00:00

36 lines
925 B
Makefile

# Created by: Denis Barov <dindin@dindin.ru>
# $FreeBSD$
PORTNAME= exiv2
PORTVERSION= 0.3.2
PORTREVISION= 4
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\
libboost_python.so:devel/boost-python-libs
USES= python:2 scons tar:bzip2
USE_LDCONFIG= yes
CXXFLAGS+= -I${LOCALBASE}/include
MAKE_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:
cd ${STAGEDIR}/${PYTHON_SITELIBDIR}/pyexiv2; ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py .
regression-test: build
@cd ${WRKSRC} && ${MAKE_CMD} test
.include <bsd.port.mk>