fastfetch: update to 2.30.1
[oi-userland.git] / components / openindiana / qemu-kvm / Makefile
blobbaf439f3d6ee5b610d63655e1939d2167c5d8f03
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2011 EveryCity Ltd. All rights reserved.
14 # Copyright 2012, Piotr Jasiukajtis
17 include ../../../make-rules/shared-macros.mk
19 PATH= /opt/onbld/bin/i386:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin
20 COMPONENT_NAME= illumos-kvm-cmd
21 COMPONENT_VERSION= 41e7c3e192eb39bb5ced7667fdc12ad2b33e646d
22 IPS_COMPONENT_VERSION= 0.0.1.20190827
23 COMPONENT_SRC= illumos-kvm-cmd-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
25 COMPONENT_ARCHIVE_HASH= sha256:00d1fa1b174f5fda5dd132ec4cb4745787f6ce6da8591abc2089aafda132a2bb
26 COMPONENT_ARCHIVE_URL= https://github.com/joyent/illumos-kvm-cmd/archive/$(COMPONENT_VERSION).zip
28 ifeq ($(MACH), sparc)
29 PUBLISH_STAMP=
30 endif
32 include $(WS_TOP)/make-rules/prep.mk
33 include $(WS_TOP)/make-rules/configure.mk
34 include $(WS_TOP)/make-rules/ips.mk
36 CC=/usr/gcc/7/bin/gcc
38 COMPONENT_BUILD_ARGS=
40 COMPONENT_PREP_ACTION = \
41 ($(MKDIR) $(SOURCE_DIR)/kvm/include/sys; \
42 $(LN) $(COMPONENT_DIR)/illumos-kvm/*.h $(SOURCE_DIR)/kvm/include/sys; )
44 COMPONENT_PRE_CONFIGURE_ACTION = \
45 $(CLONEY) $(SOURCE_DIR) $(@D)
47 CONFIGURE_ENV += PATH=$(PATH):/usr/sbin
49 CONFIGURE_OPTIONS = --cc=$(CC)
50 CONFIGURE_OPTIONS += --extra-cflags="-fno-builtin -msave-args"
51 CONFIGURE_OPTIONS += --extra-ldflags="-nodefaultlibs -lz -lm -lc"
52 CONFIGURE_OPTIONS += --prefix=/usr
53 CONFIGURE_OPTIONS += --mandir=/usr/share/man
54 CONFIGURE_OPTIONS += --bindir=/usr/bin/amd64
55 CONFIGURE_OPTIONS += --sysconfdir=/etc
56 CONFIGURE_OPTIONS += --enable-kvm
57 CONFIGURE_OPTIONS += --enable-kvm-pit
58 CONFIGURE_OPTIONS += --enable-vnc-png
59 CONFIGURE_OPTIONS += --disable-bluez
60 CONFIGURE_OPTIONS += --disable-brlapi
61 CONFIGURE_OPTIONS += --disable-curl
62 CONFIGURE_OPTIONS += --disable-kvm-device-assignment
63 CONFIGURE_OPTIONS += --enable-sdl
64 CONFIGURE_OPTIONS += --disable-vnc-jpeg
65 CONFIGURE_OPTIONS += --disable-vnc-sasl
66 CONFIGURE_OPTIONS += --disable-vnc-tls
67 CONFIGURE_OPTIONS += --enable-trace-backend=dtrace
68 CONFIGURE_OPTIONS += --target-list="i386-softmmu x86_64-softmmu"
69 CONFIGURE_OPTIONS += --enable-debug
71 COMPONENT_BUILD_ENV += PATH=$(PATH):/usr/sbin CTFCONVERT=/opt/onbld/bin/i386/ctfconvert CTFMERGE=/opt/onbld/bin/i386/ctfmerge
73 COMPONENT_INSTALL_ENV += PATH=$(PATH):/usr/sbin CTFCONVERT=/opt/onbld/bin/i386/ctfconvert CTFMERGE=/opt/onbld/bin/i386/ctfmerge
75 build_sparc:
76 @echo "Not available."
78 build_i386: $(BUILD_64)
80 build: build_$(MACH)
82 install_sparc:
83 @echo "Not available."
85 install_i386: $(INSTALL_64)
87 install: install_$(MACH)
89 REQUIRED_PACKAGES += image/library/libpng16
90 REQUIRED_PACKAGES += library/sdl
91 REQUIRED_PACKAGES += library/zlib
92 REQUIRED_PACKAGES += system/library
93 REQUIRED_PACKAGES += system/library/math
94 REQUIRED_PACKAGES += x11/library/libx11