python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / xscreensaver / Makefile
blobeeb4cd3b23e69726509fb7bda404e91c84ba6fd8
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 2017 Gary Mills
14 # Copyright 2017 Alexander Pyhalov
15 # Copyright 2018-2019 Michal Nowak
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= xscreensaver
21 COMPONENT_VERSION= 6.8
22 HUMAN_VERSION= 6.08
23 COMPONENT_PROJECT_URL= https://www.jwz.org/xscreensaver/
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:5cf52ba525ceecf94b2f2bd63485ebdf318e12fcc0f2adad7d4c106d855e76a3
27 COMPONENT_ARCHIVE_URL= https://www.jwz.org/xscreensaver/$(COMPONENT_ARCHIVE)
28 COMPONENT_FMRI= desktop/xscreensaver
30 TEST_TARGET= $(NO_TESTS)
31 include $(WS_MAKE_RULES)/common.mk
33 PATH= $(PATH.gnu)
35 CONFIGURE_SCRIPT= $(@D)/configure
37 CFLAGS+= -funsafe-math-optimizations -Wall -I$(SOURCE_DIR)/mesa/GL -std=c99 -D_FILE_OFFSET_BITS=64
38 CXXFLAGS+= -funsafe-math-optimizations -Wall -I$(SOURCE_DIR)/mesa/GL -D_FILE_OFFSET_BITS=64
40 LDFLAGS+= -I$(@D)/mesa/GL
42 # build with the distribution preferred libjpeg implementation
43 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
44 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
45 LDFLAGS += $(JPEG_LDFLAGS)
47 CONFIGURE_ENV += "XGETTEXT=/usr/gnu/bin/xgettext"
49 CONFIGURE_OPTIONS += --with-pixbuf=/usr
50 CONFIGURE_OPTIONS += --enable-locking
51 CONFIGURE_OPTIONS += --with-pam=/usr
52 CONFIGURE_OPTIONS += --without-shadow
53 CONFIGURE_OPTIONS += --without-kerberos
54 CONFIGURE_OPTIONS += --with-xinput-ext
55 CONFIGURE_OPTIONS += --with-randr-ext
56 CONFIGURE_OPTIONS += --enable-root-passwd
57 CONFIGURE_OPTIONS += --with-gl=/usr
58 CONFIGURE_OPTIONS += --without-motif
59 CONFIGURE_OPTIONS += --with-hackdir=/usr/lib/xscreensaver/hacks
60 CONFIGURE_OPTIONS += --libexecdir=/usr/lib/xscreensaver/bin
61 CONFIGURE_OPTIONS += --with-configdir=/usr/lib/xscreensaver/config/control-center-2.0
62 CONFIGURE_OPTIONS += --with-image-directory=/usr/share/pixmaps/backgrounds
63 CONFIGURE_OPTIONS += --with-text-file=/etc/motd
64 CONFIGURE_OPTIONS += --with-jpeg
65 CONFIGURE_OPTIONS += --with-png
66 CONFIGURE_OPTIONS += --with-gl
67 CONFIGURE_OPTIONS += --with-gtk
69 COMPONENT_INSTALL_ENV += MAKEFLAGS=-e install_prefix=$(PROTO_DIR)
71 COMPONENT_BUILD_TARGETS= all
73 COMPONENT_POST_UNPACK_ACTION= \
74 ( cp $(COMPONENT_DIR)/files/*.p5i.in $(SOURCE_DIR)/driver ; \
75 cp $(COMPONENT_DIR)/files/*.xpm $(SOURCE_DIR)/utils/images/; )
77 COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -if )
79 COMPONENT_PRE_CONFIGURE_ACTION += \
80 chmod -R u+r $(SOURCE_DIR)/ ; \
81 cp -rpP $(SOURCE_DIR)/* $(@D)
83 COMPONENT_PRE_INSTALL_ACTION = ( \
84 ln -s logo-50.xpm $(@D)/utils/images/xscreensaver.xpm ; \
85 $(INSTALL) -d $(PROTO_DIR)/usr/share/pixmaps ; \
86 $(INSTALL) -m 644 $(@D)/utils/images/xscreensaver.xpm $(PROTO_DIR)/usr/share/pixmaps ; \
89 # Build dependencies
90 PERL_REQUIRED_PACKAGES += library/perl-5/xml-parser
91 REQUIRED_PACKAGES += image/library/libpng16
92 REQUIRED_PACKAGES += library/c++/harfbuzz
93 REQUIRED_PACKAGES += library/desktop/pango
94 REQUIRED_PACKAGES += x11/library/mesa
95 REQUIRED_PACKAGES += service/opengl/ogl-select
97 # Auto-generated dependencies
98 PERL_REQUIRED_PACKAGES += runtime/perl
99 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
100 REQUIRED_PACKAGES += library/desktop/atk
101 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
102 REQUIRED_PACKAGES += library/desktop/gtk3
103 REQUIRED_PACKAGES += library/glib2
104 REQUIRED_PACKAGES += library/libxml2
105 REQUIRED_PACKAGES += system/library
106 REQUIRED_PACKAGES += system/library/math
107 REQUIRED_PACKAGES += x11/library/glu
108 REQUIRED_PACKAGES += x11/library/libx11
109 REQUIRED_PACKAGES += x11/library/libxext
110 REQUIRED_PACKAGES += x11/library/libxft
111 REQUIRED_PACKAGES += x11/library/libxi
112 REQUIRED_PACKAGES += x11/library/libxinerama
113 REQUIRED_PACKAGES += x11/library/libxrandr
114 REQUIRED_PACKAGES += x11/library/libxxf86vm
115 REQUIRED_PACKAGES += x11/library/toolkit/libxt