From 3020a1c646de824b64fa437cfd311a68ce052b37 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 2 Feb 2021 23:41:59 +0000 Subject: [PATCH] MFH: r563851 cad/qrouter: Make the configure to pick up Tck/Tk. Submitted by: Kevin Zheng (via e-mail) --- cad/qrouter/Makefile | 19 ++++++++----------- cad/qrouter/pkg-plist | 7 +++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 cad/qrouter/pkg-plist diff --git a/cad/qrouter/Makefile b/cad/qrouter/Makefile index 539d9d4aae1c..a31d86472ed0 100644 --- a/cad/qrouter/Makefile +++ b/cad/qrouter/Makefile @@ -2,6 +2,7 @@ PORTNAME= qrouter DISTVERSION= 1.4.83 +PORTREVISION= 1 CATEGORIES= cad MASTER_SITES= http://opencircuitdesign.com/${PORTNAME}/archive/ @@ -11,19 +12,15 @@ COMMENT= Tool to generate metal layers and vias LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYRIGHT -BUILD_DEPENDS= tk87>0:x11-toolkits/tk87 \ - tcl87>0:lang/tcl87 - -USES= gmake localbase tar:tgz xorg -USE_XORG= xt +USES= gmake localbase tar:tgz xorg tk:87 +USE_XORG= ice sm x11 xt GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR} -CFLAGS+= -I${LOCALBASE}/include/tk8.7 -I${LOCALBASE}/include/tcl8.7 - -PLIST_FILES= bin/${PORTNAME} - -post-stage: - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} +post-install: +.for f in qrouter.so qrouterexec qrouternullg + @${STRIP_CMD} ${STAGEDIR}/${DATADIR}/${f} +.endfor .include diff --git a/cad/qrouter/pkg-plist b/cad/qrouter/pkg-plist new file mode 100644 index 000000000000..ef634d8262fe --- /dev/null +++ b/cad/qrouter/pkg-plist @@ -0,0 +1,7 @@ +bin/qrouter +%%DATADIR%%/console.tcl +%%DATADIR%%/qrouter.so +%%DATADIR%%/qrouter.tcl +%%DATADIR%%/qrouterexec +%%DATADIR%%/qrouternullg +%%DATADIR%%/tkcon.tcl