freebsd-ports/graphics/hdr_tools/Makefile
Tobias C. Berner 45526ecbee framework: Add new USES 'magick' for graphics/ImageMagick*
A new USES has been added to depend on ImageMagick.

	USES=magick

adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.

If a specific version is required, use for example

	USES=magick:6        resp.     USES=magick:7

If only a build, run or test is required, use for example

	USES=magick:build    resp.     USES=magick:6,build,test

If a dependency on the nox11 flavor is required, use for example

	USES=magick:nox11    resp.     USES=magick:7,nox11,run,test

See magick.mk for more details on the available flags.

The tree has been completely converted to make use of this.

Approved by:	bapt
Differential Revision: https://reviews.freebsd.org/D32754
2021-12-11 14:50:53 +01:00

45 lines
1.1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= hdr_tools
PORTVERSION= 0.0.2010.11.23 # unspecified by the author, so use the date
PORTREVISION= 18
CATEGORIES= graphics
MASTER_SITES= http://ttic.uchicago.edu/~cotter/projects/hdr_tools/archives/ \
http://freebsd.nsu.ru/distfiles/
DISTNAME= hdr_src
MAINTAINER= danfe@FreeBSD.org
COMMENT= Command-line tools for creating and manipulating HDR images
LICENSE= GPLv3
LIB_DEPENDS= libpopt.so:devel/popt \
libtiff.so:graphics/tiff \
libOpenEXR.so:graphics/openexr \
USES= compiler:c++11-lang gmake magick:6 pkgconfig tar:tgz
NO_WRKSUBDIR= yes
PROGRAMS= hdr_adjust hdr_convert hdr_create hdr_denoise hdr_fix_ca \
hdr_squish
PLIST_FILES= ${PROGRAMS:S,^,bin/,}
.include <bsd.port.pre.mk>
.if ${MACHINE_CPU:Msse2}
CXXFLAGS+= -msse2 -mfpmath=sse
.endif
.if ${COMPILER_FEATURES:Mopenmp}
CXXFLAGS+= -fopenmp
.endif
post-patch:
@${REINPLACE_CMD} -e 's,RGBColorspace,s&,' ${WRKSRC}/image.cc
do-install:
${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} \
${STAGEDIR}/${PREFIX}/bin
.include <bsd.port.post.mk>