summaryrefslogtreecommitdiff
path: root/cad/boolean/Makefile
blob: 0f0716c7a3b82b0aeefc4d4d8b974fd9f21725be (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.5 2002/08/17 05:59:00 tron Exp $
#

DISTNAME=	boolean
PKGNAME=	boolean-${REL}
PKGREVISION=	1
CATEGORIES=	cad graphics
MASTER_SITES=	http://www.xs4all.nl/~kholwerd/download/boolzip/
EXTRACT_SUFX=	.zip

MAINTAINER=	dmcmahill@netbsd.org
HOMEPAGE=	http://www.xs4all.nl/~kholwerd/bool.html
COMMENT=	GDSII viewer/editor + (boolean) operations on sets of 2d polygons

DEPENDS+=	wxGTK>=2.2.7nb1:../../x11/wxGTK

DIST_SUBDIR=	${PKGNAME_NOREV}
REL=		6.2

# This package cannot be built with g++ 2.95.3.
ONLY_FOR_PLATFORM=	NetBSD-1.[45]*-*

WRKSRC=		${WRKDIR}/boolean/${REL}/linux
MAKEFILE=	makefile.gui
PLIST_SUBST=	REL=${REL}

post-patch:
	${MV} ${WRKSRC}/../../toolmanager ${WRKSRC}/../../toolmanager.in
	${SED} "s;@prefix@;${PREFIX};g" < ${WRKSRC}/../../toolmanager.in \
	  > ${WRKSRC}/../../toolmanager

do-install:
	${INSTALL_DATA_DIR}  ${PREFIX}/libexec/boolean/${REL}/${LOWER_OPSYS}/bin
	${INSTALL_DATA_DIR}  ${PREFIX}/libexec/boolean/${REL}/all_arch.all_os/bin/
	cd ${WRKSRC}/.. && \
		tar cf - default gdsuser | tar -xvf - -C ${PREFIX}/libexec/boolean/${REL}
	${CHOWN} -R ${BINOWN}.${BINGRP} ${PREFIX}/libexec/boolean/${REL}
	${INSTALL_SCRIPT} ${WRKSRC}/../../toolmanager ${PREFIX}/libexec/boolean/toolmanager
	${INSTALL_SCRIPT} ${WRKSRC}/../release_settings.sh ${PREFIX}/libexec/boolean/${REL}/release_settings.sh
	${INSTALL_SCRIPT} ${WRKSRC}/../all_arch.all_os/bin/*  ${PREFIX}/libexec/boolean/${REL}/all_arch.all_os/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/bin/boolean_exe  ${PREFIX}/libexec/boolean/${REL}/${LOWER_OPSYS}/bin/
	cd ${PREFIX}/bin ; \
	for f in  boolean booleanc booleanterm booleantest boolean_man ; \
	do \
		${LN} -f -s ../libexec/boolean/toolmanager $$f ;\
	done
	cd ${PREFIX}/libexec/boolean/ && ${LN} -f -s ${REL} default

.include "../../mk/bsd.pkg.mk"