Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Feb 2019 19:00:37 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492269 - in head/biology/dsr-pdb: . files
Message-ID:  <201902051900.x15J0bAO074616@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Feb  5 19:00:36 2019
New Revision: 492269
URL: https://svnweb.freebsd.org/changeset/ports/492269

Log:
  biology/dsr-pdb: Add c++11 flags because boost isn't found without it
  
  Also add patches for missing includes that only gcc complains about.
  
  PR:		235519
  Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>

Added:
  head/biology/dsr-pdb/files/patch-include_dsrpdb_Point.h   (contents, props changed)
  head/biology/dsr-pdb/files/patch-lib_Protein__pdb.cc   (contents, props changed)
Modified:
  head/biology/dsr-pdb/Makefile

Modified: head/biology/dsr-pdb/Makefile
==============================================================================
--- head/biology/dsr-pdb/Makefile	Tue Feb  5 18:57:26 2019	(r492268)
+++ head/biology/dsr-pdb/Makefile	Tue Feb  5 19:00:36 2019	(r492269)
@@ -2,6 +2,7 @@
 
 PORTNAME=	dsr-pdb
 DISTVERSION=	1.0.3
+DISTVERSIONSUFFIX=	1
 CATEGORIES=	biology
 MASTER_SITES=	https://graphics.stanford.edu/~drussel/
 DISTNAME=	${PORTNAME}
@@ -13,12 +14,14 @@ COMMENT=	Simple C++ PDB reader (reads the protein desc
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING.txt
 
-USES=		gmake libtool tar:tgz
+LIB_DEPENDS=	libboost_program_options.so:devel/boost-libs
+
+USES=		compiler:c++11-lang gmake libtool localbase:ldflags tar:tgz
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-CXXFLAGS+=	-fPIC
+CXXFLAGS+=	-fPIC --std=c++11 # libboost_program_options.so isn't found without --std=c++11
 
 post-patch:
 .for dir in lib tools test

Added: head/biology/dsr-pdb/files/patch-include_dsrpdb_Point.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/biology/dsr-pdb/files/patch-include_dsrpdb_Point.h	Tue Feb  5 19:00:36 2019	(r492269)
@@ -0,0 +1,10 @@
+--- include/dsrpdb/Point.h.orig	2019-02-05 18:18:53 UTC
++++ include/dsrpdb/Point.h
+@@ -22,6 +22,7 @@ MA 02111-1307, USA. */
+ #define DSR_PDB_POINT_H
+ #include <iostream>
+ #include <dsrpdb/config.h>
++#include <assert.h>
+ 
+ #ifdef PDB_USE_CGAL 
+ #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>

Added: head/biology/dsr-pdb/files/patch-lib_Protein__pdb.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/biology/dsr-pdb/files/patch-lib_Protein__pdb.cc	Tue Feb  5 19:00:36 2019	(r492269)
@@ -0,0 +1,10 @@
+--- lib/Protein_pdb.cc.orig	2019-02-05 18:17:52 UTC
++++ lib/Protein_pdb.cc
+@@ -23,6 +23,7 @@ MA 02111-1307, USA. */
+ #include "pdb_utils.h"
+ #include <dsrpdb_internal/Error_logger.h>
+ #include <sstream>
++#include <string.h>
+ 
+ namespace dsrpdb {
+ 



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