rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / desktop / librecad / Makefile
blobff2c8ed2bb9762a7f956ebf61d1394cbfb0d8761
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 Carsten Grzemba cgrzemba@opencsw.org
15 BUILD_BITS=64
16 BUILD_STYLE=justmake
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME = LibreCAD
20 COMPONENT_VERSION = 2.2.0.2
21 COMPONENT_SUMMARY= LibreCAD is a 2D CAD drawing tool based on the community edition of QCAD.
22 COMPONENT_PROJECT_URL = https://github.com/LibreCAD
23 COMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH = sha256:fcb888a550f1f515ef6a2f7af2dd02605dd5c6da8a23f6c3a52479f8532ac109
26 COMPONENT_ARCHIVE_URL = https://github.com/LibreCAD/LibreCAD/archive/$(COMPONENT_VERSION).tar.gz
27 COMPONENT_FMRI = desktop/librecad
28 COMPONENT_CLASSIFICATION= Applications/Graphics and Imaging
29 COMPONENT_LICENSE= GPLv2
30 COMPONENT_LICENSE_FILE= LICENSE
32 TEST_TARGET= $(NO_TESTS)
33 include $(WS_MAKE_RULES)/common.mk
35 PATH.qt5 = /usr/lib/qt/5.15/bin/$(MACH64)
36 PATH=$(GCC_BINDIR):$(PATH.qt5):$(PATH.illumos)
38 COMPONENT_NAME_lc = $(shell echo $(COMPONENT_NAME) | tr '[A-Z]' '[a-z]')
39 COMPONENT_INSTALL_ACTION = \
40 $(INSTALL) -Dpm 755 $(@D)/unix/librecad $(PROTO_DIR)$(USRBINDIR)/librecad; \
41 $(INSTALL) -Dpm 755 $(@D)/unix/ttf2lff $(PROTO_DIR)$(USRBINDIR)/ttf2lff; \
42 $(INSTALL) -d $(PROTO_DIR)$(USRLIBDIR)/$(COMPONENT_NAME_lc)/plugins/$(MACH64) ; \
43 $(INSTALL) -d $(PROTO_DIR)$(USRSHAREDIR)/$(COMPONENT_NAME_lc); \
44 $(CP) -rfL $(@D)/unix/resources/plugins/* \
45 $(PROTO_DIR)$(USRLIBDIR)/$(COMPONENT_NAME_lc)/plugins/$(MACH64)/; \
46 $(CP) -rfL $(@D)/unix/resources/qm \
47 $(PROTO_DIR)$(USRSHAREDIR)/$(COMPONENT_NAME_lc)/; \
48 $(CP) -rfL $(@D)/librecad/support/* \
49 $(PROTO_DIR)$(USRSHAREDIR)/$(COMPONENT_NAME_lc); \
50 $(INSTALL) -Dpm 644 $(@D)/desktop/librecad.desktop $(PROTO_DIR)$(USRSHAREDIR)/applications/librecad.desktop ; \
51 $(INSTALL) -Dpm 644 $(@D)/librecad/res/main/librecad.png $(PROTO_DIR)$(USRSHAREDIR)/pixmaps/librecad.png ; \
52 $(INSTALL) -Dpm 644 $(@D)/desktop/librecad.sharedmimeinfo $(PROTO_DIR)$(USRSHAREDIR)/mime/packages/librecad.xml ; \
53 $(INSTALL) -Dpm 644 $(@D)/desktop/librecad.1 $(PROTO_DIR)$(USRSHAREMANDIR)/man1/librecad.1 ; \
54 $(INSTALL) -Dpm 644 $(SOURCE_DIR)/ttf2lff.1 $(PROTO_DIR)$(USRSHAREMANDIR)/man1/ttf2lff.1 ; \
55 $(INSTALL) -Dpm 644 $(SOURCE_DIR)/licenses/* \
56 $(PROTO_DIR)$(USRSHAREDIR)/$(COMPONENT_NAME_lc)/doc
58 COMPONENT_PRE_BUILD_ACTION = \
59 (cd $(@D) && qmake $(COMPONENT_NAME_lc).pro 'CONFIG+=release')
61 # Build dependencies
62 REQUIRED_PACKAGES += system/library/boost
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
66 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
67 REQUIRED_PACKAGES += library/qt5
68 REQUIRED_PACKAGES += system/library
69 REQUIRED_PACKAGES += system/library/freetype-2
70 REQUIRED_PACKAGES += system/library/math