summaryrefslogtreecommitdiff
path: root/cad/netgen-lvs/Makefile
blob: 7fa7ed5a8712cb6949f8903ea7cb8b1c898c4867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

PORTNAME=	netgen
DISTVERSION=	1.5.173
CATEGORIES=	cad
PKGNAMESUFFIX=	-lvs

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Tool for comparing netlists (a process known as LVS)

LICENSE=	GPLv1
LICENSE_FILE=	${WRKSRC}/Copying

RUN_DEPENDS=	bash:shells/bash

USES=		gmake python:3.6+ shebangfix tar:tgz tcl tk xorg
USE_XORG=	x11

USE_GITHUB=	yes
GH_ACCOUNT=	RTimothyEdwards

SHEBANG_FILES=	tcltk/netgen.sh.in

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	HAVE_PYTHON3=yes
CONFIGURE_ARGS=	--with-interpreter=tcl --with-tcl=${LOCALBASE}/lib/tcl8.6 --with-tk=${LOCALBASE}/lib/tk8.6 --with-x

post-patch:
	@${REINPLACE_CMD} -e 's|^#!/bin/env python3$$|#!${PYTHON_CMD}|' ${WRKSRC}/python/*.py

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/netgen/tcl/netgenexec ${STAGEDIR}${PREFIX}/lib/netgen/tcl/tclnetgen.so

.include <bsd.port.mk>