Mate is not a library
[unleashed-userland.git] / components / desktop / mate / marco / Makefile
blob8b772771dcac83a8a4f80718686485dd7f84f5db
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 Ken Mays
13 # Copyright 2016 Till Wegmueller
16 include ../../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= marco
19 COMPONENT_VERSION= 1.14.2
20 COMPONENT_PROJECT_URL= http://www.mate-desktop.org
21 COMPONENT_SUMMARY= MATE Window Manager
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
24 COMPONENT_ARCHIVE_HASH= \
25 sha256:31ab76950bd6f8e829c1c40be8cb53c0d77a17791137752d196e73f3d9e55be4
26 COMPONENT_ARCHIVE_URL= http://pub.mate-desktop.org/releases/1.14/$(COMPONENT_ARCHIVE)
27 COMPONENT_LICENSE= GPLv2, LGPLv2, FDLv1.1
28 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
29 COMPONENT_CLASSIFICATION = System/Libraries
30 COMPONENT_FMRI = desktop/mate/$(COMPONENT_NAME)
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 PATH=/usr/gnu/bin:/usr/bin
38 GSED=/usr/bin/gsed
40 COMPONENT_PREP_ACTION = cd $(@D) && NOCONFIGURE=1 ./autogen.sh;\
41 $(GSED) -i '/_XOPEN_SOURCE/d' $(@D)/src/tools/marco-mag.c; \
42 $(GSED) -i '/_POSIX_C_SOURCE/d' $(@D)/src/core/util.c; \
43 $(GSED) -i '/_XOPEN_SOURCE/d' $(@D)/src/ui/preview-widget.c
45 CFLAGS+=-D__EXTENSIONS__
46 CFLAGS+=-std=gnu99
48 CONFIGURE_OPTIONS+= --sysconfdir=/etc
49 CONFIGURE_OPTIONS+= --disable-static
50 CONFIGURE_OPTIONS+= --localstatedir=/var/lib
51 CONFIGURE_OPTIONS+= --enable-maintainer-mode
53 COMPONENT_BUILD_ENV += CC="$(CC)"
54 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
55 COMPONENT_BUILD_ENV += CPPFLAGS="$(CPPFLAGS)"
57 # common targets
58 build: $(BUILD_32_and_64)
60 install: $(INSTALL_32_and_64)
62 test: $(NO_TESTS)
64 REQUIRED_PACKAGES += library/desktop/atk
65 REQUIRED_PACKAGES += library/desktop/cairo
66 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
67 REQUIRED_PACKAGES += library/desktop/gtk2
68 REQUIRED_PACKAGES += library/desktop/pango
69 REQUIRED_PACKAGES += library/desktop/startup-notification
70 REQUIRED_PACKAGES += library/desktop/xdg/libcanberra
71 REQUIRED_PACKAGES += library/glib2
72 REQUIRED_PACKAGES += library/libgtop
73 REQUIRED_PACKAGES += system/library
74 REQUIRED_PACKAGES += system/library/math
75 REQUIRED_PACKAGES += x11/library/libice
76 REQUIRED_PACKAGES += x11/library/libsm
77 REQUIRED_PACKAGES += x11/library/libx11
78 REQUIRED_PACKAGES += x11/library/libxcomposite
79 REQUIRED_PACKAGES += x11/library/libxcursor
80 REQUIRED_PACKAGES += x11/library/libxdamage
81 REQUIRED_PACKAGES += x11/library/libxext
82 REQUIRED_PACKAGES += x11/library/libxfixes
83 REQUIRED_PACKAGES += x11/library/libxrandr
84 REQUIRED_PACKAGES += x11/library/libxrender