aboutsummaryrefslogblamecommitdiff
path: root/cad/k40-whisperer/Makefile
blob: 9eb0f8a61a8ed487171e1fa08cdcee9e06e795a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                             
                    

                                                        








                                                                              
                                                                            
                            
 
                                              
                    
 





                                                                       
                   
                   



                                                       
 

                    



                                                                               
 
           
                                                                                  
                                       
                                              
                                                                          
                                       
                                                                      
 
                      
PORTNAME=	k40-whisperer
DISTVERSION=	0.57
CATEGORIES=	cad python
MASTER_SITES=	http://www.scorchworks.com/K40whisperer/
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}pyusb>0:devel/py-pyusb@${PY_FLAVOR} \
		${PY_PILLOW}

USES=		python:run,3.6+ shebangfix zip
SHEBANG_FILES=	*.py

DESKTOP_ENTRIES=	"K40 Whisperer" \
			"${COMMENT}" \
			"${DATADIR}/scorchworks.ico" \
			"${_WHISPERER_COMMAND}" \
			"Development;Art;Engineering;VectorGraphics;" \
			false
NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	${_WHISPERER_COMMAND} pkg-message
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
		WHISPERER_COMMAND=${_WHISPERER_COMMAND}
PLIST_SUB=	WHISPERER_COMMAND=${_WHISPERER_COMMAND}

OPTIONS_DEFINE=	DOCS

_DOCS=			Change_Log.txt README_Linux.txt README_MacOS.md
_NON_DATA_FILES=	${_DOCS} ${LICENSE_FILE:S,${WRKSRC}/,,} build_exe.bat \
			py2exe_setup.py requirements.txt
_WHISPERER_COMMAND=	${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${_WHISPERER_COMMAND} ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . \
		${STAGEDIR}${DATADIR} "${_NON_DATA_FILES:S,^,! -name &,}")
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${_DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>