diff options
Diffstat (limited to 'graphics/freeimage/Makefile.common')
-rw-r--r-- | graphics/freeimage/Makefile.common | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/freeimage/Makefile.common b/graphics/freeimage/Makefile.common index 5b4776e0e18..fab0062be15 100644 --- a/graphics/freeimage/Makefile.common +++ b/graphics/freeimage/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.4 2022/12/13 13:31:11 jperkin Exp $ +# $NetBSD: Makefile.common,v 1.5 2022/12/13 13:34:48 jperkin Exp $ # used by graphics/freeimage/Makefile # used by graphics/freeimageplus/Makefile @@ -24,6 +24,16 @@ DISTINFO_FILE= ${.CURDIR}/../../graphics/freeimage/distinfo INSTALLATION_DIRS+= include lib share/doc/${PKGBASE} +# Systems that use unzip from pkgsrc end up with DOS line endings, so +# we need to ensure files can be patched. +SUBST_CLASSES+= cr +SUBST_STAGE.cr= post-extract +SUBST_FILES.cr+= Source/FreeImage/PluginBMP.cpp +SUBST_FILES.cr+= Source/FreeImage/PluginDDS.cpp +SUBST_FILES.cr+= Source/FreeImage/PluginTIFF.cpp +SUBST_FILTER_CMD.cr= ${TR} -d '\r' +SUBST_NOOP_OK.cr= yes + pre-configure: # G3 and JPEGTransform can't be built, # due to using private headers in bundled libs |