svn commit: r568115 - in head/cad/openroad: . files
Yuri Victorovich
yuri at FreeBSD.org
Thu Mar 11 18:05:39 UTC 2021
Author: yuri
Date: Thu Mar 11 18:05:37 2021
New Revision: 568115
URL: https://svnweb.freebsd.org/changeset/ports/568115
Log:
cad/openroad: Update 0.9.0-beta-637 -> 2021.03.09
This is the first stable version of OpenROAD.
Added:
head/cad/openroad/files/patch-src_OpenDB_src_db_CMakeLists.txt (contents, props changed)
head/cad/openroad/files/patch-src_OpenDB_src_swig_tcl_CMakeLists.txt (contents, props changed)
Deleted:
head/cad/openroad/files/patch-src_OpenSTA_CMakeLists.txt
head/cad/openroad/pkg-plist
Modified:
head/cad/openroad/Makefile
head/cad/openroad/distinfo
head/cad/openroad/files/patch-src_CMakeLists.txt
head/cad/openroad/files/patch-src_OpenDB_CMakeLists.txt
head/cad/openroad/files/patch-src_flute3_etc_MakeDatVar.tcl
head/cad/openroad/files/patch-src_gui_src_scriptWidget.cpp
Modified: head/cad/openroad/Makefile
==============================================================================
--- head/cad/openroad/Makefile Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/Makefile Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,10 +1,8 @@
# $FreeBSD$
PORTNAME= openroad
-DISTVERSIONPREFIX= v
-DISTVERSION= 0.9.0-beta-637
-PORTREVISION= 1
-DISTVERSIONSUFFIX= -gc3706485
+DISTVERSION= 2021_03_09
+DISTVERSIONSUFFIX= _stable
CATEGORIES= cad
MAINTAINER= yuri at FreeBSD.org
@@ -19,34 +17,44 @@ BUILD_DEPENDS= base64:converters/base64 \
boost-libs>0:devel/boost-libs \
coin-or-lemon>0:math/lemon \
swig:devel/swig
-LIB_DEPENDS= libcudd.so:math/cudd
+LIB_DEPENDS= libcudd.so:math/cudd \
+ libfmt.so:devel/libfmt \
+ libspdlog.so:devel/spdlog
-USES= bison compiler:c++17-lang cmake eigen:3 qt:5 tcl:86 # the code asks for tcl-87, but build fails: https://github.com/The-OpenROAD-Project/OpenROAD/issues/508
+USES= bison compiler:c++17-lang cmake eigen:3 qt:5 localbase:ldflags tcl:86 # the code asks for tcl-87, but build fails: https://github.com/The-OpenROAD-Project/OpenROAD/issues/508
+USE_QT= core gui widgets buildtools_build qmake_build
+
USE_GITHUB= yes
GH_ACCOUNT= The-OpenROAD-Project
GH_PROJECT= OpenROAD
-USE_QT= core gui widgets buildtools_build qmake_build
-GH_TUPLE= \
- The-OpenROAD-Project:OpenSTA:ab2b1924e80f979bd6e606f8325a0d06b9d0bb5c:The_OpenROAD_Project_OpenSTA/src/OpenSTA \
- The-OpenROAD-Project:OpenDB:27d2a50961685b37a5a1b738a3cfd147ee7b9103:The_OpenROAD_Project_OpenDB/src/OpenDB \
- The-OpenROAD-Project:flute3:0c7d532bca351fae86de2d306dfcbe1060ecab01:The_OpenROAD_Project_flute3/src/flute3 \
- The-OpenROAD-Project:OpenRCX:cd6f1f3477851801df7ad199a37e0dacc1620bec:The_OpenROAD_Project_OpenRCX/src/OpenRCX \
- The-OpenROAD-Project:lef:fc84e83ef4cde0c4145655565641098d688a0fe1:The_OpenROAD_Project_lef/src/OpenDB/src/lef \
- The-OpenROAD-Project:def:c0fe2837a89f2a0947c2e8e10cef64e704214035:The_OpenROAD_Project_def/src/OpenDB/src/def
+GH_TUPLE= The-OpenROAD-Project:OpenSTA:181a9f2:The_OpenROAD_Project_OpenSTA/src/sta
+CMAKE_OFF= BUILD_PYTHON FREEBSD_BUILD_TESTS
+CMAKE_ON= BUILD_TCL
CMAKE_ARGS= -DFREEBSD_TCL_VER=${TCL_VER:S/.//} -DFREEBSD_TCL_INCLUDEDIR=${TCL_INCLUDEDIR}
CXXFLAGS+= -I${LOCALBASE}/include/eigen3
BINARY_ALIAS= tclsh=${TCLSH}
+PLIST_FILES= bin/openroad \
+ bin/sta
+
post-patch: # override the TCL version to be the same as USES=tcl sets
@${FIND} ${WRKSRC} -name FindTCL.cmake \
| ${XARGS} ${REINPLACE_CMD} -e ' \
s|set(TCL_POSSIBLE_NAMES |set(TCL_POSSIBLE_NAMES tcl$${FREEBSD_TCL_VER} |; \
s|PATHS $${TCL_LIB_PARENT1}|PATHS $${FREEBSD_TCL_INCLUDEDIR} $${TCL_LIB_PARENT1}|'
-post-configure: # perhaps -ltcl leaks from some other project's cmake file
- @${REINPLACE_CMD} 's| -ltcl | |' ${BUILD_WRKSRC}/build.ninja
+post-install: # unnecessarily installs bundled OpenSTA project: https://github.com/The-OpenROAD-Project/OpenROAD/issues/597
+ ${RM} -r ${STAGEDIR}${PREFIX}/include/sta ${STAGEDIR}${PREFIX}/lib/libOpenSTA.a
+
+do-test: # some tests are known to fail
+ @${MKDIR} ${WRKSRC}/build/src
+ @[ -e ${WRKSRC}/build/src/openroad ] || ${LN} -s ${SRAGEDIR}${PREFIX}/bin/openroad ${WRKSRC}/build/src/openroad
+ @${ECHO} "==> Unit tests"
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} test/regression
+ @${ECHO} "==> Flow tests"
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} test/regression flow
.include <bsd.port.mk>
Modified: head/cad/openroad/distinfo
==============================================================================
--- head/cad/openroad/distinfo Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/distinfo Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,15 +1,5 @@
-TIMESTAMP = 1600072448
-SHA256 (The-OpenROAD-Project-OpenROAD-v0.9.0-beta-637-gc3706485_GH0.tar.gz) = e15bf33a8c4bfc0e4baba50f8de9b98ee34337b14ed5831da125e85fa37d0a3d
-SIZE (The-OpenROAD-Project-OpenROAD-v0.9.0-beta-637-gc3706485_GH0.tar.gz) = 167070472
-SHA256 (The-OpenROAD-Project-OpenSTA-ab2b1924e80f979bd6e606f8325a0d06b9d0bb5c_GH0.tar.gz) = 687a81d91361765ea9433aa13a19e37c869b8595473fdda1e2dc7841620c905c
-SIZE (The-OpenROAD-Project-OpenSTA-ab2b1924e80f979bd6e606f8325a0d06b9d0bb5c_GH0.tar.gz) = 4874350
-SHA256 (The-OpenROAD-Project-OpenDB-27d2a50961685b37a5a1b738a3cfd147ee7b9103_GH0.tar.gz) = 8970be8cb4a91562945f178b9e6eefd4d88116d949bfe9726a499b7903c6bb72
-SIZE (The-OpenROAD-Project-OpenDB-27d2a50961685b37a5a1b738a3cfd147ee7b9103_GH0.tar.gz) = 685514
-SHA256 (The-OpenROAD-Project-flute3-0c7d532bca351fae86de2d306dfcbe1060ecab01_GH0.tar.gz) = eb0b9baa8c17d6e022718ecef0315791d155e6e7fb4f9635e9b746c1bc1714a6
-SIZE (The-OpenROAD-Project-flute3-0c7d532bca351fae86de2d306dfcbe1060ecab01_GH0.tar.gz) = 2282167
-SHA256 (The-OpenROAD-Project-OpenRCX-cd6f1f3477851801df7ad199a37e0dacc1620bec_GH0.tar.gz) = 985ea54d327ee4726d3a3163b0e0df94d948959ace039760a6a1776852586a89
-SIZE (The-OpenROAD-Project-OpenRCX-cd6f1f3477851801df7ad199a37e0dacc1620bec_GH0.tar.gz) = 269366
-SHA256 (The-OpenROAD-Project-lef-fc84e83ef4cde0c4145655565641098d688a0fe1_GH0.tar.gz) = 26de7711167125a498cb69686ae205ee1204ffe1207cc10d4a1edcd79fa3d97e
-SIZE (The-OpenROAD-Project-lef-fc84e83ef4cde0c4145655565641098d688a0fe1_GH0.tar.gz) = 1137547
-SHA256 (The-OpenROAD-Project-def-c0fe2837a89f2a0947c2e8e10cef64e704214035_GH0.tar.gz) = 211523a3fcf75708ab277474d26248a8479ba9bcb3e981157c6fb00911c54dc6
-SIZE (The-OpenROAD-Project-def-c0fe2837a89f2a0947c2e8e10cef64e704214035_GH0.tar.gz) = 3163621
+TIMESTAMP = 1615434359
+SHA256 (The-OpenROAD-Project-OpenROAD-2021_03_09_stable_GH0.tar.gz) = 0e872d1c607f7bc62d1516e93ae5f69d16d62771504be4a0d30e6016bc110233
+SIZE (The-OpenROAD-Project-OpenROAD-2021_03_09_stable_GH0.tar.gz) = 175470490
+SHA256 (The-OpenROAD-Project-OpenSTA-181a9f2_GH0.tar.gz) = da9764be47bd6e895a19fb48daeea1052e8aeee9778e940ccd2b55c6aaa9b7d6
+SIZE (The-OpenROAD-Project-OpenSTA-181a9f2_GH0.tar.gz) = 4895949
Modified: head/cad/openroad/files/patch-src_CMakeLists.txt
==============================================================================
--- head/cad/openroad/files/patch-src_CMakeLists.txt Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/files/patch-src_CMakeLists.txt Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,20 +1,11 @@
---- src/CMakeLists.txt.orig 2020-09-12 17:40:11 UTC
+--- src/CMakeLists.txt.orig 2021-03-09 18:14:44 UTC
+++ src/CMakeLists.txt
-@@ -14,7 +14,7 @@
- # along with this program. If not, see <https://www.gnu.org/licenses/>.
-
- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-- link_libraries(pthread m stdc++ stdc++fs)
-+ link_libraries(pthread m stdc++)
- endif()
-
- set(OPENSTA_HOME ${PROJECT_SOURCE_DIR}/src/OpenSTA)
-@@ -87,7 +87,7 @@ if (TCL_READLINE_H)
+@@ -57,7 +57,7 @@ if (TCL_READLINE_H)
message(STATUS "TCL readline header: ${TCL_READLINE_H}")
endif()
--find_package(SWIG REQUIRED 3.0)
+-find_package(SWIG 3.0 REQUIRED)
+find_package(SWIG REQUIRED)
include(UseSWIG)
- set(OPENDB_SWIG_WARNINGS "-w509,503,501,472,467,402,401,317,325,378,383,389,365,362,314,258,240,203,201")
+ find_package(Boost REQUIRED)
Modified: head/cad/openroad/files/patch-src_OpenDB_CMakeLists.txt
==============================================================================
--- head/cad/openroad/files/patch-src_OpenDB_CMakeLists.txt Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/files/patch-src_OpenDB_CMakeLists.txt Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,11 +1,13 @@
---- src/OpenDB/CMakeLists.txt.orig 2020-09-14 08:20:09 UTC
+--- src/OpenDB/CMakeLists.txt.orig 2021-03-11 04:01:41 UTC
+++ src/OpenDB/CMakeLists.txt
-@@ -38,7 +38,7 @@ add_subdirectory(tests/cpp)
+@@ -29,7 +29,9 @@ add_subdirectory(src/zutil)
+ add_subdirectory(src/zlib)
+ add_subdirectory(src/tm)
+ add_subdirectory(src/cdl)
+-add_subdirectory(test/cpp)
++if (FREEBSD_BUILD_TESTS)
++ add_subdirectory(test/cpp)
++endif()
+ ############################################################################
################################# SWIG #####################################
############################################################################
-
--find_package(SWIG REQUIRED 3.0)
-+find_package(SWIG REQUIRED)
-
- include(${SWIG_USE_FILE})
-
Added: head/cad/openroad/files/patch-src_OpenDB_src_db_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/cad/openroad/files/patch-src_OpenDB_src_db_CMakeLists.txt Thu Mar 11 18:05:37 2021 (r568115)
@@ -0,0 +1,9 @@
+--- src/OpenDB/src/db/CMakeLists.txt.orig 2021-03-11 04:05:57 UTC
++++ src/OpenDB/src/db/CMakeLists.txt
+@@ -138,5 +138,5 @@ target_link_libraries(opendb
+ zlib
+ zutil
+ utility
+- tcl
++ tcl${FREEBSD_TCL_VER}
+ )
Added: head/cad/openroad/files/patch-src_OpenDB_src_swig_tcl_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/cad/openroad/files/patch-src_OpenDB_src_swig_tcl_CMakeLists.txt Thu Mar 11 18:05:37 2021 (r568115)
@@ -0,0 +1,11 @@
+--- src/OpenDB/src/swig/tcl/CMakeLists.txt.orig 2021-03-11 17:45:34 UTC
++++ src/OpenDB/src/swig/tcl/CMakeLists.txt
+@@ -15,7 +15,7 @@ target_link_libraries(opendbtcl
+ PUBLIC
+ opendb
+ utility
+- tcl
++ tcl${FREEBSD_TCL_VER}
+ cdl
+ Boost::boost
+ )
Modified: head/cad/openroad/files/patch-src_flute3_etc_MakeDatVar.tcl
==============================================================================
--- head/cad/openroad/files/patch-src_flute3_etc_MakeDatVar.tcl Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/files/patch-src_flute3_etc_MakeDatVar.tcl Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,4 +1,4 @@
---- src/flute3/etc/MakeDatVar.tcl.orig 2020-09-14 08:48:52 UTC
+--- src/flute3/etc/MakeDatVar.tcl.orig 2021-03-11 03:51:07 UTC
+++ src/flute3/etc/MakeDatVar.tcl
@@ -32,7 +32,7 @@ close $var_stream
set b64_file "[file rootname $dat_file].b64"
Modified: head/cad/openroad/files/patch-src_gui_src_scriptWidget.cpp
==============================================================================
--- head/cad/openroad/files/patch-src_gui_src_scriptWidget.cpp Thu Mar 11 18:00:13 2021 (r568114)
+++ head/cad/openroad/files/patch-src_gui_src_scriptWidget.cpp Thu Mar 11 18:05:37 2021 (r568115)
@@ -1,11 +1,11 @@
---- src/gui/src/scriptWidget.cpp.orig 2020-09-14 08:51:25 UTC
+--- src/gui/src/scriptWidget.cpp.orig 2021-03-09 18:14:44 UTC
+++ src/gui/src/scriptWidget.cpp
-@@ -41,6 +41,8 @@
+@@ -42,6 +42,8 @@
#include <QTimer>
#include <QVBoxLayout>
+#include <sys/errno.h> // for EINVAL
+
#include "openroad/OpenRoad.hh"
-
- namespace gui {
+ #include "spdlog/formatter.h"
+ #include "spdlog/sinks/base_sink.h"
More information about the svn-ports-all
mailing list