New port: cad/graywolf: Fork of TimberWolf, a placement tool in VLSI design

This commit is contained in:
Yuri Victorovich 2020-03-22 10:43:44 +00:00
parent 921cc69633
commit 27b38bba68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528911
7 changed files with 97 additions and 0 deletions

View File

@ -39,6 +39,7 @@
SUBDIR += gmsh
SUBDIR += gnucap
SUBDIR += gplcver
SUBDIR += graywolf
SUBDIR += gspiceui
SUBDIR += gtkwave
SUBDIR += impact

23
cad/graywolf/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= graywolf
DISTVERSION= 0.1.6-3
DISTVERSIONSUFFIX= -g6c5e24f
CATEGORIES= cad
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fork of TimberWolf, a placement tool in VLSI design
LICENSE= GPLv2
LIB_DEPENDS= libgsl.so:math/gsl
USES= cmake pkgconfig xorg
USE_GITHUB= yes
GH_ACCOUNT= rubund
USE_XORG= ice sm x11 xext
USE_LDCONFIG= yes
USE_GCC= any # lots of obviously incorrect C where clang fails, which gcc nevertheless magically finds a way to compile
.include <bsd.port.mk>

3
cad/graywolf/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1584870522
SHA256 (rubund-graywolf-0.1.6-3-g6c5e24f_GH0.tar.gz) = 79f8a15e8e6228bd3f5bdb5fccfdcc1b891327d6ced166eac180d523ee60662f
SIZE (rubund-graywolf-0.1.6-3-g6c5e24f_GH0.tar.gz) = 910961

View File

@ -0,0 +1,26 @@
--- src/Ylib/timer.c.orig 2018-08-23 20:02:57 UTC
+++ src/Ylib/timer.c
@@ -58,6 +58,23 @@ REVISIONS:
#include <sys/timeb.h>
#endif /* SYS5 */
+#include <sys/time.h>
+
+// from /usr/src/lib/libcompat/4.1/ftime.c
+int ftime(struct timeb *tbp) {
+ struct timezone tz;
+ struct timeval t;
+
+ if (gettimeofday(&t, &tz) < 0)
+ return (-1);
+ tbp->millitm = t.tv_usec / 1000;
+ tbp->time = t.tv_sec;
+ tbp->timezone = tz.tz_minuteswest;
+ tbp->dstflag = tz.tz_dsttime;
+
+ return (0);
+}
+
static INT base_timeS = 0 ; /* the time in seconds at the start */
static INT milli_timeS ; /* the millisecond part of the start */
/* initialize the timer */

View File

@ -0,0 +1,11 @@
--- src/genrows/draw.c.orig 2018-08-23 20:02:57 UTC
+++ src/genrows/draw.c
@@ -1209,7 +1209,7 @@ process_graphics()
shortRowG = FALSE ;
remakerows() ;
draw_the_data() ;
- if (last_chanceG) (VOID)last_chance() ;
+ if (last_chanceG) last_chance() ;
}

13
cad/graywolf/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
graywolf is a fork of TimberWolf 6.3.5
TimberWolf was developed at Yale University, and was distributed as open source
for a time until it was taken commercial. The last open-source version of
TimberWolf does not perform detail routing, but is a professional-grade
placement tool. In order to continue improving the open-source version, graywolf
has been forked off from version 6.3.5 of TimberWolf.
The main improvement in graywolf is that the build process is more streamlined
and that it behaves as a normal linux tool - you can call it from anywhere and
no environment variables must be set first.
WWW: https://github.com/rubund/graywolf

20
cad/graywolf/pkg-plist Normal file
View File

@ -0,0 +1,20 @@
bin/graywolf
lib/graywolf/bin/Mincut
lib/graywolf/bin/TimberWolfMC
lib/graywolf/bin/TimberWolfSC
lib/graywolf/bin/flow/flow.noroute/macro.fdbg
lib/graywolf/bin/flow/flow.noroute/macro.flow
lib/graywolf/bin/flow/flow.noroute/macro.fnog
lib/graywolf/bin/flow/flow.noroute/mixed.flow
lib/graywolf/bin/flow/flow.noroute/mixed.fnog
lib/graywolf/bin/flow/flow.noroute/standard.fdbg
lib/graywolf/bin/flow/flow.noroute/standard.flow
lib/graywolf/bin/flow/flow.noroute/standard.fnog
lib/graywolf/bin/genrows
lib/graywolf/bin/mc_compact
lib/graywolf/bin/show_flows
lib/graywolf/bin/splt_file.a
lib/graywolf/bin/syntax
lib/libycadgraywolf.so
lib/libycadgraywolf.so.1
lib/libycadgraywolf.so.1.0.0