Changeset View
Changeset View
Standalone View
Standalone View
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.0.1 | PORTVERSION= 2.0.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 105 Lines • ▼ Show 20 Lines | |||||
# 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 explicitely set to NEW to ensure | # anymore. The CMP0056 policy must be explicitely 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 | ||||
# On at least FreeBSD 9.3-RELEASE, powl(3) is hidden behind the | |||||
# following define. So let's define it to fix the build. | |||||
CFLAGS+= -D_DECLARE_C99_LDBL_MATH | |||||
.if defined(WITH_DEBUG) | .if defined(WITH_DEBUG) | ||||
CMAKE_BUILD_TYPE= RelWithDebInfo | CMAKE_BUILD_TYPE= RelWithDebInfo | ||||
STRIP= | STRIP= | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${MV} ${WRKSRC}/data/darktableconfig.dtd ${WRKSRC}/data/darktableconfig.dtd.in | @${MV} ${WRKSRC}/data/darktableconfig.dtd ${WRKSRC}/data/darktableconfig.dtd.in | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |