Bigger hammer to kill UTF-8 BOM (fails to build with base gcc)

This commit is contained in:
jca 2017-12-14 05:57:44 +00:00
parent 776f9df38b
commit 9a7f4dc1ec
5 changed files with 7 additions and 45 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2017/11/04 10:11:30 landry Exp $
# $OpenBSD: Makefile,v 1.25 2017/12/14 05:57:44 jca Exp $
BROKEN-hppa = undefined reference to 'std::auto_ptr<geos::geom::Envelope>::~auto_ptr()'
COMMENT= 2d geometry and topology engine
@ -23,4 +23,10 @@ USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-pic
# Strip UTF-8 BOM, base gcc fails with:
# CGAlgorithms.cpp:1: error: stray '\357' in program
post-extract:
find ${WRKSRC} -type f '(' -name '*.c*' -o -name '*.h' ')' \
-exec perl -pi -e 's/^\xef\xbb\xbf//;' {} +
.include <bsd.port.mk>

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-include_geos_geom_Lineal_h,v 1.1 2017/11/20 09:09:47 landry Exp $
Index: include/geos/geom/Lineal.h
--- include/geos/geom/Lineal.h.orig
+++ include/geos/geom/Lineal.h
@@ -1,4 +1,4 @@
-/**********************************************************************
+/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-include_geos_geom_Polygonal_h,v 1.1 2017/11/20 09:09:47 landry Exp $
Index: include/geos/geom/Polygonal.h
--- include/geos/geom/Polygonal.h.orig
+++ include/geos/geom/Polygonal.h
@@ -1,4 +1,4 @@
-/**********************************************************************
+/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-include_geos_geom_Puntal_h,v 1.1 2017/11/20 09:09:47 landry Exp $
Index: include/geos/geom/Puntal.h
--- include/geos/geom/Puntal.h.orig
+++ include/geos/geom/Puntal.h
@@ -1,4 +1,4 @@
-/**********************************************************************
+/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-include_geos_util_GEOSException_h,v 1.1 2017/11/20 09:09:47 landry Exp $
Index: include/geos/util/GEOSException.h
--- include/geos/util/GEOSException.h.orig
+++ include/geos/util/GEOSException.h
@@ -1,4 +1,4 @@
-/**********************************************************************
+/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org