Import cad/fritzing version 0.9.2_3
[dports.git] / cad / fritzing / Makefile
1 # Created by: Sergio Lenzi <lenzi.sergio@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       fritzing
5 PORTVERSION=    0.9.2
6 PORTREVISION=   3
7 CATEGORIES=     cad
8 MASTER_SITES=   https://github.com/fritzing/fritzing-app/archive/:source \
9                 https://github.com/fritzing/fritzing-parts/archive/:parts
10 DISTFILES=      0.9.2b.tar.gz:source 0.9.2b.zip:parts
11 DIST_SUBDIR=    ${PORTNAME}
12
13 MAINTAINER=     lenzi.sergio@gmail.com
14 COMMENT=        CAD for printed circuit boards
15
16 LICENSE=        GPLv2+
17
18 SUB_FILES+=     pkg-install
19
20 WRKSRC=         ${WRKDIR}/fritzing-app-${PORTVERSION}b
21
22 USES=           dos2unix gmake python qmake tar:bzip2
23 USE_QT5=        buildtools concurrent core dbus gui imageformats network printsupport qmake serialport sql-sqlite3 svg xml
24 DOS2UNIX_REGEX= .*pro
25 INSTALLS_ICONS= yes
26
27 PORTDATA=       *
28 MAKE_ENV=       INSTALL_ROOT="${STAGEDIR}"
29
30 BUILD_DEPENDS+= boost-libs>1.52:${PORTSDIR}/devel/boost-libs
31
32 RUN_DEPENDS+=   py${PYTHON_SUFFIX}-sqlite3>0:${PORTSDIR}/databases/py-sqlite3
33
34 .include <bsd.port.pre.mk>
35
36 post-extract:
37         cd ${WRKDIR}/fritzing-parts-0.9.2b;\
38         ${MKDIR} parts;${MV} -f * parts 2> /dev/null || true;\
39         ${MKDIR} pdb;${MV} parts/core pdb;${MKDIR} parts/core;\
40         ${MV} ${WRKDIR}/fritzing-app-0.9.2b/bins .
41
42 post-install:
43         ${CP} -rpf ${WRKDIR}/fritzing-parts-0.9.2b/* ${STAGEDIR}${LOCALBASE}/share/fritzing
44
45 .include <bsd.port.post.mk>