openbsd-ports/cad/opensta/Makefile
rsadowski 7a91299a48 Unbreak opensta with cmake 3.19
Diff from maintainer, thanks
2021-01-02 08:49:37 +00:00

55 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2021/01/02 08:49:37 rsadowski Exp $
COMMENT = Parallax Static Timing Analyzer
GH_ACCOUNT = The-OpenROAD-Project
GH_PROJECT = OpenSTA
GH_TAGNAME = v2.2.0
REVISION = 0
PKGNAME = ${DISTNAME:L}
CATEGORIES = cad
HOMEPAGE = https://theopenroadproject.org/
MAINTAINER = Alessandro De Laurenzis <just22@atlantide.mooo.com>
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB = ${COMPILER_LIBCXX} ${MODTCL_WANTLIB} c m z cudd
# C++11
COMPILER = base-clang ports-gcc
MODULES = devel/cmake \
lang/tcl
MODTCL_VERSION = 8.6
LIB_DEPENDS = ${MODTCL_LIB_DEPENDS} \
devel/cudd
BUILD_DEPENDS = devel/bison \
devel/swig \
${MODTCL_BUILD_DEPENDS}
CONFIGURE_ARGS = -DTCL_HEADER=${MODTCL_INCDIR}/tcl.h \
-DCUDD=${LOCALBASE}
pre-configure:
cd ${WRKSRC}/etc && ${MODTCL_TCLSH_ADJ} TclEncode.tcl SwigCleanup.tcl
cd ${WRKSRC}/test && ${MODTCL_TCLSH_ADJ} regression
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opensta
${INSTALL_DATA} ${WRKSRC}/doc/OpenSTA.pdf ${PREFIX}/share/doc/opensta
${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog.txt ${PREFIX}/share/doc/opensta
${INSTALL_DATA} ${WRKSRC}/doc/StaApi.txt ${PREFIX}/share/doc/opensta
${INSTALL_DATA} ${WRKSRC}/doc/ApiChanges.txt ${PREFIX}/share/doc/opensta
do-test:
cd ${WRKDIST} && test/regression all
.include <bsd.port.mk>