54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2017/11/16 23:20:39 naddy Exp $
COMMENT = image processing and analysis library
ONLY_FOR_ARCHS = ${CXX11_ARCHS}
GH_ACCOUNT = ukoethe
GH_PROJECT = vigra
GH_TAGNAME = Version-1-11-1
DISTNAME = vigra-1.11.1
REVISION = 0
SHARED_LIBS = vigraimpex 0.0 # 5.1
CATEGORIES = graphics
HOMEPAGE = http://ukoethe.github.io/vigra/
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += Half Iex IlmImf IlmThread Imath boost_atomic-mt boost_chrono-mt
WANTLIB += boost_date_time-mt boost_system-mt boost_thread-mt
WANTLIB += fftw3 jpeg m png pthread tiff z ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
BUILD_DEPENDS = math/fftw3,float
LIB_DEPENDS = devel/boost \
graphics/jpeg \
graphics/openexr \
graphics/png \
graphics/tiff \
math/fftw3
CONFIGURE_ARGS = -DWITH_VIGRANUMPY=0 \
-DDOCINSTALL=share/doc/ \
-DWITH_BOOST_THREAD=1 \
-DWITH_OPENEXR=1 \
-DWITH_HDF5=0 \
-DCREATE_CTEST_TARGETS=ON \
-DAUTOEXEC_TESTS:BOOL=OFF
CXXFLAGS += -std=c++11 -pthread
# Actually, there are tests, but they do work only on GCC.
# If you want to play, just add -DAUTOBUILD_TESTS=ON to CONFIGURE_ARGS.
# Building tests does not affect packaging.
NO_TEST = Yes
.include <bsd.port.mk>