components/wxwidgets/Makefile
author Brian Utterback <brian.utterback@oracle.com>
Thu, 13 Apr 2017 17:10:44 -0700
changeset 7955 e2e23e69f5e7
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25729484 ntpq --version broken in s11.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
#
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
#
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
#
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
#
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    18
#
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    21
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7336
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    25
# 32-bit preferred as only *-config and source generation scripts delivered.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    26
BUILD_BITS= 32_and_64
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    27
COMPILER= gcc
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    28
include ../../make-rules/shared-macros.mk
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    29
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    30
COMPONENT_NAME=		wxWidgets
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    31
COMPONENT_VERSION=	3.0.2
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 705
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    34
    sha256:346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 459
diff changeset
    36
COMPONENT_PROJECT_URL=  http://www.wxwidgets.org/
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1048
diff changeset
    37
COMPONENT_BUGDB=	library/wxwidgets
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7336
diff changeset
    38
COMPONENT_ANITYA_ID=	5150
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    39
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    40
TPNO=			28307
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    41
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    42
CXXFLAGS += -std=c++11
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    43
7167
d7385e987993 24949263 Compile wxwidgets with newer gstreamer
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 6690
diff changeset
    44
# patch 002-gst1.0.2.patch modifies configure.in
d7385e987993 24949263 Compile wxwidgets with newer gstreamer
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 6690
diff changeset
    45
COMPONENT_PREP_ACTION += (cd $(@D); autoconf);
d7385e987993 24949263 Compile wxwidgets with newer gstreamer
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 6690
diff changeset
    46
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    47
TEST_TARGET= $(NO_TESTS)
6690
dcb9b5e3b729 24516310 do not publish wxwidgets when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6552
diff changeset
    48
dcb9b5e3b729 24516310 do not publish wxwidgets when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6552
diff changeset
    49
# Depends on newer cairo, which cannot be updated in S11.
dcb9b5e3b729 24516310 do not publish wxwidgets when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6552
diff changeset
    50
include $(WS_MAKE_RULES)/no-evaluation.mk
dcb9b5e3b729 24516310 do not publish wxwidgets when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6552
diff changeset
    51
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    52
include $(WS_MAKE_RULES)/common.mk
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    54
PKG_PROTO_DIRS += $(COMPONENT_DIR)/man
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    56
LDFLAGS += $(CC_BITS)
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    57
7336
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    58
# Use the GNOME 3 libnotify even though the GNOME 2 one is still the default
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    59
PKG_CONFIG_PATHS.32 += $(PKG_CONFIG_PATH.32)/libnotify-4
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    60
PKG_CONFIG_PATHS.64 += $(PKG_CONFIG_PATH.64)/libnotify-4
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    61
PKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    62
LD_OPTIONS.32 += -L $(USRLIB.32)/libnotify-4 -R $(USRLIB.32)/libnotify-4
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    63
LD_OPTIONS.64 += -L $(USRLIB.64)/libnotify-4 -R $(USRLIB.64)/libnotify-4
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    64
LD_OPTIONS += $(LD_OPTIONS.$(BITS))
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    65
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    66
CONFIGURE_OPTIONS += --with-gtk=2
262
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    67
CONFIGURE_OPTIONS += --enable-mimetype
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --enable-xrc
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --with-subdirs
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --with-expat
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --with-sdl
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --without-gnomeprint
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --without-gnomevfs
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --with-opengl
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --without-libmpack
7e3572caa313 7031528 move wxGTK to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    76
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    77
REQUIRED_PACKAGES += image/library/libjpeg
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    78
REQUIRED_PACKAGES += image/library/libpng
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    79
REQUIRED_PACKAGES += image/library/libtiff
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    80
REQUIRED_PACKAGES += library/desktop/cairo
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    81
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
7167
d7385e987993 24949263 Compile wxwidgets with newer gstreamer
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 6690
diff changeset
    82
REQUIRED_PACKAGES += library/desktop/gstreamer-1
d7385e987993 24949263 Compile wxwidgets with newer gstreamer
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 6690
diff changeset
    83
REQUIRED_PACKAGES += library/desktop/gstreamer-1/gst-plugins-base
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    84
REQUIRED_PACKAGES += library/desktop/gtk2
7336
1c99429f2647 25087793 Compile wxwidgets with newer libnotify
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7167
diff changeset
    85
REQUIRED_PACKAGES += library/desktop/libnotify
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    86
REQUIRED_PACKAGES += library/desktop/pango
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    87
REQUIRED_PACKAGES += library/expat
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    88
REQUIRED_PACKAGES += library/glib2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    89
REQUIRED_PACKAGES += library/sdl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    90
REQUIRED_PACKAGES += library/zlib
5994
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    91
REQUIRED_PACKAGES += system/library
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    92
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
af9925efa591 23094118 Upgrade wxwidgets to 3.0.2 or newer
Petr Sumbera <petr.sumbera@oracle.com>
parents: 5748
diff changeset
    93
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    94
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    95
REQUIRED_PACKAGES += x11/library/libsm
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    96
REQUIRED_PACKAGES += x11/library/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    97
REQUIRED_PACKAGES += x11/library/libxxf86vm