diff --git a/math/zimpl/Makefile b/math/zimpl/Makefile index 000212b69935..7c58ccd87854 100644 --- a/math/zimpl/Makefile +++ b/math/zimpl/Makefile @@ -1,25 +1,28 @@ PORTNAME= zimpl -DISTVERSION= 3.3.6 -PORTREVISION= 1 +DISTVERSION= 3.6.2 CATEGORIES= math -MASTER_SITES= https://zimpl.zib.de/download/ MAINTAINER= yuri@FreeBSD.org COMMENT= Language to translate the LP models into .lp or .mps -WWW= https://zimpl.zib.de +WWW= https://zimpl.zib.de \ + https://github.com/scipopt/zimpl LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= missing make/make.linux.$${arch}.gnu.opt for other architectures BUILD_DEPENDS= bison:devel/bison LIB_DEPENDS= libgmp.so:math/gmp USES= cmake tar:tgz USE_LDCONFIG= yes +USE_GITHUB= yes +GH_ACCOUNT= scipopt +GH_TAGNAME= v${DISTVERSION:S/.//g} + CMAKE_ON= BUILD_SHARED_LIBS .include diff --git a/math/zimpl/distinfo b/math/zimpl/distinfo index 53e0da227d2f..d332293e6908 100644 --- a/math/zimpl/distinfo +++ b/math/zimpl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1541970033 -SHA256 (zimpl-3.3.6.tgz) = 1f3f0bc2b9710a87b04985d9f14cc1bc207add8b2e16a8b373cb540b8fbe1326 -SIZE (zimpl-3.3.6.tgz) = 746262 +TIMESTAMP = 1731123417 +SHA256 (scipopt-zimpl-3.6.2-v362_GH0.tar.gz) = d99bdfa227d8871560b92dd90026280b185ce8f28b0d3fe295b871f0eca8d4f1 +SIZE (scipopt-zimpl-3.6.2-v362_GH0.tar.gz) = 5257233 diff --git a/math/zimpl/files/patch-CMakeLists.txt b/math/zimpl/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..9f0f37dc693d --- /dev/null +++ b/math/zimpl/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +- https://github.com/scipopt/zimpl/issues/1 + +--- CMakeLists.txt.orig 2024-11-09 04:34:10 UTC ++++ CMakeLists.txt +@@ -47,8 +47,6 @@ set(CMAKE_C_STANDARD 99) + + # use C99 standard + set(CMAKE_C_STANDARD 99) +-set(CMAKE_C_VISIBILITY_PRESET hidden) +-set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + + option(ZLIB "use ZLIB" ON) + option(SANITIZE_ADDRESS "should the address sanitizer be enabled in debug mode if available" OFF) diff --git a/math/zimpl/files/patch-src_CMakeLists.txt b/math/zimpl/files/patch-src_CMakeLists.txt index 5358f70035f7..7e631bb81820 100644 --- a/math/zimpl/files/patch-src_CMakeLists.txt +++ b/math/zimpl/files/patch-src_CMakeLists.txt @@ -1,19 +1,19 @@ - Allow to build shared libs. ---- src/CMakeLists.txt.orig 2021-08-01 07:59:48 UTC +--- src/CMakeLists.txt.orig 2024-09-13 05:08:28 UTC +++ src/CMakeLists.txt -@@ -116,12 +116,12 @@ if(MSVC) +@@ -118,12 +118,12 @@ endif() endif() #create zimpl with pic -add_library(libzimpl-pic STATIC ${libsources}) +add_library(libzimpl-pic ${libsources}) set_target_properties(libzimpl-pic PROPERTIES POSITION_INDEPENDENT_CODE on) target_link_libraries(libzimpl-pic ${libs}) #create zimpl without pic -add_library(libzimpl STATIC ${libsources}) +add_library(libzimpl ${libsources}) target_link_libraries(libzimpl ${libs}) #create zimpl binary diff --git a/math/zimpl/pkg-plist b/math/zimpl/pkg-plist index 080e1057e759..587102fc2510 100644 --- a/math/zimpl/pkg-plist +++ b/math/zimpl/pkg-plist @@ -1,44 +1,46 @@ bin/zimpl +include/zimpl/attribute.h include/zimpl/blkmem.h include/zimpl/bound.h include/zimpl/code.h include/zimpl/conname.h include/zimpl/define.h include/zimpl/elem.h include/zimpl/entry.h include/zimpl/gmpmisc.h include/zimpl/hash.h include/zimpl/heap.h include/zimpl/idxset.h include/zimpl/inst.h include/zimpl/lint.h include/zimpl/list.h include/zimpl/local.h include/zimpl/metaio.h include/zimpl/mme.h include/zimpl/mmlparse2.h include/zimpl/mono.h include/zimpl/mshell.h include/zimpl/numb.h include/zimpl/prog.h include/zimpl/random.h include/zimpl/ratlp.h include/zimpl/ratlpstore.h include/zimpl/ratlptypes.h include/zimpl/rdefpar.h include/zimpl/set.h include/zimpl/set4.h include/zimpl/stkchk.h include/zimpl/stmt.h include/zimpl/strstore.h include/zimpl/symbol.h include/zimpl/term.h include/zimpl/tuple.h include/zimpl/xlpglue.h include/zimpl/zimpllib.h include/zimpl/zlpglue.h +lib/cmake/zimpl/zimpl-config-version.cmake lib/cmake/zimpl/zimpl-config.cmake lib/cmake/zimpl/zimpl-targets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/zimpl/zimpl-targets.cmake lib/libzimpl-pic.so lib/libzimpl.so