Michal Nowak
2019-11-02 1f72c11b46230a15eabe86273580a5aefe4e4759
commit | author | age
1c72a0 1 #
AL 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.illumos.org/license/CDDL.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
f16653 21
MN 22 #
40dff3 23 # Copyright (c) 2013-2017, Aurelien Larcher. All rights reserved.
1f72c1 24 # Copyright (c) 2019, Michal Nowak
1c72a0 25 #
1f72c1 26
MN 27 BUILD_BITS=        64
f16653 28
b84c54 29 include ../../../../make-rules/shared-macros.mk
1c72a0 30
1f72c1 31 COMPONENT_NAME=        efl
MN 32 COMPONENT_VERSION=    1.18.5
33 COMPONENT_REVISION=    4
34 COMPONENT_SUMMARY=    Enlightenment Foundation Libraries
35 COMPONENT_FMRI=        library/e/$(COMPONENT_NAME)
40dff3 36 COMPONENT_CLASSIFICATION= System/Libraries
1f72c1 37 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
MN 38 COMPONENT_PROJECT_URL=    http://www.enlightenment.org
39 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
40dff3 40 COMPONENT_ARCHIVE_HASH= \
1f72c1 41     sha256:56f02aa6b2c4ca0252fb6547fa8d2fdfff842e245a93ae41adca7a191900bf73
40dff3 42 COMPONENT_ARCHIVE_URL= \
1f72c1 43     http://download.enlightenment.org/rel/libs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
MN 44 COMPONENT_LICENSE=    BSD 2-clause, GPLv2, LGPLv2.1, Small
1c72a0 45
1f72c1 46 include $(WS_MAKE_RULES)/common.mk
1c72a0 47
40dff3 48 CONFIGURE_BINDIR.64=$(USRBINDIR)
AL 49 CONFIGURE_SBINDIR.64=$(USRSBINDIR)
50
51 # build with the distribution preferred libjpeg implementation
52 CFLAGS   += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
53 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
54 LDFLAGS  += $(JPEG_LDFLAGS)
55
56 CONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS) -D__EXTENSIONS__"
57 CONFIGURE_OPTIONS+= --with-opengl=full
5bb06e 58 CONFIGURE_OPTIONS+= --with-profile=release
40dff3 59 CONFIGURE_OPTIONS+= --enable-debug
AL 60 CONFIGURE_OPTIONS+= --enable-fribidi
61 CONFIGURE_OPTIONS+= --enable-harfbuzz
5bb06e 62 CONFIGURE_OPTIONS+= --disable-libeeze
40dff3 63 CONFIGURE_OPTIONS+= --enable-lua-old
AL 64 CONFIGURE_OPTIONS+= --enable-pulseaudio
65 CONFIGURE_OPTIONS+= --disable-cserve
66 CONFIGURE_OPTIONS+= --enable-physics
67 CONFIGURE_OPTIONS+= --enable-doc
5bb06e 68 CONFIGURE_OPTIONS+= --disable-systemd
40dff3 69 CONFIGURE_OPTIONS+= --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
b84c54 70
AP 71 CONFIGURE_ENV += PYTHON=$(PYTHON)
1c72a0 72
AL 73 # Need to cleanup the configure since EINA_HAVE_BYTESWAP_H is not set properly
74 COMPONENT_POST_CONFIGURE_ACTION=$(RM) $(SOURCE_DIR)/src/lib/eina/eina_config.h;
75
76 # pkgdepend fails to resolve the python version if env is used
b84c54 77 COMPONENT_POST_INSTALL_ACTION=sed -i -e '1 s|^.*$$|\#!/usr/bin/python$(PYTHON_VERSION)|' $(PROTO_DIR)/usr/bin/eina-bench-cmp;
1c72a0 78
b72fc5 79 # Build dependencies
AL 80 REQUIRED_PACKAGES += x11/library/mesa
81
40dff3 82 # Auto-generated dependencies
5bb06e 83 REQUIRED_PACKAGES += SUNWcs
40dff3 84 REQUIRED_PACKAGES += image/library/libjpeg8-turbo
b84c54 85 REQUIRED_PACKAGES += image/library/libpng16
40dff3 86 REQUIRED_PACKAGES += image/library/libraw
AL 87 REQUIRED_PACKAGES += image/library/librsvg
b84c54 88 REQUIRED_PACKAGES += image/library/libtiff
40dff3 89 REQUIRED_PACKAGES += library/audio/gstreamer1
AL 90 REQUIRED_PACKAGES += library/audio/gstreamer1/plugin/base
b72fc5 91 REQUIRED_PACKAGES += library/bullet
40dff3 92 REQUIRED_PACKAGES += library/c++/harfbuzz
AL 93 REQUIRED_PACKAGES += library/desktop/cairo
b84c54 94 REQUIRED_PACKAGES += library/fribidi
AP 95 REQUIRED_PACKAGES += library/giflib
96 REQUIRED_PACKAGES += library/glib2
40dff3 97 REQUIRED_PACKAGES += library/libpoppler
AL 98 REQUIRED_PACKAGES += library/libspectre
b84c54 99 REQUIRED_PACKAGES += library/security/openssl
AP 100 REQUIRED_PACKAGES += library/zlib
101 REQUIRED_PACKAGES += runtime/lua
b72fc5 102 REQUIRED_PACKAGES += runtime/python-27
b84c54 103 REQUIRED_PACKAGES += system/library
AP 104 REQUIRED_PACKAGES += system/library/fontconfig
105 REQUIRED_PACKAGES += system/library/freetype-2
f5010f 106 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
969846 107 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
b84c54 108 REQUIRED_PACKAGES += system/library/libdbus
AP 109 REQUIRED_PACKAGES += system/library/math
110 REQUIRED_PACKAGES += x11/library/libx11
111 REQUIRED_PACKAGES += x11/library/libxcomposite
112 REQUIRED_PACKAGES += x11/library/libxcursor
113 REQUIRED_PACKAGES += x11/library/libxdamage
114 REQUIRED_PACKAGES += x11/library/libxext
115 REQUIRED_PACKAGES += x11/library/libxfixes
116 REQUIRED_PACKAGES += x11/library/libxi
117 REQUIRED_PACKAGES += x11/library/libxinerama
118 REQUIRED_PACKAGES += x11/library/libxrandr
119 REQUIRED_PACKAGES += x11/library/libxrender
120 REQUIRED_PACKAGES += x11/library/libxscrnsaver
121 REQUIRED_PACKAGES += x11/library/libxtst