library/libksba: enable legacy uname
[unleashed-userland.git] / components / qt4 / Makefile
blob5e0795bdd19a42018ec8498e54c5e82cf42b3d5c
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 2014 EveryCity Ltd. All rights reserved.
13 # Copyright 2015 Alexander Pyhalov
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= qt
19 COMPONENT_FMRI= library/qt4
20 COMPONENT_VERSION= 4.8.7
21 COMPONENT_VERSION_MJR= 4.8
22 COMPONENT_LICENSE= QT4
23 COMPONENT_LICENSE_FILE= qt4.license
24 COMPONENT_PROJECT_URL= "http://qt.nokia.com/products/"
25 COMPONENT_SUMMARY= Qt cross-platform application and UI framework
26 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
27 COMPONENT_SRC= $(COMPONENT_NAME)-everywhere-opensource-src-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0
30 COMPONENT_ARCHIVE_URL= http://download.qt-project.org/official_releases/qt/$(COMPONENT_VERSION_MJR)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
32 include ../../make-rules/prep.mk
33 include ../../make-rules/configure.mk
34 include ../../make-rules/ips.mk
36 PATH=$(PG_BINDIR.$(BITS)):$(MYSQL_BINDIR.$(BITS)):/usr/bin
38 # Missing files in build dir without this.
39 COMPONENT_PRE_CONFIGURE_ACTION = (cp -r $(SOURCE_DIR)/* $(@D))
41 CONFIGURE_SCRIPT= $(@D)/configure
43 COMPONENT_INSTALL_ENV+= INSTALL_ROOT=$(PROTO_DIR)
45 CONFIGURE_OPTIONS= -prefix /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)
46 CONFIGURE_OPTIONS.32= -bindir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/bin
47 CONFIGURE_OPTIONS.32+= -libdir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/lib
48 CONFIGURE_OPTIONS.32+= -plugindir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/plugins
49 CONFIGURE_OPTIONS.32+= -importdir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/imports
50 CONFIGURE_OPTIONS.64= -bindir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/bin/$(MACH64)
51 CONFIGURE_OPTIONS.64+= -libdir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/lib/$(MACH64)
52 CONFIGURE_OPTIONS.64+= -plugindir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/plugins/$(MACH64)
53 CONFIGURE_OPTIONS.64+= -importdir /usr/lib/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MJR)/imports/$(MACH64)
54 CONFIGURE_OPTIONS.32+= -platform solaris-g++
55 CONFIGURE_OPTIONS.64+= -platform solaris-g++-64
56 CONFIGURE_OPTIONS+= -verbose
57 CONFIGURE_OPTIONS+= -opensource
58 CONFIGURE_OPTIONS+= -confirm-license
59 CONFIGURE_OPTIONS+= -xmlpatterns
60 CONFIGURE_OPTIONS+= -webkit
61 CONFIGURE_OPTIONS+= -no-opengl
62 CONFIGURE_OPTIONS+= -nomake examples
63 CONFIGURE_OPTIONS+= -nomake demos
64 CONFIGURE_OPTIONS+= -nomake translations
65 CONFIGURE_OPTIONS+= -nomake docs
66 CONFIGURE_OPTIONS+= $(CONFIGURE_OPTIONS.$(BITS))
67 CONFIGURE_OPTIONS+= -plugin-sql-sqlite
68 CONFIGURE_OPTIONS+= -plugin-sql-mysql
69 CONFIGURE_OPTIONS+= -I$(MYSQL_INCDIR)
70 CONFIGURE_OPTIONS+= -L$(MYSQL_LIBDIR.$(BITS)) -R$(MYSQL_LIBDIR.$(BITS))
71 CONFIGURE_OPTIONS+= -plugin-sql-psql
72 CONFIGURE_OPTIONS+= -I$(PG_INCDIR)
73 CONFIGURE_OPTIONS+= -L$(PG_LIBDIR.$(BITS)) -R$(PG_LIBDIR.$(BITS))
74 CONFIGURE_OPTIONS+= -system-sqlite
75 CONFIGURE_OPTIONS+= -system-libmng
76 CONFIGURE_OPTIONS+= -I/usr/include/libmng
78 COMPONENT_POST_INSTALL_ACTION.32= ( cd $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR)/mkspecs ; \
79 mv qconfig.pri qconfig.pri.32 ; \
80 cd $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR); \
81 mv tests tests.32 ; \
82 find $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR)/tests.32 -type f | \
83 xargs -n 1 /usr/bin/elfedit -e 'dyn:runpath "/usr/lib:/usr/lib/qt/$(COMPONENT_VERSION_MJR)/lib"')
86 COMPONENT_POST_INSTALL_ACTION.64= ( cd $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR)/mkspecs ; \
87 mv qconfig.pri qconfig.pri.64 ; ln -s qconfig.pri.32 qconfig.pri ; \
88 cd $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR); \
89 mv tests tests.64; \
90 mv tests.32 tests; \
91 mv tests.64 tests/$(MACH64); \
92 find $(PROTO_DIR)/usr/lib/qt/$(COMPONENT_VERSION_MJR)/tests/$(MACH64) -type f | \
93 xargs -n 1 /usr/bin/elfedit -e 'dyn:runpath "/usr/lib/64:/usr/lib/qt/$(COMPONENT_VERSION_MJR)/lib/$(MACH64)"')
95 COMPONENT_POST_INSTALL_ACTION=$(COMPONENT_POST_INSTALL_ACTION.$(BITS))
97 build: $(BUILD_32_and_64)
99 install: $(INSTALL_32_and_64)
101 REQUIRED_PACKAGES += database/mariadb-55/library
102 REQUIRED_PACKAGES += database/postgres-93/developer
103 REQUIRED_PACKAGES += database/postgres-93/library
104 REQUIRED_PACKAGES += database/sqlite-3
105 REQUIRED_PACKAGES += image/library/libjpeg6
106 REQUIRED_PACKAGES += image/library/libjpeg6-ijg
107 REQUIRED_PACKAGES += image/library/libpng16
108 REQUIRED_PACKAGES += image/library/libtiff
109 REQUIRED_PACKAGES += library/audio/gstreamer
110 REQUIRED_PACKAGES += library/audio/gstreamer/plugin/base
111 REQUIRED_PACKAGES += library/audio/pulseaudio
112 REQUIRED_PACKAGES += library/glib2
113 REQUIRED_PACKAGES += library/graphics/libmng
114 REQUIRED_PACKAGES += library/zlib
115 REQUIRED_PACKAGES += system/library
116 REQUIRED_PACKAGES += system/library/fontconfig
117 REQUIRED_PACKAGES += system/library/freetype-2
118 REQUIRED_PACKAGES += system/library/g++-4-runtime
119 REQUIRED_PACKAGES += system/library/gcc-4-runtime
120 REQUIRED_PACKAGES += system/library/math
121 REQUIRED_PACKAGES += x11/library/libice
122 REQUIRED_PACKAGES += x11/library/libsm
123 REQUIRED_PACKAGES += x11/library/libx11
124 REQUIRED_PACKAGES += x11/library/libxext
125 REQUIRED_PACKAGES += x11/library/libxrender