Index: devel/rhtvision/Makefile =================================================================== --- devel/rhtvision/Makefile (revision 448232) +++ devel/rhtvision/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= rhtvision PORTVERSION= 2.2.1.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= devel MASTER_SITES= SF/tvision/UNIX/${PORTVERSION:R}%20CVS20100714%20Source%20and%20Debian%205.0 DISTNAME= ${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E} @@ -28,6 +28,9 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +# The port does not build with C++11 or later (bug 219275). +USE_CXXSTD= gnu++03 + PLIST_SUB= VERSION="${PORTVERSION:R}" NLS_USES= gettext Index: devel/rhtvision/files/patch-classes_tdesktop.cc =================================================================== --- devel/rhtvision/files/patch-classes_tdesktop.cc (nonexistent) +++ devel/rhtvision/files/patch-classes_tdesktop.cc (working copy) @@ -0,0 +1,23 @@ +--- classes/tdesktop.cc.orig 2017-08-18 14:40:03 UTC ++++ classes/tdesktop.cc +@@ -26,6 +26,11 @@ Modified cursor behavior while desktop locked by Salva + #define Uses_TVCodePage + #include + ++inline unsigned int absdiff(unsigned int a, unsigned int b) ++{ ++ return (a>=b)?a-b:b-a; ++} ++ + TDeskInit::TDeskInit( TBackground *(*cBackground)( TRect ) ) : + createBackground( cBackground ) + { +@@ -144,7 +149,7 @@ unsigned iSqr( unsigned i ) + { + unsigned res1 = 2; + unsigned res2 = i/res1; +- while( abs( res1 - res2 ) > 1 ) ++ while( absdiff(res1,res2) > 1 ) + { + res1 = (res1 + res2)/2; + res2 = i/res1; Property changes on: devel/rhtvision/files/patch-classes_tdesktop.cc ___________________________________________________________________ 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: devel/rhtvision/files/patch-classes_tdisplay.cc =================================================================== --- devel/rhtvision/files/patch-classes_tdisplay.cc (nonexistent) +++ devel/rhtvision/files/patch-classes_tdisplay.cc (working copy) @@ -0,0 +1,41 @@ +--- classes/tdisplay.cc.orig 2017-08-18 14:39:55 UTC ++++ classes/tdisplay.cc +@@ -22,6 +22,11 @@ same used in original Turbo Vision for compatibility p + #define Uses_TVCodePage + #include + ++inline unsigned int absdiff(unsigned int a, unsigned int b) ++{ ++ return (a>=b)?a-b:b-a; ++} ++ + // Remove me please! + int TDisplay::dual_display=0; + +@@ -381,10 +386,10 @@ Boolean TDisplay::searchClosestRes(TScreenResolution * + if (firstXMatch!=-1) + {// Return the closest y that match x + i=indexMin=firstXMatch; +- minDif=abs(res[i].y-y); ++ minDif=absdiff(res[i].y,y); + while (++i