blob: 2f3e5523575d151fcf94fcd6928595ad5a773f35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $FreeBSD$
PORTNAME= librecad
DISTVERSION= 2.0.3
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= GITHUB
MAINTAINER= makc@FreeBSD.org
COMMENT= 2D CAD system
BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS= libmuparser.so:${PORTSDIR}/math/muparser
USE_QT4= help qt3support help-tools_build linguist_build moc_build \
rcc_build uic_build uic3_build
USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake
USE_GITHUB= yes
GH_ACCOUNT= LibreCAD
GH_PROJECT= LibreCAD
GH_COMMIT= 1555bd5
post-patch:
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
${WRKSRC}/librecad/src/lib/engine/rs_settings.cpp \
${WRKSRC}/librecad/src/lib/engine/rs_system.cpp
${REINPLACE_CMD} -e \
'/^Icon/s,librecad,${PREFIX}/share/pixmaps/librecad.png,' \
${WRKSRC}/desktop/librecad.desktop
pre-install:
${CHMOD} +w ${WRKSRC}/unix/resources/plugins/*.so
${STRIP_CMD} ${WRKSRC}/unix/resources/plugins/*.so
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \
${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/librecad/res/main/librecad.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.mk>
|