mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
01f18e89f1
GUI control software for the stock K40 laser cutter controller K40 Whisperer is an alternative to the Laser Draw (LaserDRW) program that comes with some Chinese laser cutters. It reads SVG and DXF files, interprets the data and sends commands to the K40 controller to move the laser head and control the laser accordingly. K40 Whisperer does not require a USB key (dongle) to function. Features: - Reads SVG files and DXF files. - Splits input design based on color formatting (red, blue). - In SVG files blue and red paths are interpreted as vectors for vector engraving and cutting. Everything else is transferred as a raster image. - In DXF files blue paths are interpreted as vector engrave (blue). Everything else is interpreted as vector cut (red). - Performs cuts on features inside of other features before cutting the outside features. (If you cut the outside first the part might drop out of the stock material.) - Converts gray scale images to halftone images to simulating varying levels of gray (i.e. engraving pictures). The Halftone option needs to be selected under "Raster"-"Settings" to enable halftoning. WWW: http://www.scorchworks.com/K40whisperer/k40whisperer.html PR: 228466 Reviewed by: mat (mentor) Approved by: mat (mentor) Sponsored by: Warsaw Hackerspace Differential Revision: https://reviews.freebsd.org/D16339
68 lines
1.5 KiB
Makefile
68 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= k40-whisperer
|
|
DISTVERSION= 0.19
|
|
CATEGORIES= cad python
|
|
MASTER_SITES= http://www.scorchworks.com/K40whisperer/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= K40_Whisperer-${DISTVERSION}_src
|
|
|
|
MAINTAINER= 0mp@FreeBSD.org
|
|
COMMENT= GUI control software for the stock K40 laser cutter controller
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/gpl-3.0.txt
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}usb>0:devel/py-usb@${PY_FLAVOR}
|
|
|
|
USES= python:2.7 zip
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
NO_BUILD= yes
|
|
|
|
WHISPERER_COMMAND= ${PORTNAME}
|
|
SUB_FILES= pkg-message ${WHISPERER_COMMAND}
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} WHISPERER_COMMAND=${WHISPERER_COMMAND}
|
|
PLIST_SUB= WHISPERER_COMMAND=${WHISPERER_COMMAND}
|
|
|
|
DATA= bezmisc.py \
|
|
CC.png \
|
|
cspsubdiv.py \
|
|
cubicsuperpath.py \
|
|
down.png \
|
|
dxf.py \
|
|
egv.py \
|
|
emblem64 \
|
|
ffgeom.py \
|
|
g_code_library.py \
|
|
inkex.py \
|
|
interpolate.py \
|
|
k40_whisperer.py \
|
|
left.png \
|
|
LL.png \
|
|
LR.png \
|
|
nano_library.py \
|
|
right.png \
|
|
simplepath.py \
|
|
simplestyle.py \
|
|
simpletransform.py \
|
|
svg_reader.py \
|
|
UL.png \
|
|
up.png \
|
|
UR.png
|
|
|
|
DOCS= README_Linux.txt \
|
|
README_MacOS.md
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${WHISPERER_COMMAND} ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${DATA:S,^,${WRKSRC}/,} ${STAGEDIR}${DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|