Makefile revision 1273
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER START
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# The contents of this file are subject to the terms of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Common Development and Distribution License (the "License").
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You may not use this file except in compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome# or http://www.opensolaris.org/os/licensing.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See the License for the specific language governing permissions
199767f8919635c4928607450d9e0abb932109ceToomas Soome# and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If applicable, add the following below this CDDL HEADER, with the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
199767f8919635c4928607450d9e0abb932109ceToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER END
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/shared-macros.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_NAME= wxwidgets
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_VERSION= 2.8.12
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SRC_NAME= wxGTK
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_HASH= \
199767f8919635c4928607450d9e0abb932109ceToomas Soome sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_PROJECT_URL= http://www.wxwidgets.org/
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_BUGDB= library/wxwidgets
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/prep.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/configure.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/ips.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomePKG_PROTO_DIRS += $(COMPONENT_DIR)/man
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# We need to compile with /usr/lib/$(MACH64)/glib-2.0
199767f8919635c4928607450d9e0abb932109ceToomas Soome# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# get rid of compiler path set in RUNPATH
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLDFLAGS += $(studio_NORUNPATH)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLDFLAGS += $(CC_BITS)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLDFLAGS += $(studio_CXXLIB_CSTD)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCXXFLAGS += $(studio_XREGS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --with-gtk
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --enable-gtk2
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --enable-unicode
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --enable-mimetype
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --enable-gui
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --enable-xrc
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --with-subdirs
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --with-expat
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --with-sdl
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --without-gnomeprint
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --without-gnomevfs
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --with-opengl
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --without-libmpack
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/shared-targets.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# I want to use userland's "build" target in contrib subdirectory, but I need
199767f8919635c4928607450d9e0abb932109ceToomas Soome# to skip the configure phase
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(BUILD_DIR_32)/contrib/.configured \
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(BUILD_DIR_64)/contrib/.configured:
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(TOUCH) $@
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# common targets
199767f8919635c4928607450d9e0abb932109ceToomas Soomebuild: $(BUILD_32_and_64) \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(BUILD_DIR_32)/contrib/.built \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(BUILD_DIR_64)/contrib/.built
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall: $(INSTALL_32_and_64) \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(BUILD_DIR_32)/contrib/.installed \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(BUILD_DIR_64)/contrib/.installed
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soometest: $(NO_TESTS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/depend.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome