View | Details | Raw Unified | Return to bug 228466 | Differences between
and this patch

Collapse All | Expand All

(-)cad/Makefile (+1 lines)
Lines 45-50 Link Here
45
    SUBDIR += irsim
45
    SUBDIR += irsim
46
    SUBDIR += iverilog
46
    SUBDIR += iverilog
47
    SUBDIR += jspice3
47
    SUBDIR += jspice3
48
    SUBDIR += k40-whisperer
48
    SUBDIR += kicad
49
    SUBDIR += kicad
49
    SUBDIR += kicad-devel
50
    SUBDIR += kicad-devel
50
    SUBDIR += kicad-library
51
    SUBDIR += kicad-library
(-)cad/k40-whisperer/Makefile (+69 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	k40-whisperer
4
DISTVERSION=	0.19
5
CATEGORIES=	cad python
6
MASTER_SITES=	http://www.scorchworks.com/K40whisperer/
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
DISTNAME=	K40_Whisperer-${DISTVERSION}_src
9
10
MAINTAINER=	0mp@FreeBSD.org
11
COMMENT=	GUI control software for the stock K40 laser cutter controller
12
13
LICENSE=	GPLv3+
14
LICENSE_FILE=	${WRKSRC}/gpl-3.0.txt
15
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}usb>0:devel/py-usb@${PY_FLAVOR}
19
20
USES=		python:-2.7 zip
21
22
NO_BUILD=	yes
23
24
WHISPERER_COMMAND=	${PORTNAME}
25
SUB_FILES=	pkg-message ${WHISPERER_COMMAND}
26
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} WHISPERER_COMMAND=${WHISPERER_COMMAND}
27
28
PLIST_FILES=	bin/${WHISPERER_COMMAND}
29
30
PORTDATA=	bezmisc.py \
31
		CC.png \
32
		cspsubdiv.py \
33
		cubicsuperpath.py \
34
		down.png \
35
		dxf.py \
36
		egv.py \
37
		emblem64 \
38
		ffgeom.py \
39
		g_code_library.py \
40
		inkex.py \
41
		interpolate.py \
42
		k40_whisperer.py \
43
		left.png \
44
		LL.png \
45
		LR.png \
46
		nano_library.py \
47
		right.png \
48
		simplepath.py \
49
		simplestyle.py \
50
		simpletransform.py \
51
		svg_reader.py \
52
		UL.png \
53
		up.png \
54
		UR.png
55
56
PORTDOCS=	README_Linux.txt \
57
		README_MacOS.md
58
59
do-install:
60
	${INSTALL_SCRIPT} ${WRKDIR}/${WHISPERER_COMMAND} ${STAGEDIR}${PREFIX}/bin
61
	@${MKDIR} ${STAGEDIR}${DATADIR}
62
.for f in ${PORTDATA}
63
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
64
.endfor
65
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
66
	${INSTALL_DATA} ${WRKSRC}/README_Linux.txt ${STAGEDIR}${DOCSDIR}
67
	${INSTALL_DATA} ${WRKSRC}/README_MacOS.md ${STAGEDIR}${DOCSDIR}
68
69
.include <bsd.port.mk>
(-)cad/k40-whisperer/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1527085070
2
SHA256 (K40_Whisperer-0.19_src.zip) = c688cf1746aa391b6a9d4cfb3e66c2f183d1f45da88a2770e8ddefac44349193
3
SIZE (K40_Whisperer-0.19_src.zip) = 121328
(-)cad/k40-whisperer/files/k40-whisperer.in (+3 lines)
Added Link Here
1
#! /bin/sh -
2
3
%%PYTHON_CMD%% %%DATADIR%%/k40_whisperer.py
(-)cad/k40-whisperer/files/pkg-message.in (+5 lines)
Added Link Here
1
At the moment K40 Whisperer has to be run as root unless devd is properly
2
configured. Some notes on how to it is configured on macOS and Linux can be
3
found in %%DATADIR%%.
4
5
K40 Whisperer can be launched with a `%%WHISPERER_COMMAND%%` command.
(-)cad/k40-whisperer/pkg-descr (+21 lines)
Added Link Here
1
K40 Whisperer is an alternative to the the Laser Draw (LaserDRW) program that
2
comes with the some Chinese laser cutters. It reads SVG and DXF files,
3
interprets the data and sends commands to the K40 controller to move the laser
4
head and control the laser accordingly. K40 Whisperer does not require a USB
5
key (dongle) to function.
6
7
Features:
8
- Reads SVG files and DXF files
9
- Splits input design based on color formating (red,blue)
10
- In SVG files blue and red paths are interpreted as vectors for vector
11
  engraving and cutting. Everything else is transfered as a raster image.
12
- In DXF files blue paths are interpreted as vector engrave(blue). Everything
13
  else is interpreted as vector cut(red).
14
- Performs cuts on features inside of other features before cutting the outside
15
  features. (If you cut the outside first the part might drop out of the stock
16
  material)
17
- Converts gray scale images to halftone images to simulating varying levels of
18
  gray (i.e. engraving pictures). The Halftone option needs to be selected
19
  under "Raster"-"Settings" to enable halftoning.
20
21
WWW: http://www.scorchworks.com/K40whisperer/k40whisperer.html

Return to bug 228466