Index: head/graphics/hdr_tools/Makefile =================================================================== --- head/graphics/hdr_tools/Makefile (revision 395646) +++ head/graphics/hdr_tools/Makefile (revision 395647) @@ -1,52 +1,51 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= hdr_tools PORTVERSION= 0.0.2010.11.23 # unspecified by the author, so use the date 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:${PORTSDIR}/devel/popt \ libtiff.so:${PORTSDIR}/graphics/tiff \ libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick USES= compiler:features gmake 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 .if ${MACHINE_CPU:Msse2} CXXFLAGS+= -msse2 -mfpmath=sse .endif .if ${COMPILER_FEATURES:Mopenmp} CXXFLAGS+= -fopenmp .endif -# NB: `math/ldouble' port provides these functions, but does not export -# them correctly; as a result linking with C++ code is currently broken .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000034 -BROKEN= requires logl(), expl(), log2l() +LIB_DEPENDS+= libml.so:${PORTSDIR}/math/ldouble +LDFLAGS+= -lml .endif post-patch: @${REINPLACE_CMD} -e 's,RGBColorspace,s&,' ${WRKSRC}/image.cc do-install: ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} \ ${STAGEDIR}/${PREFIX}/bin .include Index: head/graphics/hdr_tools/files/patch-helpers.hh =================================================================== --- head/graphics/hdr_tools/files/patch-helpers.hh (nonexistent) +++ head/graphics/hdr_tools/files/patch-helpers.hh (revision 395647) @@ -0,0 +1,17 @@ +--- helpers.hh.orig 2010-11-23 21:22:51 UTC ++++ helpers.hh +@@ -35,6 +35,14 @@ + + #include + ++#if defined __FreeBSD__ ++#include ++#if __FreeBSD_version < 1000034 ++extern "C" { ++#include ++} ++#endif ++#endif + + + Property changes on: head/graphics/hdr_tools/files/patch-helpers.hh ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property