GCC: use -fuse-cxa-atexit by default
[unleashed-userland.git] / components / wxwidgets / Makefile
blob5af5babd8a82d874267a8260f443018df672034c
2 # CDDL HEADER START
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.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
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]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
24 include ../../make-rules/shared-macros.mk
26 COMPONENT_NAME= wxwidgets
27 COMPONENT_VERSION= 2.8.12
28 COMPONENT_SRC_NAME= wxGTK
29 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31 COMPONENT_ARCHIVE_HASH= \
32 sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
33 COMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
34 COMPONENT_PROJECT_URL= http://www.wxwidgets.org/
35 COMPONENT_BUGDB= library/wxwidgets
37 include ../../make-rules/prep.mk
38 include ../../make-rules/configure.mk
39 include ../../make-rules/ips.mk
41 PKG_PROTO_DIRS += $(COMPONENT_DIR)/man
43 # We need to compile with /usr/lib/$(MACH64)/glib-2.0
44 # https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
45 $(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
47 # get rid of compiler path set in RUNPATH
48 # LDFLAGS += $(studio_NORUNPATH)
49 LDFLAGS += $(CC_BITS)
50 #LDFLAGS += $(studio_CXXLIB_CSTD)
51 CXXFLAGS += -fpermissive
53 CONFIGURE_OPTIONS += --with-gtk
54 CONFIGURE_OPTIONS += --enable-gtk2
55 CONFIGURE_OPTIONS += --enable-unicode
56 CONFIGURE_OPTIONS += --enable-mimetype
57 CONFIGURE_OPTIONS += --enable-gui
58 CONFIGURE_OPTIONS += --enable-xrc
59 CONFIGURE_OPTIONS += --with-subdirs
60 CONFIGURE_OPTIONS += --with-expat
61 CONFIGURE_OPTIONS += --with-sdl
62 CONFIGURE_OPTIONS += --without-gnomeprint
63 CONFIGURE_OPTIONS += --without-gnomevfs
64 CONFIGURE_OPTIONS += --with-opengl
65 CONFIGURE_OPTIONS += --without-libmpack
67 include ../../make-rules/shared-targets.mk
69 # I want to use userland's "build" target in contrib subdirectory, but I need
70 # to skip the configure phase
71 $(BUILD_DIR_32)/contrib/.configured \
72 $(BUILD_DIR_64)/contrib/.configured:
73 $(TOUCH) $@
75 # common targets
76 build: $(BUILD_32_and_64) \
77 $(BUILD_DIR_32)/contrib/.built \
78 $(BUILD_DIR_64)/contrib/.built
80 install: $(INSTALL_32_and_64) \
81 $(BUILD_DIR_32)/contrib/.installed \
82 $(BUILD_DIR_64)/contrib/.installed
84 test: $(NO_TESTS)
86 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
88 include ../../make-rules/depend.mk