PORTNAME=	veroroute
DISTVERSION=	2.25
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	cad
MASTER_SITES=	SF/${PORTNAME}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	PCB (printed circuit board) design software

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/../licenses/license_GPLv3.txt

USES=		compiler:c++11-lang gl qmake qt:5
USE_QT=		core gui network widgets buildtools_build
USE_GL=		gl

WRKSRC=		${WRKDIR}/VeroRoute
WRKSRC_SUBDIR=	Src

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/veroroute
	# workaround for https://sourceforge.net/p/veroroute/tickets/26/
	@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|' \
		${STAGEDIR}${PREFIX}/share/applications/veroroute.desktop

.include <bsd.port.mk>
