diff --git a/math/octave-forge-octproj/Makefile b/math/octave-forge-octproj/Makefile index aec52b5f5d78..29bd722d88d0 100644 --- a/math/octave-forge-octproj/Makefile +++ b/math/octave-forge-octproj/Makefile @@ -1,35 +1,35 @@ # Created by: Stephen Montgomery-Smith PORTNAME= octave-forge-octproj PORTVERSION= 2.0.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} LICENSE= GPLv3 LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING LIB_DEPENDS+= libproj.so:graphics/proj # 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:gcc-c++11-lib CPPFLAGS+= -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 .include "${.CURDIR}/../../Mk/bsd.octave.mk" post-patch: ${REINPLACE_CMD} -e s/CC/MKOCTFILE/ -e s/-Wall// -e s/-Wextra// ${WRKSRC}/Makefile post-build: ${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC} .include diff --git a/math/octave-forge-octproj/files/patch-projwrap.h b/math/octave-forge-octproj/files/patch-projwrap.h new file mode 100644 index 000000000000..c56dc1f24c25 --- /dev/null +++ b/math/octave-forge-octproj/files/patch-projwrap.h @@ -0,0 +1,10 @@ +--- projwrap.h.orig 2020-05-07 16:41:54 UTC ++++ projwrap.h +@@ -24,6 +24,7 @@ or http://www.gnu.org + #include + #include + #include ++#undef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H + #include + /******************************************************************************/ + /******************************************************************************/