Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2014 08:16:14 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369699 - in head/math/ogdf: . files
Message-ID:  <201410010816.s918GEuB040482@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Wed Oct  1 08:16:14 2014
New Revision: 369699
URL: https://svnweb.freebsd.org/changeset/ports/369699
QAT: https://qat.redports.org/buildarchive/r369699/

Log:
  - Fix with Coin and Abacus
  - Modernize framework (USE_PYTHON, @dirrm)

Added:
  head/math/ogdf/files/patch-makeMakefile.py   (contents, props changed)
  head/math/ogdf/files/patch-ogdf-internal-cluster_basics.h   (contents, props changed)
Modified:
  head/math/ogdf/Makefile
  head/math/ogdf/files/patch-makeMakefile.config
  head/math/ogdf/pkg-plist

Modified: head/math/ogdf/Makefile
==============================================================================
--- head/math/ogdf/Makefile	Wed Oct  1 07:45:42 2014	(r369698)
+++ head/math/ogdf/Makefile	Wed Oct  1 08:16:14 2014	(r369699)
@@ -13,9 +13,8 @@ COMMENT=	C++ class library for the autom
 
 LICENSE=	GPLv2
 
-USES=		zip
+USES=		zip python:build
 USE_LDCONFIG=	yes
-USE_PYTHON_BUILD=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME:tu}
 

Modified: head/math/ogdf/files/patch-makeMakefile.config
==============================================================================
--- head/math/ogdf/files/patch-makeMakefile.config	Wed Oct  1 07:45:42 2014	(r369698)
+++ head/math/ogdf/files/patch-makeMakefile.config	Wed Oct  1 08:16:14 2014	(r369699)
@@ -24,7 +24,7 @@
  
  #* blank means don't call ranlib
  ranlibCommand = ranlib
-@@ -43,16 +43,16 @@
+@@ -43,16 +43,17 @@
  [COIN]
  #**********************************************************
  #* set to "true" to use COIN
@@ -42,6 +42,7 @@
 -# solver_incl = 
 +solver_name =  COIN_OSI_CLP
 +solver_incl =  %%LOCALBASE%%/include
++solver_lib  =  %%LOCALBASE%%/lib/libClp.so
  #* Coin's Symphony
  # solver_name =  COIN_OSI_SYM
  # solver_incl = /home/plug/COIN/SYMPHONY/include
@@ -56,4 +57,4 @@
 +useAbacus = %%USE_ABACUS%%
 +abacusDef = -DABACUS_COMPILER_GCC
 +abacusIncl = %%LOCALBASE%%/inclue/abacus
-+abacusLib = -L%%LOCALBASE%%/lib -labacus-osi
++abacusLib = %%LOCALBASE%%/lib/libabacus-osi.so

Added: head/math/ogdf/files/patch-makeMakefile.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/ogdf/files/patch-makeMakefile.py	Wed Oct  1 08:16:14 2014	(r369699)
@@ -0,0 +1,34 @@
+--- makeMakefile.py.orig	2012-07-18 09:17:42.000000000 +0200
++++ makeMakefile.py	2014-02-07 17:28:44.000000000 +0100
+@@ -82,7 +82,7 @@
+ libs = ''
+ 
+ if sharedLib:
+-	compiler = ' '.join( [compiler, '-DOGDF_DLL -DOGDF_INSTALL' ] )
++	compiler = ' '.join( [compiler, '-DOGDF_INSTALL' ] )
+ 	if sys.platform == 'win32' or sys.platform == 'cygwin':
+ 		libs = ' '.join( [libs, '-lpsapi'] )
+ 	else:
+@@ -97,17 +97,20 @@
+ 	# coinLib = loadConfig('COIN', 'coinLib')
+ 	solver_name = loadConfig('COIN', 'solver_name')
+ 	solver_incl = loadConfig('COIN', 'solver_incl')
+-	# solver_lib = loadConfig('COIN', 'solver_lib')
++	solver_lib = loadConfig('COIN', 'solver_lib')
+ 	si2 = ' '
+ 	if solver_incl.strip() != '':
+ 	  si2 = '-I'+solver_incl
++	if solver_lib.strip() != '':
++	  libs = ' '.join( [libs, solver_lib] )
+ 	compiler = ' '.join( [ compiler, '-I'+coinIncl, si2, '-D'+solver_name, '-DUSE_COIN', ' ' ] )
+ 	
+ useAbacus = loadConfig('ABACUS', 'useAbacus').startswith('t')
+ if useAbacus:
+ 	abacusDef = loadConfig('ABACUS', 'abacusDef')
+ 	abacusIncl = loadConfig('ABACUS', 'abacusIncl')
+-	# abacusLib = loadConfig('ABACUS', 'abacusLib')
++	abacusLib = loadConfig('ABACUS', 'abacusLib')
++	libs = ' '.join( [libs, abacusLib] )
+ 	compiler = ' '.join( [ compiler, abacusDef, '-I'+abacusIncl, '-DUSE_ABACUS', ' ' ] )
+ 	
+ versions = []

Added: head/math/ogdf/files/patch-ogdf-internal-cluster_basics.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/ogdf/files/patch-ogdf-internal-cluster_basics.h	Wed Oct  1 08:16:14 2014	(r369699)
@@ -0,0 +1,10 @@
+--- ogdf/internal/cluster/basics.h.orig	2014-10-01 10:12:06.000000000 +0200
++++ ogdf/internal/cluster/basics.h	2014-10-01 10:12:37.000000000 +0200
+@@ -47,6 +47,7 @@
+ #define OGDF_CPLANAR_BASICS_H
+ 
+ #include <abacus/master.h>
++#include <abacus/constraint.h>
+ #include <ogdf/basic/Graph_d.h>
+ #include <ogdf/cluster/ClusterGraph.h>
+ #include <ogdf/cluster/ClusterGraphAttributes.h>

Modified: head/math/ogdf/pkg-plist
==============================================================================
--- head/math/ogdf/pkg-plist	Wed Oct  1 07:45:42 2014	(r369698)
+++ head/math/ogdf/pkg-plist	Wed Oct  1 08:16:14 2014	(r369699)
@@ -357,34 +357,3 @@ include/ogdf/upward/UpwardPlanarModule.h
 include/ogdf/upward/UpwardPlanarSubgraphSimple.h
 include/ogdf/upward/UpwardPlanarizationLayout.h
 include/ogdf/upward/VisibilityLayout.h
-@dirrm include/ogdf/upward
-@dirrm include/ogdf/tree
-@dirrm include/ogdf/simultaneous
-@dirrm include/ogdf/planarlayout
-@dirrm include/ogdf/planarity
-@dirrm include/ogdf/packing
-@dirrm include/ogdf/orthogonal
-@dirrm include/ogdf/module
-@dirrm include/ogdf/misclayout
-@dirrm include/ogdf/lpsolver
-@dirrm include/ogdf/layered
-@dirrm include/ogdf/labeling
-@dirrm include/ogdf/internal/steinertree
-@dirrm include/ogdf/internal/planarity
-@dirrm include/ogdf/internal/orthogonal
-@dirrm include/ogdf/internal/lpsolver
-@dirrm include/ogdf/internal/energybased
-@dirrm include/ogdf/internal/cluster
-@dirrm include/ogdf/internal/basic
-@dirrm include/ogdf/internal/augmentation
-@dirrm include/ogdf/internal
-@dirrm include/ogdf/graphalg
-@dirrm include/ogdf/fileformats
-@dirrm include/ogdf/external
-@dirrm include/ogdf/energybased/multilevelmixer
-@dirrm include/ogdf/energybased
-@dirrm include/ogdf/decomposition
-@dirrm include/ogdf/cluster
-@dirrm include/ogdf/basic
-@dirrm include/ogdf/augmentation
-@dirrm include/ogdf



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