openbsd-ports/graphics/darktable/Makefile
sthen c6394ec5c7 update to Darktable 2.4.0 - for release notes, see
https://www.darktable.org/2017/12/darktable-240-released/

"when updating from the currently stable 2.2.x series, please bear in
mind that your edits will be preserved during this process, but it will
not be possible to downgrade from 2.4 to 2.2.x any more."
2017-12-27 15:20:42 +00:00

86 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.79 2017/12/27 15:20:42 sthen Exp $
ONLY_FOR_ARCHS= i386 amd64
COMMENT= virtual lighttable and darkroom for photographers
V= 2.4.0
DISTNAME= darktable-$V
PORTROACH= limitw:1,even
EXTRACT_SUFX= .tar.xz
CATEGORIES= graphics x11
HOMEPAGE= http://www.darktable.org/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += ${COMPILER_LIBCXX} ${MODLUA_WANTLIB}
WANTLIB += GraphicsMagick Iex IlmImf X11 Xrandr c cairo colord
WANTLIB += colord-gtk colordprivate cups curl exiv2 flickcurl
WANTLIB += gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gphoto2 gphoto2_port gtk-3 intl jpeg json-glib-1.0
WANTLIB += lcms2 lensfun m openjp2 osmgpsmap-1.0 pango-1.0 pangocairo-1.0
WANTLIB += png pugixml rsvg-2 secret-1 soup-2.4 sqlite3 tiff webp
WANTLIB += xml2 z
MASTER_SITES= https://github.com/darktable-org/darktable/releases/download/release-$V/
MODULES= devel/cmake \
lang/lua \
textproc/intltool
MODLUA_VERSION= 5.3
# TLS, modern C++
COMPILER = base-clang ports-gcc
BUILD_DEPENDS= sysutils/coreutils
RUN_DEPENDS= devel/desktop-file-utils \
x11/gtk+3,-guic
LIB_DEPENDS= devel/gettext \
devel/json-glib \
devel/libsoup \
geo/osm-gps-map \
graphics/GraphicsMagick \
graphics/colord-gtk \
graphics/exiv2>=0.22 \
graphics/lcms2 \
graphics/libgphoto2>=2.5.0 \
graphics/lensfun \
graphics/openexr \
graphics/openjp2 \
net/curl \
net/flickcurl \
textproc/pugixml \
x11/gnome/librsvg \
x11/gnome/libsecret \
x11/gtk+3
SEPARATE_BUILD= Yes
CONFIGURE_ARGS= -DBINARY_PACKAGE_BUILD=1 \
-DCUSTOM_CFLAGS=1 \
-DTESTBUILD_OPENCL_PROGRAMS=OFF
# OpenCL picks up LLVM at build time.
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_TEST= Yes
.include <bsd.port.arch.mk>
.if ${ARCH:Mi386}
# needs 64-bit atomic ops, and all the registers it can get.
CFLAGS += -march=i686 -fomit-frame-pointer
.endif
# ...and there's a hard requirement of SSE3
CFLAGS+= -msse3
CXXFLAGS= ${CFLAGS}
post-install:
cd ${PREFIX}/lib && ln -s darktable/libdarktable.so
.include <bsd.port.mk>