svn commit: r406274 - head/graphics/gdal

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Jan 16 20:49:43 UTC 2016


Author: sunpoet
Date: Sat Jan 16 20:49:42 2016
New Revision: 406274
URL: https://svnweb.freebsd.org/changeset/ports/406274

Log:
  - Add -flax-vector-conversions to CFLAGS only on FreeBSD 9

Modified:
  head/graphics/gdal/Makefile

Modified: head/graphics/gdal/Makefile
==============================================================================
--- head/graphics/gdal/Makefile	Sat Jan 16 20:14:27 2016	(r406273)
+++ head/graphics/gdal/Makefile	Sat Jan 16 20:49:42 2016	(r406274)
@@ -30,7 +30,7 @@ OPTIONS_RADIO_PDF=	PODOFO POPPLER
 PCRE_DESC=	Regular expression support for SQLite
 SPATIALITE_DESC=SpatiaLite support
 
-CFLAGS+=	-fPIC -flax-vector-conversions
+CFLAGS+=	-fPIC
 CONFIGURE_ARGS=	--datadir=${DATADIR} \
 		--enable-static=yes \
 		--with-geotiff=${LOCALBASE} \
@@ -151,4 +151,10 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/GDALmake.opt ${STAGEDIR}${DATADIR}/
 	-${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/libgdal.so.${PORTVERSION}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+CFLAGS+=	-flax-vector-conversions
+.endif
+
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list