update to qrouter-1.4.76, from maintainer Alessandro De Laurenzis, tested

on powerpc by and ok cwen@
This commit is contained in:
sthen 2020-02-15 17:24:51 +00:00
parent 894d97f328
commit 304dc31f77
5 changed files with 6 additions and 65 deletions

View File

@ -1,8 +1,7 @@
# $OpenBSD: Makefile,v 1.6 2020/02/08 10:26:32 cwen Exp $
# $OpenBSD: Makefile,v 1.7 2020/02/15 17:24:51 sthen Exp $
COMMENT = multi-level, over-the-cell maze router for VLSI design
DISTNAME = qrouter-1.4.74
REVISION = 0
DISTNAME = qrouter-1.4.76
EXTRACT_SUFX = .tgz
CATEGORIES = cad

View File

@ -1,2 +1,2 @@
SHA256 (qrouter-1.4.74.tgz) = zRGHPREv9HcAMKZGtyfwHZWFUj+0csDabcq+OV9gnPQ=
SIZE (qrouter-1.4.74.tgz) = 326751
SHA256 (qrouter-1.4.76.tgz) = KOCxnpXxuulPTW3DXIz9sJrkkZ0y7bBuYnVby7Klyqg=
SIZE (qrouter-1.4.76.tgz) = 326888

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-Makefile_in,v 1.2 2020/02/03 22:21:57 sthen Exp $
$OpenBSD: patch-Makefile_in,v 1.3 2020/02/15 17:24:51 sthen Exp $
Index: Makefile.in
--- Makefile.in.orig
+++ Makefile.in
@@ -97,7 +97,8 @@ qrouternullg$(EXEEXT): $(OBJECTS4)
@@ -98,7 +98,8 @@ qrouternullg$(EXEEXT): $(OBJECTS4)
$(RM) qrouternullg$(EXEEXT)
$(CC) ${CFLAGS} ${CPPFLAGS} ${DEFS} ${EXTRA_DEFS} \
${SOURCES4} ${INC_SPECS} -o $@ ${LIB_SPECS_NOSTUB} \

View File

@ -1,35 +0,0 @@
$OpenBSD: patch-configure_in,v 1.2 2020/02/03 22:21:57 sthen Exp $
Index: configure.in
--- configure.in.orig
+++ configure.in
@@ -861,7 +861,13 @@ if test $usingTcl ; then
CFLAGS="${CFLAGS} -L/usr/X11R6/include"
;;
- *-netbsd*|*-openbsd*)
+ *-openbsd*)
+ SHLIB_CFLAGS="-fpic"
+ LDDL_FLAGS="-shared ${LIB_SPECS}"
+ CFLAGS="${CFLAGS} -I${X11BASE}/include"
+ ;;
+
+ *-netbsd*)
# Not available on all versions: check for include file.
AC_CHECK_HEADER(dlfcn.h, test_ok=yes, test_ok=no)
if test "$test_ok" = yes; then
@@ -885,7 +891,13 @@ if test $usingTcl ; then
esac
fi
if test "$with_gnu_ld" = "yes" ; then
- LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
+ case $target in
+ *-openbsd*)
+ ;;
+ *)
+ LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
+ ;;
+ esac
fi
AC_SUBST(SHDLIB_EXT)

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-qrouter_h,v 1.3 2020/02/08 10:26:32 cwen Exp $
Index: qrouter.h
--- qrouter.h.orig
+++ qrouter.h
@@ -40,7 +40,7 @@ typedef unsigned long u_long;
#endif /* _SYS_TYPES_H */
/* Compare functions aren't defined in the Mac's standard library */
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
typedef int (*__compar_fn_t)(const void*, const void*);
#endif
@@ -530,6 +530,8 @@ NET getnettoroute(int order);
int route_net_ripup(NET net, u_char graphdebug, u_char onlybreak);
#ifdef TCL_QROUTER
+/* XXX needed for va_list with GCC */
+#include <stdarg.h>
void tcl_printf(FILE *, const char *, ...);
void tcl_stdflush(FILE *);
void tcl_vprintf(FILE *, const char *, va_list);