2012-01-04 10:06:02 +01:00
|
|
|
PORTNAME= librecad
|
2021-01-19 06:10:55 +01:00
|
|
|
DISTVERSION= 2.2.0-rc2
|
2012-01-04 10:06:02 +01:00
|
|
|
CATEGORIES= cad
|
|
|
|
|
2017-01-15 00:05:13 +01:00
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
2012-01-04 10:06:02 +01:00
|
|
|
COMMENT= 2D CAD system
|
|
|
|
|
2017-01-15 00:05:13 +01:00
|
|
|
LICENSE= GPLv2+
|
2018-04-01 21:18:19 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/licenses/gpl-2.0.txt
|
2017-01-15 00:05:13 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:devel/boost-libs
|
2017-01-15 00:05:13 +01:00
|
|
|
LIB_DEPENDS= libmuparser.so:math/muparser \
|
|
|
|
libfreetype.so:print/freetype2
|
2013-07-20 13:08:57 +02:00
|
|
|
|
2019-11-04 22:36:13 +01:00
|
|
|
USES= compiler:c++11-lib desktop-file-utils pkgconfig gl qmake qt:5
|
2013-07-20 13:08:57 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= LibreCAD
|
|
|
|
GH_PROJECT= LibreCAD
|
2017-01-15 00:05:13 +01:00
|
|
|
USE_GL= gl
|
2018-06-28 19:39:53 +02:00
|
|
|
USE_QT= core gui printsupport svg widgets \
|
2017-01-15 00:05:13 +01:00
|
|
|
buildtools_build linguisttools_build
|
2016-11-07 15:26:23 +01:00
|
|
|
|
2018-04-01 21:18:19 +02:00
|
|
|
QMAKE_ARGS+= BOOST_DIR="${LOCALBASE}"
|
2015-08-31 10:32:03 +02:00
|
|
|
|
2012-01-04 10:06:02 +01:00
|
|
|
post-patch:
|
2017-01-15 00:05:13 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|QMAKE_CXXFLAGS += -g||' \
|
|
|
|
${WRKSRC}/common.pri
|
|
|
|
@${REINPLACE_CMD} -e 's|lrelease|${LRELEASE}|' \
|
|
|
|
${WRKSRC}/scripts/postprocess-unix.sh
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
|
2013-12-10 19:42:46 +01:00
|
|
|
${WRKSRC}/librecad/src/lib/engine/rs_settings.cpp \
|
|
|
|
${WRKSRC}/librecad/src/lib/engine/rs_system.cpp
|
2012-01-04 10:06:02 +01:00
|
|
|
|
2013-12-10 19:42:46 +01:00
|
|
|
pre-install:
|
2016-11-07 15:26:23 +01:00
|
|
|
@${CHMOD} +w ${WRKSRC}/unix/resources/plugins/*.so
|
|
|
|
@${STRIP_CMD} ${WRKSRC}/unix/resources/plugins/*.so
|
2012-01-04 10:06:02 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-10-09 12:08:04 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${STAGEDIR}${PREFIX}/bin
|
2015-08-28 12:11:02 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix/ttf2lff ${STAGEDIR}${PREFIX}/bin
|
2013-12-10 19:42:46 +01:00
|
|
|
(cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
2018-04-01 21:18:19 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/metainfo
|
2016-11-07 15:26:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/unix/appdata/librecad.appdata.xml \
|
2018-04-01 21:18:19 +02:00
|
|
|
${STAGEDIR}${PREFIX}/share/metainfo
|
2012-01-04 10:06:02 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \
|
2013-10-09 12:08:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/share/applications
|
2013-12-10 19:42:46 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/librecad/res/main/librecad.png \
|
2013-10-09 12:08:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
2012-01-04 10:06:02 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|