Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/darktable/Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> | # Created by: Alexey Dokuchaev <danfe@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= darktable | PORTNAME= darktable | ||||
PORTVERSION= 2.2.1 | PORTVERSION= 2.2.2 | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION:C/\.rc/rc/}/ | MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION:C/\.rc/rc/}/ | ||||
MAINTAINER= dumbbell@FreeBSD.org | MAINTAINER= dumbbell@FreeBSD.org | ||||
COMMENT= Virtual lighttable and darkroom for photographers | COMMENT= Virtual lighttable and darkroom for photographers | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
PRINT_LIB_DEPENDS= libcups.so:print/cups | PRINT_LIB_DEPENDS= libcups.so:print/cups | ||||
PRINT_CMAKE_OFF= -DBUILD_PRINT:BOOL=OFF | PRINT_CMAKE_OFF= -DBUILD_PRINT:BOOL=OFF | ||||
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp | WEBP_LIB_DEPENDS= libwebp.so:graphics/webp | ||||
WEBP_CMAKE_OFF= -DUSE_WEBP:BOOL=OFF | WEBP_CMAKE_OFF= -DUSE_WEBP:BOOL=OFF | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${ARCH} == amd64 && ${COMPILER_TYPE} == clang | .if ${ARCH} == amd64 && ${CHOSEN_COMPILER_TYPE} == clang | ||||
# Enable OpenMP support with Clang 3.7. | # Enable OpenMP support with Clang 3.9. | ||||
BUILD_DEPENDS+= clang37:devel/llvm37 | LLVM_VER= 39 | ||||
RUN_DEPENDS+= clang37:devel/llvm37 | BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} | ||||
CPP= clang-cpp37 | CPP= clang-cpp${LLVM_VER} | ||||
CC= clang37 | CC= clang${LLVM_VER} | ||||
CXX= clang++37 | CXX= clang++${LLVM_VER} | ||||
# FIXME: At least in 3.7.0 and 3.7.1, Clang doesn't find libomp.so | # FIXME: At least in 3.7.0 and 3.7.1, Clang doesn't find libomp.so | ||||
# itself. Furthermore, there may be a regression in 3.7.1 because we now | # itself. Furthermore, there may be a regression in 3.7.1 because we now | ||||
# need to explicitly link to libm.so as well. | # need to explicitly link to libm.so as well. This remains true with | ||||
OPENMP_FLAGS= -L${LOCALBASE}/llvm37/lib -lm -lomp | # Clang 3.9.1. | ||||
OPENMP_FLAGS= -L${LOCALBASE}/llvm${LLVM_VER}/lib -lm -lomp | |||||
LDFLAGS+= ${OPENMP_FLAGS} | LDFLAGS+= ${OPENMP_FLAGS} | ||||
# Depend on devel/openmp instead of the full LLVM at runtime. Required | |||||
# for a consistent libomp experience. | |||||
LIB_DEPENDS+= libomp.so.0:devel/openmp | |||||
# Last but not least, there is a second change or regression in CMake | # Last but not least, there is a second change or regression in CMake | ||||
# 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default | # 3.4.x: CMAKE_EXE_LINKER_FLAGS is not passed to TRY_COMPILE by default | ||||
# anymore. The CMP0056 policy must be explicitly set to NEW to ensure | # anymore. The CMP0056 policy must be explicitly set to NEW to ensure | ||||
# linker flags are passed. | # linker flags are passed. | ||||
# See: https://cmake.org/cmake/help/v3.4/policy/CMP0056.html | # See: https://cmake.org/cmake/help/v3.4/policy/CMP0056.html | ||||
CMAKE_ARGS+= -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW | CMAKE_ARGS+= -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW | ||||
.endif | .endif | ||||
.if defined(WITH_DEBUG) | .if defined(WITH_DEBUG) | ||||
CMAKE_BUILD_TYPE= RelWithDebInfo | CMAKE_BUILD_TYPE= RelWithDebInfo | ||||
STRIP= | STRIP= | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |