Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2013 17:41:27 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328975 - in head/science/libkml: . files
Message-ID:  <201310011741.r91HfRbD098574@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Tue Oct  1 17:41:26 2013
New Revision: 328975
URL: http://svnweb.freebsd.org/changeset/ports/328975

Log:
  science/libkml: add <unistd.h> for modern compilers
  
  Also, this port unfortunately sets -Werror, and the use of long-long
  with c++98 triggers a warning, so also turn off that check.
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/science/libkml/files/
  head/science/libkml/files/patch-src_kml_base_file__posix.cc   (contents, props changed)
Modified:
  head/science/libkml/Makefile

Modified: head/science/libkml/Makefile
==============================================================================
--- head/science/libkml/Makefile	Tue Oct  1 17:39:23 2013	(r328974)
+++ head/science/libkml/Makefile	Tue Oct  1 17:41:26 2013	(r328975)
@@ -16,7 +16,7 @@ GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 
-CFLAGS+=	-I${LOCALBASE}/include
+CFLAGS+=	-I${LOCALBASE}/include -Wno-long-long
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 NO_STAGE=	yes

Added: head/science/libkml/files/patch-src_kml_base_file__posix.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/libkml/files/patch-src_kml_base_file__posix.cc	Tue Oct  1 17:41:26 2013	(r328975)
@@ -0,0 +1,10 @@
+--- src/kml/base/file_posix.cc.orig	2010-01-14 00:16:30.000000000 +0000
++++ src/kml/base/file_posix.cc
+@@ -29,6 +29,7 @@
+ #include "kml/base/file.h"
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310011741.r91HfRbD098574>