Index: head/math/octave-forge-image/Makefile =================================================================== --- head/math/octave-forge-image/Makefile (revision 423314) +++ head/math/octave-forge-image/Makefile (revision 423315) @@ -1,32 +1,37 @@ # Created by: Stephen Montgomery-Smith # $FreeBSD$ PORTNAME= octave-forge-image PORTVERSION= 2.4.1 CATEGORIES= math MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} +LICENSE= Many +LICENSE_NAME= Many different licenses +LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + # OCTSRC is the name of the directory of the package. # It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}. OCTSRC= ${DISTNAME} WRKSRC= ${WRKDIR}/${OCTSRC}/src USES= compiler:c++0x GNU_CONFIGURE= yes .include "${.CURDIR}/../../Mk/bsd.octave.mk" post-build: ${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/configure cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC} .include .if ${OSVERSION} < 1000000 BROKEN= Doesn't build on FreeBSD 9 or older .endif .include Index: head/math/octave-forge-image/files/patch-bwdist.cc =================================================================== --- head/math/octave-forge-image/files/patch-bwdist.cc (revision 423314) +++ head/math/octave-forge-image/files/patch-bwdist.cc (revision 423315) @@ -1,11 +1,11 @@ ---- bwdist.cc-orig 2014-03-03 03:07:22.000000000 +0000 -+++ bwdist.cc 2014-03-03 03:07:36.000000000 +0000 -@@ -530,7 +530,7 @@ +--- bwdist.cc.orig 2015-08-07 12:34:57 UTC ++++ bwdist.cc +@@ -538,7 +538,7 @@ Currently, only 2D images are supported. // Compute optional 'index to closest object pixel', only if requested if (nargout > 1) { - if (numel >= pow (2, 32)) + if (numel >= pow (2., 32)) retval(1) = calc_index (bw, xdist, ydist); else retval(1) = calc_index (bw, xdist, ydist);