Index: head/graphics/lensfun/Makefile =================================================================== --- head/graphics/lensfun/Makefile (revision 525546) +++ head/graphics/lensfun/Makefile (revision 525547) @@ -1,41 +1,42 @@ # Created by: Denis Barov # $FreeBSD$ PORTNAME= lensfun PORTVERSION= 0.3.95 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} MAINTAINER= danfe@FreeBSD.org COMMENT= Library for fixing lens geometry distortions LICENSE= GPLv3 LGPL3 CC-BY-SA-3.0 PD LICENSE_COMB= multi LICENSE_FILE_GPLv3= ${WRKSRC}/docs/gpl-3.0.txt LICENSE_FILE_LGPL3= ${WRKSRC}/docs/lgpl-3.0.txt LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/docs/cc-by-sa-3.0.txt LIB_DEPENDS= libpng.so:graphics/png USES= cmake compiler:c++11-lang gettext-runtime gnome pathfix \ pkgconfig shebangfix SHEBANG_FILES= apps/lensfun-add-adapter apps/lensfun-convert-lcp \ apps/lensfun-update-data USE_GNOME= glib20 USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_AUXFUN:BOOL=ON MAKE_ENV+= PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PLIST_SUB+= PYTHON_SUFFIX=${PYTHON_SUFFIX} OPTIONS_DEFINE= SIMD PYHELPERS OPTIONS_DEFAULT= SIMD PYHELPERS OPTIONS_SUB= yes PYHELPERS_DESC= Install database helper scripts (need Python 3) SIMD_CMAKE_OFF= -DBUILD_FOR_SSE:BOOL=OFF -DBUILD_FOR_SSE2:BOOL=OFF PYHELPERS_CMAKE_ON= -DSTAGEDIR:STRING=${STAGEDIR} -DPYTHON:STRING=${PYTHON_CMD} PYHELPERS_CMAKE_OFF= -DINSTALL_HELPER_SCRIPTS:BOOL=OFF -DPYTHON:STRING=IGNORE PYHELPERS_USES= python:3.4+ .include Index: head/graphics/lensfun/files/patch-libs_lensfun_lens.cpp =================================================================== --- head/graphics/lensfun/files/patch-libs_lensfun_lens.cpp (nonexistent) +++ head/graphics/lensfun/files/patch-libs_lensfun_lens.cpp (revision 525547) @@ -0,0 +1,11 @@ +--- libs/lensfun/lens.cpp.orig 2018-06-29 10:29:17 UTC ++++ libs/lensfun/lens.cpp +@@ -130,7 +130,7 @@ void lfLens::AddMount (const char *val) + { + if (val) + { +- char* p = (char*)malloc(strlen(val)); ++ char* p = (char*)malloc(strlen(val) + 1); + strcpy(p, val); + MountNames.push_back(p); + Property changes on: head/graphics/lensfun/files/patch-libs_lensfun_lens.cpp ___________________________________________________________________ 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 Index: head/graphics/lensfun/files/patch-libs_lensfun_mount.cpp =================================================================== --- head/graphics/lensfun/files/patch-libs_lensfun_mount.cpp (nonexistent) +++ head/graphics/lensfun/files/patch-libs_lensfun_mount.cpp (revision 525547) @@ -0,0 +1,11 @@ +--- libs/lensfun/mount.cpp.orig 2018-06-29 10:29:17 UTC ++++ libs/lensfun/mount.cpp +@@ -60,7 +60,7 @@ void lfMount::AddCompat (const char *val) + { + if (val) + { +- char* p = (char*)malloc(strlen(val)); ++ char* p = (char*)malloc(strlen(val) + 1); + strcpy(p, val); + MountCompat.push_back(p); + Property changes on: head/graphics/lensfun/files/patch-libs_lensfun_mount.cpp ___________________________________________________________________ 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