blob: c71f8ca57e3ba27fc0c1cec3a6884ac507898876 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $NetBSD: Makefile,v 1.95 2021/01/01 09:52:19 ryoon Exp $
#
DISTNAME= qcad-3.24.3.0
PKGREVISION= 6
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_GITHUB:=qcad/}
EXTRACT_USING= bsdtar
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.qcad.org/
COMMENT= 2D CAD system
LICENSE= gnu-gpl-v3
DEPENDS+= bash-[0-9]*:../../shells/bash
USE_TOOLS+= chmod find make pax
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_MESSAGE.paths= Attending to hard-coded paths.
SUBST_FILES.paths+= shared.pri src/core/RS.cpp src/core/RSettings.cpp
SUBST_FILES.paths+= scripts/Help/ShowReadme/ShowReadme.js
SUBST_FILES.paths+= scripts/Widgets/LibraryBrowser/LibraryBrowser.js
SUBST_VARS.paths= PREFIX
SUBST_CLASSES+= icon
SUBST_STAGE.icon= pre-configure
SUBST_MESSAGE.icon= Fix icon name.
SUBST_FILES.icon= qcad.desktop
SUBST_SED.icon= -e s,qcad_icon,qcad,g
AUTO_MKDIRS= yes
# ensure we don't build debug libs
BUILD_TARGET= release
#
# The QCad build system normally links direct to a release dir but this
# causes a lot of problems with libtool dependencies. We patch it so that
# the libs are linked from the source dirs and add an install target to
# allow pkgsrc to use DESTDIR
#
do-configure:
cd ${WRKSRC} && ${QTDIR}/bin/qmake -r -after DESTDIR=
do-install:
cd ${WRKSRC} && make INSTALL_ROOT=${DESTDIR} install
${INSTALL_DATA} ${WRKSRC}/qcad.desktop \
${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.svg \
${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qcad.svg
${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.svg \
${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad.svg
${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad.png
${INSTALL_DATA} ${WRKSRC}/scripts/qcad_icon.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps/qcad.png
${INSTALL_DATA} ${WRKSRC}/support/doc/api/qcad_icon.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/qcad.png
${INSTALL_LIB} ${WRKSRC}/src/3rdparty/qt-labs-qtscriptgenerator-*/qtbindings/qtscript_*/libqtscript_*.so* \
${DESTDIR}${PREFIX}/lib/qcad/plugins/script
${INSTALL_MAN} ${WRKSRC}/qcad.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${FIND} ${WRKSRC}/scripts -name \*.orig -delete
${FIND} ${WRKSRC} -name \*.gitignore -delete
cd ${WRKSRC} && ${PAX} -rwpm \
fonts linetypes patterns scripts themes ts \
${DESTDIR}${PREFIX}/lib/${PKGBASE}
cd ${WRKSRC} && ${PAX} -rwpm \
readme.txt examples libraries \
${DESTDIR}${PREFIX}/share/${PKGBASE}
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtscript/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../x11/qt5-qtxmlpatterns/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|