freebsd-ports/graphics/art/Makefile
2022-07-23 18:43:05 -07:00

50 lines
1.4 KiB
Makefile

PORTNAME= art
DISTVERSION= 1.15
CATEGORIES= graphics
MASTER_SITES= https://bitbucket.org/agriggio/art/downloads/
PKGNAMESUFFIX= -raw-image-editor
DISTNAME= ${PORTNAME:tu}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Raw image processing program
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN_i386= ld: error: undefined symbol: __atomic_load
EXTRACT_DEPENDS= gtar:archivers/gtar # bsdtar(1) complains about hard links to itself
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS= libcanberra.so:audio/libcanberra \
libcanberra-gtk3.so:audio/libcanberra-gtk3 \
libexiv2.so:graphics/exiv2 \
libexpat.so:textproc/expat2 \
libfftw3f.so:math/fftw3-float \
libharfbuzz.so:print/harfbuzz \
liblensfun.so:graphics/lensfun \
liblcms2.so:graphics/lcms2 \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
USES= cmake compiler:c++11-lang desktop-file-utils gnome jpeg pkgconfig tar:xz xorg
USE_GNOME= atk atkmm cairo cairomm glibmm gtkmm30 librsvg2
USE_XORG= x11
EXTRACT_CMD= gtar
LDFLAGS+= -lpthread # otherwise build breaks on some systems: error: undefined symbol: pthread_create
.if exists(/usr/include/omp.h)
OPTIONS_DEFINE= OPENMP
#OPTIONS_DEFAULT= OPENMP
OPENMP_CMAKE_BOOL= OPTION_OMP
OPENMP_BROKEN= OpenMP causes asserts, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261360
.else
CMAKE_ARGS= -DOPTION_OMP:BOOL=OFF
.endif
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/share/doc/ART
.include <bsd.port.mk>