blob: 207403b647712a083f24f278278d64de79eed423 (
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
|
# Created by: Denis Barov <dindin@dindin.ru>
# $FreeBSD$
PORTNAME= lensfun
PORTVERSION= 0.3.2
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Library for fixing lens geometry distortions
LICENSE= LGPL3
LIB_DEPENDS= libpng.so:graphics/png
USES= cmake gettext-runtime pathfix pkgconfig
USE_GNOME= glib20
USE_LDCONFIG= yes
CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON
MAKE_ENV+= PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE=
PLIST_SUB+= PYTHON_SUFFIX=${PYTHON_SUFFIX}
OPTIONS_DEFINE= SIMD PYHELPERS
OPTIONS_DEFAULT= SIMD PYHELPERS
OPTIONS_SUB= yes
PYHELPERS_DESC= Install database helper scripts (need Python 3)
SIMD_CMAKE_OFF= -DBUILD_FOR_SSE:BOOL=OFF -DBUILD_FOR_SSE2:BOOL=OFF
PYHELPERS_CMAKE_ON= -DSTAGEDIR:STRING=${STAGEDIR} -DPYTHON:STRING=${PYTHON_CMD}
PYHELPERS_CMAKE_OFF= -DINSTALL_HELPER_SCRIPTS:BOOL=OFF -DPYTHON:STRING=IGNORE
PYHELPERS_USES= python:3.4+
post-patch:
# Fix the build against Clang 6.0.0
@${REINPLACE_CMD} -e '/%%/s,R_BX, & ,' ${WRKSRC}/libs/lensfun/cpuid.cpp
.include <bsd.port.mk>
|