aboutsummaryrefslogtreecommitdiff
path: root/cad/linux-eagle5/Makefile
blob: 947e3fb3f870ba587caf9079aea9059dc0259c34 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Michael Durian <durian@shadetreesoftware.com>

PORTNAME=	eagle5
PORTVERSION=	${EAGLEVERSION}
PORTREVISION=	6
CATEGORIES=	cad linux
MASTER_SITES=	ftp://ftp.cadsoft.de/eagle/program/${EAGLEBASEVERSION}/
PKGNAMEPREFIX=	linux-
DISTNAME=	eagle-lin-${EAGLEVERSION}
EXTRACT_SUFX=	.run

MAINTAINER=	riggs@FreeBSD.org
COMMENT=	Easy to use, yet powerful tool for designing printed circuit boards

LICENSE=	Eagle
LICENSE_NAME=	Eagle End User License Agreement
LICENSE_FILE=	${WRKSRC}/doc/license_en.txt
LICENSE_PERMS=	auto-accept

ONLY_FOR_ARCHS=	i386 amd64

WRKSRC=		${WRKDIR}/${DISTNAME:S/lin-//}

EXTRACT_CMD=	${SED}
EXTRACT_BEFORE_ARGS=	-e '1,/^__DATA__$$/d'
EXTRACT_AFTER_ARGS=	| ${BZCAT} -c 2>/dev/null | ${TAR} -xf -

RESTRICTED=	Usage permitted for non-commercial purposes only
NO_CDROM=	Sale for profit is not permitted
NO_PACKAGE=	Copying the software is only allowed for backup by an individual licensee

EAGLEBASEVERSION=	5.12
EAGLEBUGFIX=	0
EAGLEVERSION=	${EAGLEBASEVERSION}.${EAGLEBUGFIX}

USES=		linux
USE_LINUX=	xorglibs jpeg png
NO_BUILD=	yes
SUB_FILES=	pkg-deinstall pkg-message

DESKTOP_ENTRIES=	"Eagle5" "Tool for designing printed circuit boards" \
			${DATADIR}/ulp/eagle.bmp \
			"eagle" "Development;Electronics;Engineering;" false

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
	${INSTALL_MAN} ${STAGEDIR}${DATADIR}/doc/eagle.1 ${STAGEDIR}${PREFIX}/man/man1/eagle.1
	${SED} -e "s:%%DATADIR%%:${DATADIR}:g" ${FILESDIR}/eagle.sh > ${STAGEDIR}${PREFIX}/bin/eagle

.include <bsd.port.mk>