Skip to content

Commit

Permalink
math/SoPlex: Update 4.0.1 -> 5.0.2
Browse files Browse the repository at this point in the history
Also:
* Add MPFR option.
* Add 'test' target.
  • Loading branch information
yurivict committed Jul 31, 2021
1 parent 3b89164 commit 2f7a6ae
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 11 deletions.
1 change: 1 addition & 0 deletions math/SCIP/Makefile
Expand Up @@ -2,6 +2,7 @@

PORTNAME= SCIP
DISTVERSION= 7.0.2
PORTREVISION= 1
CATEGORIES= math science
MASTER_SITES= https://www.scipopt.org/download/release/
DISTNAME= ${PORTNAME:tl}-${DISTVERSION}
Expand Down
15 changes: 12 additions & 3 deletions math/SoPlex/Makefile
@@ -1,8 +1,7 @@
# Created by: Yuri Victorovich <yuri@FreeBSD.org>

PORTNAME= SoPlex
DISTVERSION= 4.0.1
PORTREVISION= 1
DISTVERSION= 5.0.2
CATEGORIES= math science
MASTER_SITES= http://soplex.zib.de/download/release/
DISTNAME= ${PORTNAME:tl}-${DISTVERSION}
Expand All @@ -15,10 +14,20 @@ LICENSE_NAME= ZIB ACADEMIC LICENSE
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= no-dist-mirror no-pkg-mirror no-auto-accept

LIB_DEPENDS= libgmp.so:math/gmp
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
libgmp.so:math/gmp

USES= cmake compiler:c++11-lang tar:tgz
USE_LDCONFIG= yes

TEST_TARGET= test

PLIST_SUB= SHL4=${DISTVERSION}.0 SHL2=${DISTVERSION:R}

OPTIONS_DEFINE= MPFR

MPFR_DESC= Use MPFR for multiple-precision floating-point numbers
MPFR_CMAKE_BOOL= MPFR
MPFR_LIB_DEPENDS= libmpfr.so:math/mpfr

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions math/SoPlex/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1548093583
SHA256 (soplex-4.0.1.tgz) = afba447ec9b6c7a1028467fe49ec4008f4052186da1be49e4822a2469304d4a7
SIZE (soplex-4.0.1.tgz) = 959243
TIMESTAMP = 1627695735
SHA256 (soplex-5.0.2.tgz) = eaaf3b1d0e8832b25e9f4c1e44bd935c869a487b26e86c2c41856f850b22f4dd
SIZE (soplex-5.0.2.tgz) = 984244
13 changes: 13 additions & 0 deletions math/SoPlex/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
- Allow shared libraries by removing CMAKE_CXX_VISIBILITY_PRESET=hidden.

--- CMakeLists.txt.orig 2021-07-31 19:54:04 UTC
+++ CMakeLists.txt
@@ -68,7 +68,7 @@ set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_CXX_STANDARD 11)

# set function visibility default to hidden
-set(CMAKE_CXX_VISIBILITY_PRESET hidden)
+#set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)

# create a target for updating the current git hash
10 changes: 6 additions & 4 deletions math/SoPlex/files/patch-src_CMakeLists.txt
@@ -1,15 +1,17 @@
--- src/CMakeLists.txt.orig 2018-07-03 09:33:09 UTC
- Change to shared libraries.

--- src/CMakeLists.txt.orig 2021-05-27 15:31:06 UTC
+++ src/CMakeLists.txt
@@ -158,7 +158,7 @@ set(headers
soplex/wallclocktimer.h)
@@ -119,7 +119,7 @@ file(GLOB headers
)

# create soplex library with pic
- add_library(libsoplex-pic STATIC ${sources})
+ add_library(libsoplex-pic SHARED ${sources})
set_target_properties(libsoplex-pic PROPERTIES
POSITION_INDEPENDENT_CODE on
VERSION ${SOPLEX_VERSION_MAJOR}.${SOPLEX_VERSION_MINOR}.${SOPLEX_VERSION_PATCH}.${SOPLEX_VERSION_SUB}
@@ -167,7 +167,7 @@ add_dependencies(libsoplex-pic soplex_up
@@ -128,7 +128,7 @@ add_dependencies(libsoplex-pic soplex_update_githash)
target_link_libraries(libsoplex-pic ${libs})

# create soplex library without pic
Expand Down
49 changes: 48 additions & 1 deletion math/SoPlex/pkg-plist
@@ -1,9 +1,13 @@
bin/soplex
include/soplex.h
include/soplex.hpp
include/soplex/args.hpp
include/soplex/array.h
include/soplex/basevectors.h
include/soplex/changesoplex.hpp
include/soplex/classarray.h
include/soplex/clufactor.h
include/soplex/clufactor.hpp
include/soplex/clufactor_rational.h
include/soplex/cring.h
include/soplex/dataarray.h
Expand All @@ -14,12 +18,13 @@ include/soplex/didxset.h
include/soplex/dsvector.h
include/soplex/dsvectorbase.h
include/soplex/dvector.h
include/soplex/dvectorbase.h
include/soplex/enter.hpp
include/soplex/exceptions.h
include/soplex/gzstream.h
include/soplex/idlist.h
include/soplex/idxset.h
include/soplex/islist.h
include/soplex/leave.hpp
include/soplex/lpcol.h
include/soplex/lpcolbase.h
include/soplex/lpcolset.h
Expand All @@ -37,62 +42,104 @@ include/soplex/ratrecon.h
include/soplex/slinsolver.h
include/soplex/slinsolver_rational.h
include/soplex/slufactor.h
include/soplex/slufactor.hpp
include/soplex/slufactor_rational.h
include/soplex/sol.h
include/soplex/solbase.h
include/soplex/solvedbds.hpp
include/soplex/solverational.hpp
include/soplex/solvereal.hpp
include/soplex/sorter.h
include/soplex/spxalloc.h
include/soplex/spxautopr.h
include/soplex/spxautopr.hpp
include/soplex/spxbasis.h
include/soplex/spxbasis.hpp
include/soplex/spxboundflippingrt.h
include/soplex/spxboundflippingrt.hpp
include/soplex/spxbounds.hpp
include/soplex/spxchangebasis.hpp
include/soplex/spxdantzigpr.h
include/soplex/spxdantzigpr.hpp
include/soplex/spxdefaultrt.h
include/soplex/spxdefaultrt.hpp
include/soplex/spxdefines.h
include/soplex/spxdefines.hpp
include/soplex/spxdesc.hpp
include/soplex/spxdevexpr.h
include/soplex/spxdevexpr.hpp
include/soplex/spxequilisc.h
include/soplex/spxequilisc.hpp
include/soplex/spxfastrt.h
include/soplex/spxfastrt.hpp
include/soplex/spxfileio.h
include/soplex/spxfileio.hpp
include/soplex/spxgeometsc.h
include/soplex/spxgeometsc.hpp
include/soplex/spxgithash.h
include/soplex/spxharrisrt.h
include/soplex/spxharrisrt.hpp
include/soplex/spxhybridpr.h
include/soplex/spxhybridpr.hpp
include/soplex/spxid.h
include/soplex/spxleastsqsc.h
include/soplex/spxleastsqsc.hpp
include/soplex/spxlp.h
include/soplex/spxlpbase.h
include/soplex/spxlpbase_real.hpp
include/soplex/spxmainsm.h
include/soplex/spxmainsm.hpp
include/soplex/spxout.h
include/soplex/spxparmultpr.h
include/soplex/spxparmultpr.hpp
include/soplex/spxpricer.h
include/soplex/spxquality.hpp
include/soplex/spxratiotester.h
include/soplex/spxscaler.h
include/soplex/spxscaler.hpp
include/soplex/spxshift.hpp
include/soplex/spxsimplifier.h
include/soplex/spxsolve.hpp
include/soplex/spxsolver.h
include/soplex/spxsolver.hpp
include/soplex/spxstarter.h
include/soplex/spxstarter.hpp
include/soplex/spxsteepexpr.h
include/soplex/spxsteeppr.h
include/soplex/spxsteeppr.hpp
include/soplex/spxsumst.h
include/soplex/spxsumst.hpp
include/soplex/spxvecs.hpp
include/soplex/spxvectorst.h
include/soplex/spxvectorst.hpp
include/soplex/spxweightpr.h
include/soplex/spxweightpr.hpp
include/soplex/spxweightst.h
include/soplex/spxweightst.hpp
include/soplex/spxwritestate.hpp
include/soplex/ssvector.h
include/soplex/ssvectorbase.h
include/soplex/stablesum.h
include/soplex/statistics.h
include/soplex/statistics.hpp
include/soplex/svector.h
include/soplex/svectorbase.h
include/soplex/svset.h
include/soplex/svsetbase.h
include/soplex/testsoplex.hpp
include/soplex/timer.h
include/soplex/timerfactory.h
include/soplex/unitvector.h
include/soplex/unitvectorbase.h
include/soplex/updatevector.h
include/soplex/updatevector.hpp
include/soplex/usertimer.h
include/soplex/validation.h
include/soplex/validation.hpp
include/soplex/vector.h
include/soplex/vectorbase.h
include/soplex/wallclocktimer.h
lib/cmake/soplex/soplex-config-version.cmake
lib/cmake/soplex/soplex-config.cmake
lib/cmake/soplex/soplex-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/soplex/soplex-targets.cmake
Expand Down

0 comments on commit 2f7a6ae

Please sign in to comment.