262N/A#
262N/A# CDDL HEADER START
262N/A#
262N/A# The contents of this file are subject to the terms of the
262N/A# Common Development and Distribution License (the "License").
262N/A# You may not use this file except in compliance with the License.
262N/A#
262N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
262N/A# or http://www.opensolaris.org/os/licensing.
262N/A# See the License for the specific language governing permissions
262N/A# and limitations under the License.
262N/A#
262N/A# When distributing Covered Code, include this CDDL HEADER in each
262N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
262N/A# If applicable, add the following below this CDDL HEADER, with the
262N/A# fields enclosed by brackets "[]" replaced with your own identifying
262N/A# information: Portions Copyright [yyyy] [name of copyright owner]
262N/A#
262N/A# CDDL HEADER END
262N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
262N/A#
262N/A
262N/Ainclude ../../make-rules/shared-macros.mk
262N/A
1273N/ACOMPONENT_NAME= wxwidgets
287N/ACOMPONENT_VERSION= 2.8.12
1273N/ACOMPONENT_SRC_NAME= wxGTK
1273N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
262N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
262N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
618N/ACOMPONENT_PROJECT_URL= http://www.wxwidgets.org/
1273N/ACOMPONENT_BUGDB= library/wxwidgets
262N/A
3661N/ATPNO= 9216
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
262N/A
262N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/man
262N/A
262N/A# We need to compile with /usr/lib/$(MACH64)/glib-2.0
262N/A# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
262N/A$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
262N/A
262N/A# get rid of compiler path set in RUNPATH
262N/ALDFLAGS += $(studio_NORUNPATH)
262N/ALDFLAGS += $(CC_BITS)
726N/ALDFLAGS += $(studio_CXXLIB_CSTD)
262N/A
459N/ACXXFLAGS += $(studio_XREGS)
459N/A
262N/ACONFIGURE_OPTIONS += --with-gtk
262N/ACONFIGURE_OPTIONS += --enable-gtk2
262N/ACONFIGURE_OPTIONS += --enable-unicode
262N/ACONFIGURE_OPTIONS += --enable-mimetype
262N/ACONFIGURE_OPTIONS += --enable-gui
262N/ACONFIGURE_OPTIONS += --enable-xrc
262N/ACONFIGURE_OPTIONS += --with-subdirs
262N/ACONFIGURE_OPTIONS += --with-expat
262N/ACONFIGURE_OPTIONS += --with-sdl
262N/ACONFIGURE_OPTIONS += --without-gnomeprint
262N/ACONFIGURE_OPTIONS += --without-gnomevfs
262N/ACONFIGURE_OPTIONS += --with-opengl
262N/ACONFIGURE_OPTIONS += --without-libmpack
262N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
262N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
262N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
262N/A
262N/A# I want to use userland's "build" target in contrib subdirectory, but I need
262N/A# to skip the configure phase
262N/A$(BUILD_DIR_32)/contrib/.configured \
262N/A$(BUILD_DIR_64)/contrib/.configured:
262N/A $(TOUCH) $@
262N/A
262N/A# common targets
262N/Abuild: $(BUILD_32_and_64) \
262N/A $(BUILD_DIR_32)/contrib/.built \
262N/A $(BUILD_DIR_64)/contrib/.built
262N/A
262N/Ainstall: $(INSTALL_32_and_64) \
262N/A $(BUILD_DIR_32)/contrib/.installed \
262N/A $(BUILD_DIR_64)/contrib/.installed
262N/A
262N/Atest: $(NO_TESTS)
262N/A
262N/A
3996N/AREQUIRED_PACKAGES += image/library/libjpeg
3996N/AREQUIRED_PACKAGES += image/library/libpng
3996N/AREQUIRED_PACKAGES += image/library/libtiff
3996N/AREQUIRED_PACKAGES += library/desktop/atk
3996N/AREQUIRED_PACKAGES += library/desktop/gtk2
3996N/AREQUIRED_PACKAGES += library/desktop/pango
3996N/AREQUIRED_PACKAGES += library/expat
3996N/AREQUIRED_PACKAGES += library/glib2
3996N/AREQUIRED_PACKAGES += library/sdl
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/c++-runtime
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += x11/library/libsm
3996N/AREQUIRED_PACKAGES += x11/library/libx11
3996N/AREQUIRED_PACKAGES += x11/library/libxcursor
3996N/AREQUIRED_PACKAGES += x11/library/libxinerama
3996N/AREQUIRED_PACKAGES += x11/library/libxxf86vm