svn commit: r369699 - in head/math/ogdf: . files
Pietro Cerutti
gahr at FreeBSD.org
Wed Oct 1 08:16:16 UTC 2014
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
- at dirrm include/ogdf/upward
- at dirrm include/ogdf/tree
- at dirrm include/ogdf/simultaneous
- at dirrm include/ogdf/planarlayout
- at dirrm include/ogdf/planarity
- at dirrm include/ogdf/packing
- at dirrm include/ogdf/orthogonal
- at dirrm include/ogdf/module
- at dirrm include/ogdf/misclayout
- at dirrm include/ogdf/lpsolver
- at dirrm include/ogdf/layered
- at dirrm include/ogdf/labeling
- at dirrm include/ogdf/internal/steinertree
- at dirrm include/ogdf/internal/planarity
- at dirrm include/ogdf/internal/orthogonal
- at dirrm include/ogdf/internal/lpsolver
- at dirrm include/ogdf/internal/energybased
- at dirrm include/ogdf/internal/cluster
- at dirrm include/ogdf/internal/basic
- at dirrm include/ogdf/internal/augmentation
- at dirrm include/ogdf/internal
- at dirrm include/ogdf/graphalg
- at dirrm include/ogdf/fileformats
- at dirrm include/ogdf/external
- at dirrm include/ogdf/energybased/multilevelmixer
- at dirrm include/ogdf/energybased
- at dirrm include/ogdf/decomposition
- at dirrm include/ogdf/cluster
- at dirrm include/ogdf/basic
- at dirrm include/ogdf/augmentation
- at dirrm include/ogdf
More information about the svn-ports-all
mailing list