pkgsrc/graphics/freeimage/hacks.mk
markd 505426bb1d freeimage: get building again.
In PluginJPEG.cpp avoid a name clash with jpeglib function.
Restore accidentally deleted part of patch-Source_FreeImage_PluginTIFF.cpp.
On Linux PluginTIFF.cpp extracts with carriage return/linefeeds whereas
NetBSD only has linefeeds so strip carriage returns so patch will apply on
both.
2021-07-11 04:08:06 +00:00

19 lines
440 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2021/07/11 04:08:06 markd Exp $
.if !defined(FREEIMAGE_HACKS_MK)
FREEIMAGE_HACKS_MK= defined
###
### For some reason on Linux PluginTIFF.cpp extracts with CR LF
### so strip CR before patch is applied.
###
.if ${OPSYS} == "Linux"
PKG_HACKS+= strip-cr
SUBST_CLASSES+= cr
SUBST_STAGE.cr= pre-patch
SUBST_FILES.cr= Source/FreeImage/PluginTIFF.cpp
SUBST_SED.cr= -e 's|\r||'
.endif
.endif # FREEIMAGE_HACKS_MK